-
Notifications
You must be signed in to change notification settings - Fork 37
/
users.document.json
102 lines (102 loc) · 2.66 KB
/
users.document.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"bsonType": "object",
"title": "users",
"required": [
"first_name",
"last_name",
"email",
"password",
"status",
"company",
"settings",
"created_at",
"updated_at"
],
"properties": {
"_id": {
"bsonType": "objectid"
},
"first_name": {
"bsonType": "string"
},
"last_name": {
"bsonType": "string"
},
"email": {
"bsonType": "string"
},
"password": {
"bsonType": "string"
},
"phone": {
"bsonType": "string"
},
"status": {
"bsonType": "string",
"enum": ["active", "suspended", "disabled"]
},
"email_verification": {
"bsonType": "object",
"properties": {
"verified": { "bsonType": "boolean" },
"token": { "bsonType": "string" },
"expired_at": { "bsonType": "timestamp" }
}
},
"workpsaces": {
"bsonType": "array",
"items": {
"bsonType": "objectid"
}
},
"password_resets": {
"bsonType": "array",
"items": {
"bsonType": "object",
"required": [
"ipaddress",
"token",
"expired_at",
"updated_at",
"created_at"
],
"properties": {
"ipaddress": { "bsonType": "string" },
"token": { "bsonType": "string" },
"expired_at": { "bsonType": "timestamp" },
"updated_at": { "bsonType": "timestamp" },
"created_at": { "bsonType": "timestamp" }
}
}
},
"company": {
"bsonType": "object",
"properties": {
"name": { "bsonType": "string" },
"category": { "bsonType": "string" },
"size": { "bsonType": "string" }
}
},
"settings": {
"bsonType": "mixed",
"properties": {
"role": {
"bsonType": "string",
"enum": ["super", "admin", "member"]
}
}
},
"timezone": {
"bsonType": "string"
},
"created_at": {
"bsonType": "timestamp"
},
"updated_at": {
"bsonType": "timestamp"
},
"deleted_at": {
"bsonType": "timestamp"
}
}
}