Skip to content

Commit f43359b

Browse files
authored
Merge pull request #25 from tcet-opensource/14-Create_employee_bank_schema
Adding the files for employee schema
2 parents e4cd856 + a144f1f commit f43359b

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

models/emp_bankSchema.js

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
const { connector } = require("./databaseUtil");
2+
3+
const EmpBankSchema = {
4+
userId: {
5+
type: String,
6+
required: true,
7+
unique: true,
8+
},
9+
bank_name: {
10+
type: String,
11+
required: true,
12+
minLength: 7,
13+
},
14+
bank_acc: {
15+
type: String,
16+
required: true,
17+
unique: true,
18+
},
19+
bank_branch: {
20+
type: String,
21+
required: true,
22+
},
23+
bank_ifsc: {
24+
type: String,
25+
required: true,
26+
maxLength: 11,
27+
minLength: 11,
28+
},
29+
bank_micr: {
30+
type: String,
31+
required: true,
32+
maxLength: 9,
33+
minLength: 9,
34+
},
35+
appointment_approve_sg_dte: {
36+
type: String,
37+
},
38+
};
39+
40+
const Bank = new connector.model("EmpBank", EmpBankSchema);
41+
module.exports = {};

0 commit comments

Comments
 (0)