mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 13:25:03 +00:00
Reorganize project. Add folder for shared code between backend/dashboard. Switch from jest to ava for tests.
This commit is contained in:
parent
80a82fe348
commit
16111bbe84
162 changed files with 11056 additions and 9900 deletions
26
backend/src/data/entities/ScheduledPost.ts
Normal file
26
backend/src/data/entities/ScheduledPost.ts
Normal file
|
@ -0,0 +1,26 @@
|
|||
import { Entity, Column, PrimaryColumn } from "typeorm";
|
||||
import { Attachment } from "eris";
|
||||
import { StrictMessageContent } from "../../utils";
|
||||
|
||||
@Entity("scheduled_posts")
|
||||
export class ScheduledPost {
|
||||
@Column()
|
||||
@PrimaryColumn()
|
||||
id: number;
|
||||
|
||||
@Column() guild_id: string;
|
||||
|
||||
@Column() author_id: string;
|
||||
|
||||
@Column() author_name: string;
|
||||
|
||||
@Column() channel_id: string;
|
||||
|
||||
@Column("simple-json") content: StrictMessageContent;
|
||||
|
||||
@Column("simple-json") attachments: Attachment[];
|
||||
|
||||
@Column() post_at: string;
|
||||
|
||||
@Column() enable_mentions: boolean;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue