{ "id": "0c94d780-f40b-4be6-861d-2d7a766ab835", "prevId": "acd8ee1e-67ef-49c5-bf74-30e575f9b99a", "version": "7", "dialect": "postgresql", "tables": { "public.account": { "name": "account", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "provider": { "name": "provider", "type": "text", "primaryKey": false, "notNull": true }, "provider_account_id": { "name": "provider_account_id", "type": "text", "primaryKey": false, "notNull": true }, "refresh_token": { "name": "refresh_token", "type": "text", "primaryKey": false, "notNull": false }, "access_token": { "name": "access_token", "type": "text", "primaryKey": false, "notNull": false }, "expires_at": { "name": "expires_at", "type": "integer", "primaryKey": false, "notNull": false }, "token_type": { "name": "token_type", "type": "text", "primaryKey": false, "notNull": false }, "scope": { "name": "scope", "type": "text", "primaryKey": false, "notNull": false }, "id_token": { "name": "id_token", "type": "text", "primaryKey": false, "notNull": false }, "session_state": { "name": "session_state", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "account_user_id_user_id_fk": { "name": "account_user_id_user_id_fk", "tableFrom": "account", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": { "account_provider_provider_account_id_pk": { "name": "account_provider_provider_account_id_pk", "columns": [ "provider", "provider_account_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.blueprint": { "name": "blueprint", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "intent_key": { "name": "intent_key", "type": "text", "primaryKey": false, "notNull": true }, "embedding": { "name": "embedding", "type": "vector(1536)", "primaryKey": false, "notNull": false }, "title": { "name": "title", "type": "text", "primaryKey": false, "notNull": true }, "model_version": { "name": "model_version", "type": "text", "primaryKey": false, "notNull": true }, "content_version": { "name": "content_version", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 }, "status": { "name": "status", "type": "blueprint_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'draft'" }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "blueprint_intent_key_unique": { "name": "blueprint_intent_key_unique", "nullsNotDistinct": false, "columns": [ "intent_key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.checkpoint": { "name": "checkpoint", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "segment_id": { "name": "segment_id", "type": "uuid", "primaryKey": false, "notNull": true }, "prompt": { "name": "prompt", "type": "text", "primaryKey": false, "notNull": true }, "kind": { "name": "kind", "type": "checkpoint_kind", "typeSchema": "public", "primaryKey": false, "notNull": true }, "reference_answer": { "name": "reference_answer", "type": "text", "primaryKey": false, "notNull": true }, "rubric_json": { "name": "rubric_json", "type": "jsonb", "primaryKey": false, "notNull": true }, "verify_status": { "name": "verify_status", "type": "verify_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'pending'" }, "content_version": { "name": "content_version", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 } }, "indexes": {}, "foreignKeys": { "checkpoint_segment_id_segment_id_fk": { "name": "checkpoint_segment_id_segment_id_fk", "tableFrom": "checkpoint", "tableTo": "segment", "columnsFrom": [ "segment_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.concept": { "name": "concept", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "blueprint_id": { "name": "blueprint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "ord": { "name": "ord", "type": "integer", "primaryKey": false, "notNull": true }, "name": { "name": "name", "type": "text", "primaryKey": false, "notNull": true }, "retrieval_ctx_ref": { "name": "retrieval_ctx_ref", "type": "text", "primaryKey": false, "notNull": false } }, "indexes": {}, "foreignKeys": { "concept_blueprint_id_blueprint_id_fk": { "name": "concept_blueprint_id_blueprint_id_fk", "tableFrom": "concept", "tableTo": "blueprint", "columnsFrom": [ "blueprint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.content_report": { "name": "content_report", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "checkpoint_id": { "name": "checkpoint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "grade_id": { "name": "grade_id", "type": "uuid", "primaryKey": false, "notNull": false }, "reason": { "name": "reason", "type": "content_report_reason", "typeSchema": "public", "primaryKey": false, "notNull": true }, "notes": { "name": "notes", "type": "text", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "content_report_checkpoint_id_checkpoint_id_fk": { "name": "content_report_checkpoint_id_checkpoint_id_fk", "tableFrom": "content_report", "tableTo": "checkpoint", "columnsFrom": [ "checkpoint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "content_report_grade_id_grade_id_fk": { "name": "content_report_grade_id_grade_id_fk", "tableFrom": "content_report", "tableTo": "grade", "columnsFrom": [ "grade_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.grade": { "name": "grade", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "response_id": { "name": "response_id", "type": "uuid", "primaryKey": false, "notNull": true }, "verdict": { "name": "verdict", "type": "grade_verdict", "typeSchema": "public", "primaryKey": false, "notNull": true }, "misconception_tag": { "name": "misconception_tag", "type": "text", "primaryKey": false, "notNull": false }, "confidence": { "name": "confidence", "type": "real", "primaryKey": false, "notNull": true }, "payload_json": { "name": "payload_json", "type": "jsonb", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "grade_response_id_response_id_fk": { "name": "grade_response_id_response_id_fk", "tableFrom": "grade", "tableTo": "response", "columnsFrom": [ "response_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.invite": { "name": "invite", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "email": { "name": "email", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "role": { "name": "role", "type": "user_role", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'learner'" }, "invited_by": { "name": "invited_by", "type": "uuid", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true }, "accepted_at": { "name": "accepted_at", "type": "timestamp", "primaryKey": false, "notNull": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "invite_invited_by_user_id_fk": { "name": "invite_invited_by_user_id_fk", "tableFrom": "invite", "tableTo": "user", "columnsFrom": [ "invited_by" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": { "invite_token_unique": { "name": "invite_token_unique", "nullsNotDistinct": false, "columns": [ "token" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.job": { "name": "job", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "type": { "name": "type", "type": "text", "primaryKey": false, "notNull": true }, "idempotency_key": { "name": "idempotency_key", "type": "text", "primaryKey": false, "notNull": true }, "status": { "name": "status", "type": "job_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'pending'" }, "payload_json": { "name": "payload_json", "type": "jsonb", "primaryKey": false, "notNull": true }, "attempts": { "name": "attempts", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "job_idempotency_key_unique": { "name": "job_idempotency_key_unique", "nullsNotDistinct": false, "columns": [ "idempotency_key" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.journey_instance": { "name": "journey_instance", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "blueprint_id": { "name": "blueprint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "position": { "name": "position", "type": "integer", "primaryKey": false, "notNull": true, "default": 0 } }, "indexes": {}, "foreignKeys": { "journey_instance_user_id_user_id_fk": { "name": "journey_instance_user_id_user_id_fk", "tableFrom": "journey_instance", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "journey_instance_blueprint_id_blueprint_id_fk": { "name": "journey_instance_blueprint_id_blueprint_id_fk", "tableFrom": "journey_instance", "tableTo": "blueprint", "columnsFrom": [ "blueprint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.lesson": { "name": "lesson", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "blueprint_id": { "name": "blueprint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "ord": { "name": "ord", "type": "integer", "primaryKey": false, "notNull": true }, "est_minutes": { "name": "est_minutes", "type": "integer", "primaryKey": false, "notNull": true, "default": 10 }, "locale": { "name": "locale", "type": "varchar(10)", "primaryKey": false, "notNull": true, "default": "'en'" }, "depth": { "name": "depth", "type": "varchar(20)", "primaryKey": false, "notNull": true, "default": "'standard'" }, "age_group": { "name": "age_group", "type": "varchar(10)", "primaryKey": false, "notNull": true, "default": "'adult'" } }, "indexes": {}, "foreignKeys": { "lesson_blueprint_id_blueprint_id_fk": { "name": "lesson_blueprint_id_blueprint_id_fk", "tableFrom": "lesson", "tableTo": "blueprint", "columnsFrom": [ "blueprint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.mastery": { "name": "mastery", "schema": "", "columns": { "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "concept_id": { "name": "concept_id", "type": "uuid", "primaryKey": false, "notNull": true }, "score": { "name": "score", "type": "real", "primaryKey": false, "notNull": true, "default": 0.5 }, "last_seen": { "name": "last_seen", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" }, "next_review": { "name": "next_review", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "mastery_user_id_user_id_fk": { "name": "mastery_user_id_user_id_fk", "tableFrom": "mastery", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "mastery_concept_id_concept_id_fk": { "name": "mastery_concept_id_concept_id_fk", "tableFrom": "mastery", "tableTo": "concept", "columnsFrom": [ "concept_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": { "mastery_user_id_concept_id_pk": { "name": "mastery_user_id_concept_id_pk", "columns": [ "user_id", "concept_id" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.misconception": { "name": "misconception", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "concept_id": { "name": "concept_id", "type": "uuid", "primaryKey": false, "notNull": true }, "tag": { "name": "tag", "type": "text", "primaryKey": false, "notNull": true }, "description": { "name": "description", "type": "text", "primaryKey": false, "notNull": false }, "signature": { "name": "signature", "type": "text", "primaryKey": false, "notNull": true }, "correction": { "name": "correction", "type": "text", "primaryKey": false, "notNull": false }, "verify_status": { "name": "verify_status", "type": "verify_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'pending'" } }, "indexes": {}, "foreignKeys": { "misconception_concept_id_concept_id_fk": { "name": "misconception_concept_id_concept_id_fk", "tableFrom": "misconception", "tableTo": "concept", "columnsFrom": [ "concept_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.novel_misconduct_queue": { "name": "novel_misconduct_queue", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "grade_id": { "name": "grade_id", "type": "uuid", "primaryKey": false, "notNull": true }, "checkpoint_id": { "name": "checkpoint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "response_text": { "name": "response_text", "type": "text", "primaryKey": false, "notNull": true }, "evidence_span": { "name": "evidence_span", "type": "text", "primaryKey": false, "notNull": true }, "processed": { "name": "processed", "type": "boolean", "primaryKey": false, "notNull": true, "default": false }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "novel_misconduct_queue_grade_id_grade_id_fk": { "name": "novel_misconduct_queue_grade_id_grade_id_fk", "tableFrom": "novel_misconduct_queue", "tableTo": "grade", "columnsFrom": [ "grade_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "novel_misconduct_queue_checkpoint_id_checkpoint_id_fk": { "name": "novel_misconduct_queue_checkpoint_id_checkpoint_id_fk", "tableFrom": "novel_misconduct_queue", "tableTo": "checkpoint", "columnsFrom": [ "checkpoint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.password_reset_token": { "name": "password_reset_token", "schema": "", "columns": { "token": { "name": "token", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "password_reset_token_user_id_user_id_fk": { "name": "password_reset_token_user_id_user_id_fk", "tableFrom": "password_reset_token", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.response": { "name": "response", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "checkpoint_id": { "name": "checkpoint_id", "type": "uuid", "primaryKey": false, "notNull": true }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": true }, "self_confidence": { "name": "self_confidence", "type": "integer", "primaryKey": false, "notNull": false }, "ts": { "name": "ts", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": { "response_user_id_user_id_fk": { "name": "response_user_id_user_id_fk", "tableFrom": "response", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" }, "response_checkpoint_id_checkpoint_id_fk": { "name": "response_checkpoint_id_checkpoint_id_fk", "tableFrom": "response", "tableTo": "checkpoint", "columnsFrom": [ "checkpoint_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.segment": { "name": "segment", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "lesson_id": { "name": "lesson_id", "type": "uuid", "primaryKey": false, "notNull": true }, "ord": { "name": "ord", "type": "integer", "primaryKey": false, "notNull": true }, "body_json": { "name": "body_json", "type": "jsonb", "primaryKey": false, "notNull": true }, "source_chunk_ids": { "name": "source_chunk_ids", "type": "uuid[]", "primaryKey": false, "notNull": true, "default": "'{}'" }, "verify_status": { "name": "verify_status", "type": "verify_status", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'pending'" }, "content_version": { "name": "content_version", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 }, "difficulty_level": { "name": "difficulty_level", "type": "integer", "primaryKey": false, "notNull": true, "default": 1 } }, "indexes": {}, "foreignKeys": { "segment_lesson_id_lesson_id_fk": { "name": "segment_lesson_id_lesson_id_fk", "tableFrom": "segment", "tableTo": "lesson", "columnsFrom": [ "lesson_id" ], "columnsTo": [ "id" ], "onDelete": "no action", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.session": { "name": "session", "schema": "", "columns": { "session_token": { "name": "session_token", "type": "text", "primaryKey": true, "notNull": true }, "user_id": { "name": "user_id", "type": "uuid", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": { "session_user_id_user_id_fk": { "name": "session_user_id_user_id_fk", "tableFrom": "session", "tableTo": "user", "columnsFrom": [ "user_id" ], "columnsTo": [ "id" ], "onDelete": "cascade", "onUpdate": "no action" } }, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.site_config": { "name": "site_config", "schema": "", "columns": { "key": { "name": "key", "type": "varchar(100)", "primaryKey": true, "notNull": true }, "value": { "name": "value", "type": "text", "primaryKey": false, "notNull": true }, "updated_at": { "name": "updated_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.source_chunk": { "name": "source_chunk", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "doc_ref": { "name": "doc_ref", "type": "text", "primaryKey": false, "notNull": true }, "embedding": { "name": "embedding", "type": "vector(1536)", "primaryKey": false, "notNull": false }, "text": { "name": "text", "type": "text", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.user": { "name": "user", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "email": { "name": "email", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "email_verified": { "name": "email_verified", "type": "timestamp", "primaryKey": false, "notNull": false }, "name": { "name": "name", "type": "varchar(255)", "primaryKey": false, "notNull": false }, "image": { "name": "image", "type": "text", "primaryKey": false, "notNull": false }, "role": { "name": "role", "type": "user_role", "typeSchema": "public", "primaryKey": false, "notNull": true, "default": "'learner'" }, "locale": { "name": "locale", "type": "varchar(10)", "primaryKey": false, "notNull": true, "default": "'en'" }, "password_hash": { "name": "password_hash", "type": "text", "primaryKey": false, "notNull": false }, "preferences": { "name": "preferences", "type": "jsonb", "primaryKey": false, "notNull": true, "default": "'{}'::jsonb" }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": { "user_email_unique": { "name": "user_email_unique", "nullsNotDistinct": false, "columns": [ "email" ] } }, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.verification_token": { "name": "verification_token", "schema": "", "columns": { "identifier": { "name": "identifier", "type": "text", "primaryKey": false, "notNull": true }, "token": { "name": "token", "type": "text", "primaryKey": false, "notNull": true }, "expires": { "name": "expires", "type": "timestamp", "primaryKey": false, "notNull": true } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": { "verification_token_identifier_token_pk": { "name": "verification_token_identifier_token_pk", "columns": [ "identifier", "token" ] } }, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false }, "public.verify_report": { "name": "verify_report", "schema": "", "columns": { "id": { "name": "id", "type": "uuid", "primaryKey": true, "notNull": true, "default": "gen_random_uuid()" }, "target_id": { "name": "target_id", "type": "uuid", "primaryKey": false, "notNull": true }, "target_type": { "name": "target_type", "type": "text", "primaryKey": false, "notNull": true }, "verdict": { "name": "verdict", "type": "verify_verdict", "typeSchema": "public", "primaryKey": false, "notNull": true }, "confidence": { "name": "confidence", "type": "real", "primaryKey": false, "notNull": true }, "payload_json": { "name": "payload_json", "type": "jsonb", "primaryKey": false, "notNull": true }, "model_version": { "name": "model_version", "type": "text", "primaryKey": false, "notNull": true }, "created_at": { "name": "created_at", "type": "timestamp", "primaryKey": false, "notNull": true, "default": "now()" } }, "indexes": {}, "foreignKeys": {}, "compositePrimaryKeys": {}, "uniqueConstraints": {}, "policies": {}, "checkConstraints": {}, "isRLSEnabled": false } }, "enums": { "public.blueprint_status": { "name": "blueprint_status", "schema": "public", "values": [ "draft", "verifying", "published", "flagged" ] }, "public.checkpoint_kind": { "name": "checkpoint_kind", "schema": "public", "values": [ "predict", "explain", "solve" ] }, "public.content_report_reason": { "name": "content_report_reason", "schema": "public", "values": [ "grade_wrong", "content_error", "other" ] }, "public.grade_verdict": { "name": "grade_verdict", "schema": "public", "values": [ "mastered", "partial", "misconception", "uncertain" ] }, "public.job_status": { "name": "job_status", "schema": "public", "values": [ "pending", "running", "done", "failed" ] }, "public.user_role": { "name": "user_role", "schema": "public", "values": [ "learner", "admin", "suspended" ] }, "public.verify_status": { "name": "verify_status", "schema": "public", "values": [ "pending", "pass", "fail", "uncertain" ] }, "public.verify_verdict": { "name": "verify_verdict", "schema": "public", "values": [ "pass", "fail", "uncertain" ] } }, "schemas": {}, "sequences": {}, "roles": {}, "policies": {}, "views": {}, "_meta": { "columns": {}, "schemas": {}, "tables": {} } }