-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadminDocument.js
53 lines (52 loc) · 1.02 KB
/
adminDocument.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
const mongoose = require("mongoose");
const Schema = mongoose.Schema
const documentSchema = new mongoose.Schema({
admin: {
type: Schema.Types.ObjectId,
ref: "admin",
required: true
},
citizenshipNumber: {
type: String,
trim: true,
required: true,
maxlength: 32
},
panID: {
type: String,
trim: true,
maxlength: 32
},
VATNo:{
type: String,
trim: true,
maxlength: 32
},
vatClearance: {
type: String
},
pan:{
type:String
},
citizenship: {
type:String
},
businessLicence:[{
type: String
}],
companyRegister:[{
type:String
}],
ourAgreement: [{
type: String
}],
isVerified:{
type: Date,//as we may need verified date
default: null
},
isDeleted: {
type: Date,
default: null
}
}, { timestamps: true });
module.exports = mongoose.model("admindocument", documentSchema);