diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-09-28 11:54:40 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2024-09-28 11:54:40 +0900 |
| commit | 9e9198086da638921dccb1bdcc74c4a4c245194e (patch) | |
| tree | adb271686e2b51c2a931564acb447703a2e96b65 /packages/backend/src | |
| parent | Bump version to 2024.9.0-alpha.11 (diff) | |
| download | misskey-9e9198086da638921dccb1bdcc74c4a4c245194e.tar.gz misskey-9e9198086da638921dccb1bdcc74c4a4c245194e.tar.bz2 misskey-9e9198086da638921dccb1bdcc74c4a4c245194e.zip | |
enhance(backend): add user.score for moderation purpose
Diffstat (limited to 'packages/backend/src')
| -rw-r--r-- | packages/backend/src/models/User.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/backend/src/models/User.ts b/packages/backend/src/models/User.ts index 21362235ab..805a1e75ae 100644 --- a/packages/backend/src/models/User.ts +++ b/packages/backend/src/models/User.ts @@ -155,6 +155,11 @@ export class MiUser { }) public tags: string[]; + @Column('integer', { + default: 0, + }) + public score: number; + @Column('boolean', { default: false, comment: 'Whether the User is suspended.', |