mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-06-09 16:39:30 +00:00
Added Basic Fact of the Day Feature
This commit is contained in:
parent
2139f2efa0
commit
40942e2539
9 changed files with 544 additions and 27 deletions
|
@ -61,3 +61,23 @@ export const moderationRelations = relations(moderationTable, ({ one }) => ({
|
|||
references: [memberTable.discordId],
|
||||
}),
|
||||
}));
|
||||
|
||||
export type factTableTypes = {
|
||||
id?: number;
|
||||
content: string;
|
||||
source?: string;
|
||||
addedBy: string;
|
||||
addedAt?: Date;
|
||||
approved?: boolean;
|
||||
usedOn?: Date;
|
||||
};
|
||||
|
||||
export const factTable = pgTable('facts', {
|
||||
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
||||
content: varchar('content').notNull(),
|
||||
source: varchar('source'),
|
||||
addedBy: varchar('added_by').notNull(),
|
||||
addedAt: timestamp('added_at').defaultNow().notNull(),
|
||||
approved: boolean('approved').default(false).notNull(),
|
||||
usedOn: timestamp('used_on'),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue