add MiUserProfile.defaultCW property and API
This commit is contained in:
parent
8a087e75a5
commit
74407bc8ee
7 changed files with 47 additions and 3 deletions
|
|
@ -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', {
|
||||
|
|
|
|||
|
|
@ -752,6 +752,10 @@ export const packedMeDetailedOnlySchema = {
|
|||
},
|
||||
},
|
||||
//#endregion
|
||||
defaultCW: {
|
||||
type: 'string',
|
||||
nullable: true, optional: false,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue