This commit is contained in:
kokopi
2026-03-08 19:40:53 +09:00
commit 16bc00632d
67 changed files with 2476 additions and 0 deletions

25
backend/src/db/schema.ts Normal file
View File

@@ -0,0 +1,25 @@
import { int, text, sqliteTable } from "drizzle-orm/sqlite-core";
export const tickets = sqliteTable("tickets", {
id: text("id").primaryKey(),
subject: text("subject").notNull(),
description: text("description").notNull().default(""),
type: text("type", {
enum: [
"bug",
"billing",
"account",
"feature-request",
"feedback",
"other",
],
})
.notNull()
.default("other"),
status: text("status", {
enum: ["open", "in-progress", "resolved", "closed"],
})
.notNull()
.default("open"),
createdAt: text("createdAt").notNull(),
});