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 91cd8c2fba - Show all commits

View File

@ -9,11 +9,14 @@ import {
} from "drizzle-orm/pg-core";
import { options } from "./options";
import { assessments } from "./assessments";
import { questions } from "./questions";
export const answers = pgTable("answers", {
id: varchar("id", { length: 50 })
.primaryKey()
.$defaultFn(() => createId()),
questionId: varchar("questionId", { length: 50 })
.references(() => questions.id),
optionId: varchar("optionId", { length: 50 })
.references(() => options.id),
assessmentId: varchar("assessmentId", { length: 50 })