Yet another Fluxer bot built with TypeScript and Bun
at develop 13 lines 432 B view raw
1import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core"; 2import { ulid } from "ulid"; 3 4export const warnsTable = sqliteTable("warns", { 5 id: text("id") 6 .primaryKey() 7 .$defaultFn(() => ulid()), 8 guildId: text("guild_id").notNull(), 9 userId: text("user_id").notNull(), 10 moderator: text("moderator").notNull(), 11 reason: text("reason"), 12 createdAt: integer("created_at", { mode: "timestamp" }).notNull(), 13});