import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core"; import { ulid } from "ulid"; export const warnsTable = sqliteTable("warns", { id: text("id") .primaryKey() .$defaultFn(() => ulid()), guildId: text("guild_id").notNull(), userId: text("user_id").notNull(), moderator: text("moderator").notNull(), reason: text("reason"), createdAt: integer("created_at", { mode: "timestamp" }).notNull(), });