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

export const QuestionSchema = {
  id: field('serial'),
  difficulty: field('integer'),
  text: field('text'),
  deleted_at: field('timestamp', { nullable: true })
} satisfies Schema;

export type QuestionType = Infer<typeof QuestionSchema>