feat: チャンネルに色を設定できるように

This commit is contained in:
syuilo
2023-05-02 09:36:40 +09:00
parent 0cbdbf24f1
commit d535ec21a2
11 changed files with 61 additions and 1 deletions

View File

@@ -64,6 +64,12 @@ export class Channel {
})
public pinnedNoteIds: string[];
@Column('varchar', {
length: 16,
default: '#86b300',
})
public color: string;
@Index()
@Column('integer', {
default: 0,

View File

@@ -59,5 +59,9 @@ export const packedChannelSchema = {
format: 'id',
},
},
color: {
type: 'string',
optional: false, nullable: false,
},
},
} as const;