Pull Request branch dev-clone to main #1
|
|
@ -9,14 +9,11 @@ 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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user