Yet another Fluxer bot built with TypeScript and Bun
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});