init
This commit is contained in:
25
backend/src/db/schema.ts
Normal file
25
backend/src/db/schema.ts
Normal 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(),
|
||||
});
|
||||
Reference in New Issue
Block a user