fix: add type hints for nullable columns

This commit is contained in:
2025-12-01 17:26:54 +01:00
parent 1e60fc23ab
commit 1b8c9ccaeb

View File

@@ -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
} }