mirror of
https://github.com/thedrewen/protojx-manager.git
synced 2026-03-21 01:48:54 +01:00
feat(entity): add Guild entity with primary key and columns for guild_id and persistent_message_id
This commit is contained in:
13
src/entity/Guilds.ts
Normal file
13
src/entity/Guilds.ts
Normal file
@@ -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;
|
||||
}
|
||||
@@ -24,7 +24,8 @@
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"removeComments": false,
|
||||
"preserveConstEnums": true
|
||||
"preserveConstEnums": true,
|
||||
"strictPropertyInitialization": false
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
|
||||
Reference in New Issue
Block a user