0.0.2Updated an hour ago
import { field, type Infer, type Schema } from "../modules/schema.ts";

export const AnswerSchema = {
  id: field('serial'),
  question_id: field('integer'),
  is_correct: field('boolean'),
  text: field('text'),
  language_id: field('integer'),
  deleted_at: field('timestamp', { nullable: true })
} satisfies Schema;

export type AnswerType = Infer<typeof AnswerSchema>