enhance: improve avatar decoration
This commit is contained in:
@@ -138,10 +138,14 @@ export class MiUser {
|
||||
})
|
||||
public bannerBlurhash: string | null;
|
||||
|
||||
@Column('varchar', {
|
||||
length: 512, array: true, default: '{}',
|
||||
@Column('jsonb', {
|
||||
default: [],
|
||||
})
|
||||
public avatarDecorations: string[];
|
||||
public avatarDecorations: {
|
||||
id: string;
|
||||
angle: number;
|
||||
flipH: boolean;
|
||||
}[];
|
||||
|
||||
@Index()
|
||||
@Column('varchar', {
|
||||
|
@@ -54,6 +54,14 @@ export const packedUserLiteSchema = {
|
||||
format: 'url',
|
||||
nullable: false, optional: false,
|
||||
},
|
||||
angle: {
|
||||
type: 'number',
|
||||
nullable: false, optional: true,
|
||||
},
|
||||
flipH: {
|
||||
type: 'boolean',
|
||||
nullable: false, optional: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user