import { field, type Infer, type Schema } from "../modules/schema.ts";
export const UserQuestionSchema = {
user_id: field('integer'),
question_id: field('integer'),
assign_date: field('timestamp'),
answer_date: field('timestamp', { nullable: true }),
correct: field('boolean', { nullable: true })
} satisfies Schema;
export type UserQuestionType = Infer<typeof UserQuestionSchema>