Skip to content

Commit bcecd36

Browse files
authored
Create KYC.js
1 parent 3f5d347 commit bcecd36

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/models/KYC.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const mongoose = require('mongoose');
2+
3+
const kycSchema = new mongoose.Schema({
4+
userId: {
5+
type: String,
6+
required: true,
7+
unique: true,
8+
},
9+
fullName: {
10+
type: String,
11+
required: true,
12+
},
13+
idNumber: {
14+
type: String,
15+
required: true,
16+
},
17+
verified: {
18+
type: Boolean,
19+
default: false,
20+
},
21+
verificationDate: {
22+
type: Date,
23+
},
24+
});
25+
26+
module.exports = mongoose.model('KYC', kycSchema);

0 commit comments

Comments
 (0)