fix: add type hints for nullable columns
This commit is contained in:
@@ -8,7 +8,7 @@ export class Link {
|
|||||||
id: number
|
id: number
|
||||||
|
|
||||||
@Column({ nullable: true })
|
@Column({ nullable: true })
|
||||||
subdomain: string
|
subdomain: string | null
|
||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
shortUri: string
|
shortUri: string
|
||||||
@@ -25,7 +25,7 @@ export class Link {
|
|||||||
@Column('bigint')
|
@Column('bigint')
|
||||||
expiryDate: number
|
expiryDate: number
|
||||||
|
|
||||||
@ManyToOne(() => User, (user) => user.links)
|
@ManyToOne(() => User, (user) => user.links, { nullable: true })
|
||||||
@JoinTable()
|
@JoinTable()
|
||||||
author: User
|
author: User | null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user