diff options
| author | Hazelnoot <acomputerdog@gmail.com> | 2025-02-01 17:07:34 -0500 |
|---|---|---|
| committer | Hazelnoot <acomputerdog@gmail.com> | 2025-02-05 14:22:50 -0500 |
| commit | 74407bc8ee43a8c7b4bc8b7e16bdfb8acd2c794c (patch) | |
| tree | 7a0c37960b1275231671a7de8596e3e5d1d92111 /packages/backend/src/models/UserProfile.ts | |
| parent | merge: Improve language detection. (!871) (diff) | |
| download | sharkey-74407bc8ee43a8c7b4bc8b7e16bdfb8acd2c794c.tar.gz sharkey-74407bc8ee43a8c7b4bc8b7e16bdfb8acd2c794c.tar.bz2 sharkey-74407bc8ee43a8c7b4bc8b7e16bdfb8acd2c794c.zip | |
add MiUserProfile.defaultCW property and API
Diffstat (limited to 'packages/backend/src/models/UserProfile.ts')
| -rw-r--r-- | packages/backend/src/models/UserProfile.ts | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packages/backend/src/models/UserProfile.ts b/packages/backend/src/models/UserProfile.ts index 751b1aff08..3c2362227e 100644 --- a/packages/backend/src/models/UserProfile.ts +++ b/packages/backend/src/models/UserProfile.ts @@ -36,10 +36,10 @@ export class MiUserProfile { }) public birthday: string | null; - @Column("varchar", { + @Column('varchar', { length: 128, nullable: true, - comment: "The ListenBrainz username of the User.", + comment: 'The ListenBrainz username of the User.', }) public listenbrainz: string | null; @@ -290,6 +290,12 @@ export class MiUserProfile { unlockedAt: number; }[]; + @Column('text', { + name: 'default_cw', + nullable: true, + }) + public defaultCW: string | null; + //#region Denormalized fields @Index() @Column('varchar', { |