aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/account/user.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/models/account/user.ts b/server/models/account/user.ts
index 2aa6469fb..10117099b 100644
--- a/server/models/account/user.ts
+++ b/server/models/account/user.ts
@@ -19,7 +19,8 @@ import {
19 Model, 19 Model,
20 Scopes, 20 Scopes,
21 Table, 21 Table,
22 UpdatedAt 22 UpdatedAt,
23 IsUUID
23} from 'sequelize-typescript' 24} from 'sequelize-typescript'
24import { 25import {
25 MMyUserFormattable, 26 MMyUserFormattable,
@@ -353,6 +354,12 @@ export class UserModel extends Model<UserModel> {
353 @Column 354 @Column
354 pluginAuth: string 355 pluginAuth: string
355 356
357 @AllowNull(false)
358 @Default(DataType.UUIDV4)
359 @IsUUID(4)
360 @Column(DataType.UUID)
361 feedToken: string
362
356 @AllowNull(true) 363 @AllowNull(true)
357 @Default(null) 364 @Default(null)
358 @Column 365 @Column