Browse Source

Add rest of table entities

ghorsington 5 years ago
parent
commit
4aa8587cd6

+ 23 - 0
src/entity/AggroNewsItem.ts

@@ -0,0 +1,23 @@
+import {Entity, PrimaryColumn, Column} from "typeorm";
+
+@Entity()
+export class AggroNewsItem {
+
+    @PrimaryColumn()
+    feedName: string;
+
+    @PrimaryColumn()
+    newsId: number;
+
+    @Column()
+    hash: string;
+
+    @Column({ unique: true, nullable: true })
+    editMessageId?: string;
+
+    @Column({ unique: true, nullable: true })
+    forumsNewsPostId?: string;
+
+    @Column({ unique: true, nullable: true })
+    forumsEditPostId?: string;
+}

+ 11 - 0
src/entity/DeadChatReply.ts

@@ -0,0 +1,11 @@
+import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
+
+@Entity()
+export class DeadChatReply {
+    
+    @PrimaryGeneratedColumn()
+    id: number;
+
+    @Column()
+    message: string;
+}

+ 1 - 0
src/entity/FaceCaptionMessage.ts

@@ -7,6 +7,7 @@ export enum FaceCaptionType {
 
 @Entity()
 export class FaceCaptionMessage {
+    
     @PrimaryColumn()
     message: string;
 

+ 8 - 0
src/entity/FeedOutput.ts

@@ -0,0 +1,8 @@
+import {Entity, PrimaryColumn} from "typeorm";
+
+@Entity()
+export class FeedOutput {
+
+    @PrimaryColumn()
+    channelId: string;
+}

+ 20 - 0
src/entity/Guide.ts

@@ -0,0 +1,20 @@
+import {Entity, PrimaryColumn, Column} from "typeorm";
+
+export enum GuideType {
+    GUIDE = "guide",
+    MEME = "meme",
+    MISC = "misc"
+}
+
+@Entity()
+export class Guide {
+    
+    @PrimaryColumn()
+    keywords: string;
+
+    @Column()
+    displayName: string;
+
+    @Column()
+    content: string;
+}

+ 14 - 0
src/entity/KnownChannel.ts

@@ -0,0 +1,14 @@
+import {Entity, Column, PrimaryGeneratedColumn} from "typeorm";
+
+@Entity()
+export class KnownChannel {
+
+    @PrimaryGeneratedColumn()
+    id: number;
+
+    @Column()
+    channelName: string;
+
+    @Column()
+    channelId: string;
+}

+ 4 - 1
src/entity/KnownUser.ts

@@ -12,7 +12,10 @@ export class KnownUser {
     canModerate: boolean;
 
     @Column({ type: "varchar", default: ReactionType.NONE })
-    reactionType: ReactionType;
+    replyReactionType: ReactionType;
+
+    @Column({ type: "varchar", default: ReactionType.NONE })
+    mentionReactionType: ReactionType;
 }
 
 @ChildEntity()

+ 1 - 0
src/entity/MessageReaction.ts

@@ -2,6 +2,7 @@ import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
 
 @Entity()
 export class MessageReaction {
+    
     @PrimaryGeneratedColumn()
     message: string;
 

+ 5 - 2
src/entity/PostedForumsNewsItem.ts

@@ -9,6 +9,9 @@ export class PostedForumNewsItem {
     @Column()
     hash: string;
 
-    @Column()
-    messageId?: string;
+    @Column({ nullable: true })
+    postedMessageId?: string;
+
+    @Column({ nullable: true })
+    verifyMessageId?: string;
 };

+ 1 - 0
src/entity/ReactionEmote.ts

@@ -10,6 +10,7 @@ export enum ReactionType {
 
 @Entity()
 export class ReactionEmote {
+    
     @PrimaryColumn({ type: "varchar" })
     type: ReactionType;