feat: チャンネルに色を設定できるように
This commit is contained in:
parent
0cbdbf24f1
commit
d535ec21a2
11 changed files with 61 additions and 1 deletions
|
|
@ -64,6 +64,12 @@ export class Channel {
|
|||
})
|
||||
public pinnedNoteIds: string[];
|
||||
|
||||
@Column('varchar', {
|
||||
length: 16,
|
||||
default: '#86b300',
|
||||
})
|
||||
public color: string;
|
||||
|
||||
@Index()
|
||||
@Column('integer', {
|
||||
default: 0,
|
||||
|
|
|
|||
|
|
@ -59,5 +59,9 @@ export const packedChannelSchema = {
|
|||
format: 'id',
|
||||
},
|
||||
},
|
||||
color: {
|
||||
type: 'string',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
},
|
||||
} as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue