diff options
author | Featyre <twooter.0g179@simplelogin.co> | 2022-02-02 01:02:32 +0800 |
---|---|---|
committer | Featyre <twooter.0g179@simplelogin.co> | 2022-02-02 01:02:32 +0800 |
commit | fb5667e18c9175fdcdaab49f3035e0dfcd0fbc60 (patch) | |
tree | dd2b682b2c4c9358807502c24945a7f92f81e3d1 /util | |
parent | Merge branch 'fosscord:master' into master (diff) | |
download | server-fb5667e18c9175fdcdaab49f3035e0dfcd0fbc60.tar.xz |
make everything in categories nullable
Diffstat (limited to 'util')
-rw-r--r-- | util/src/entities/Categories.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/src/entities/Categories.ts b/util/src/entities/Categories.ts index 269e178f..18fc755d 100644 --- a/util/src/entities/Categories.ts +++ b/util/src/entities/Categories.ts @@ -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; } \ No newline at end of file |