mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-07 21:25:39 +00:00
make everything in categories nullable
This commit is contained in:
@@ -17,16 +17,16 @@ import { BaseClassWithoutId } from "./BaseClass";
|
||||
@Entity("categories")
|
||||
export class Categories extends BaseClassWithoutId { // Not using snowflake
|
||||
|
||||
@PrimaryColumn()
|
||||
@PrimaryColumn({ nullable: true })
|
||||
id: number;
|
||||
|
||||
@Column()
|
||||
@Column({ nullable: true })
|
||||
name: string;
|
||||
|
||||
@Column({ type: "simple-json" })
|
||||
localizations: string;
|
||||
|
||||
@Column()
|
||||
@Column({ nullable: true })
|
||||
is_primary: boolean;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user