From 86a7429711a54e29ec90e4ab4c5ce970f7a07761 Mon Sep 17 00:00:00 2001 From: CL TheDreWen Date: Wed, 29 Oct 2025 11:45:37 +0100 Subject: [PATCH] feat(entity): add Guild entity with primary key and columns for guild_id and persistent_message_id --- src/entity/Guilds.ts | 13 +++++++++++++ tsconfig.json | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/entity/Guilds.ts diff --git a/src/entity/Guilds.ts b/src/entity/Guilds.ts new file mode 100644 index 0000000..75776f0 --- /dev/null +++ b/src/entity/Guilds.ts @@ -0,0 +1,13 @@ +import { Column, Entity, PrimaryGeneratedColumn } from "typeorm"; + +@Entity() +export class Guild { + @PrimaryGeneratedColumn() + id: number; + + @Column() + guild_id: string; + + @Column() + persistent_message_id: string; +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 6c765ee..0fa1162 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,7 +24,8 @@ "experimentalDecorators": true, "emitDecoratorMetadata": true, "removeComments": false, - "preserveConstEnums": true + "preserveConstEnums": true, + "strictPropertyInitialization": false }, "include": [ "src/**/*"