Parent Directory
|
Revision Log
|
Patch
revision 348 by rakin, Mon Jul 29 17:29:43 2024 UTC | revision 349 by rakin, Mon Jul 29 17:29:43 2024 UTC | |
---|---|---|
# | Line 6 export interface IUser extends Document | Line 6 export interface IUser extends Document |
6 | guilds: Array<string>; | guilds: Array<string>; |
7 | password?: string; | password?: string; |
8 | token?: string; | token?: string; |
9 | isAdmin?: boolean; | |
10 | createdAt: Date; | createdAt: Date; |
11 | tokenUpdatedAt?: Date; | |
12 | } | } |
13 | ||
14 | const schema = new Schema({ | const schema = new Schema({ |
# | Line 28 const schema = new Schema({ | Line 30 const schema = new Schema({ |
30 | type: String, | type: String, |
31 | required: false | required: false |
32 | }, | }, |
33 | isAdmin: { | |
34 | type: Boolean, | |
35 | required: false, | |
36 | default: false | |
37 | }, | |
38 | token: { | token: { |
39 | type: String, | type: String, |
40 | required: false | required: false |
# | Line 35 const schema = new Schema({ | Line 42 const schema = new Schema({ |
42 | createdAt: { | createdAt: { |
43 | type: Date, | type: Date, |
44 | required: true, | required: true, |
45 | }, | |
46 | tokenUpdatedAt: { | |
47 | type: Date, | |
48 | required: false, | |
49 | } | } |
50 | }); | }); |
51 |
|
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |