add type columns to SkLatestNote
This commit is contained in:
parent
fea993f6b2
commit
9d3292e6e9
2 changed files with 42 additions and 0 deletions
|
|
@ -21,6 +21,24 @@ export class SkLatestNote {
|
|||
})
|
||||
public userId: string;
|
||||
|
||||
@PrimaryColumn('boolean', {
|
||||
name: 'is_public',
|
||||
default: false,
|
||||
})
|
||||
public isPublic: boolean;
|
||||
|
||||
@PrimaryColumn('boolean', {
|
||||
name: 'is_reply',
|
||||
default: false,
|
||||
})
|
||||
public isReply: boolean;
|
||||
|
||||
@PrimaryColumn('boolean', {
|
||||
name: 'is_quote',
|
||||
default: false,
|
||||
})
|
||||
public isQuote: boolean;
|
||||
|
||||
@ManyToOne(() => MiUser, {
|
||||
onDelete: 'CASCADE',
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue