Skip to content

Commit c9abf94

Browse files
committed
Adding the updated erp files
1 parent fa6fb7e commit c9abf94

File tree

2 files changed

+38
-94
lines changed

2 files changed

+38
-94
lines changed

models/std_bank.js

Lines changed: 0 additions & 94 deletions
This file was deleted.

models/std_bankSchema.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const { connector } = require("./databaseUtil");
2+
3+
const stdBankSchema = {
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+
};
36+
37+
const std_bank = new connector.model("stdBankSchema", stdBankSchema);
38+
module.exports = {};

0 commit comments

Comments
 (0)