forked from cosmic/scythe
40 lines
1016 B
TypeScript
40 lines
1016 B
TypeScript
import { text, sqliteTable, int } from "drizzle-orm/sqlite-core";
|
|
|
|
import type { InferSelectModel } from "drizzle-orm";
|
|
|
|
export const ticketsTable = sqliteTable("tickets", {
|
|
user: text().primaryKey().notNull(),
|
|
channel: text().notNull(),
|
|
});
|
|
|
|
export const colonTable = sqliteTable("colonthree", {
|
|
user: text().primaryKey().notNull(),
|
|
amount: int().notNull(),
|
|
messages_count: int().notNull(),
|
|
});
|
|
|
|
export const greetsTable = sqliteTable("greets", {
|
|
guild: text().primaryKey().notNull(),
|
|
channel: text().notNull(),
|
|
message: text().notNull(),
|
|
});
|
|
|
|
export const byeTable = sqliteTable("bye", {
|
|
guild: text().primaryKey().notNull(),
|
|
channel: text().notNull(),
|
|
message: text().notNull(),
|
|
});
|
|
|
|
export const uptimeTable = sqliteTable("uptime", {
|
|
guild: text().primaryKey(),
|
|
channel: text().notNull(),
|
|
message: text().notNull(),
|
|
});
|
|
|
|
export const introTable = sqliteTable("intro", {
|
|
guild: text().primaryKey(),
|
|
channel: text().notNull(),
|
|
});
|
|
|
|
export type ColonThreeType = InferSelectModel<typeof colonTable>;
|