0.0.3Updated 3 hours ago
import { field, type Infer, type Schema } from "../modules/schema.ts";

export const UserQuestionsSchema = {
  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 UserQuestionsSchema>