Pull Request branch dev-clone to main #1

Merged
gitea merged 429 commits from dev-clone into main 2024-12-23 09:31:34 +00:00
Showing only changes of commit 1af996376c - Show all commits

View File

@ -0,0 +1,21 @@
import { createId } from "@paralleldrive/cuid2";
import {
boolean,
pgTable,
text,
timestamp,
varchar,
} from "drizzle-orm/pg-core";
import { subAspects } from "./subAspects"
export const questions = pgTable("questions", {
id: varchar("id", { length: 50 })
.primaryKey()
.$defaultFn(() => createId()),
question: text("question"),
needFile: boolean("needFile").default(false),
createdAt: timestamp("createdAt", { mode: "date" }).defaultNow(),
updatedAt: timestamp("updatedAt", { mode: "date" }).defaultNow(),
deletedAt: timestamp("deletedAt", { mode: "date" }),
subAspectId: varchar("subAspectId").references(() => subAspects.id),
});