Browse Source

Add FileOnlyChannel type

horse 5 years ago
parent
commit
a9ac7c5929
2 changed files with 14 additions and 1 deletions
  1. 3 1
      shared/src/db/entities.ts
  2. 11 0
      shared/src/db/entity/FileOnlyChannel.ts

+ 3 - 1
shared/src/db/entities.ts

@@ -12,6 +12,7 @@ import { ReactionEmote } from "./entity/ReactionEmote";
 import { Contest } from "./entity/Contest";
 import { ContestEntry } from "./entity/ContestEntry";
 import { ContestVote } from "./entity/ContestVote";
+import { FileOnlyChannel } from "./entity/FileOnlyChannel";
 
 export const DB_ENTITIES = [
     AggroNewsItem,
@@ -30,5 +31,6 @@ export const DB_ENTITIES = [
     ReactionEmote,
     Contest,
     ContestEntry,
-    ContestVote
+    ContestVote,
+    FileOnlyChannel
 ];

+ 11 - 0
shared/src/db/entity/FileOnlyChannel.ts

@@ -0,0 +1,11 @@
+import { Entity, PrimaryColumn, Column} from "typeorm";
+
+@Entity()
+export class FileOnlyChannel {
+    
+    @PrimaryColumn()
+    channelId: string;
+
+    @Column()
+    warningMessageChannelId: string;
+};