Add OCR fields to reproducible database schema
This commit is contained in:
@ -17,6 +17,11 @@ CREATE TABLE IF NOT EXISTS movie (
|
|||||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
modified_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
modified_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
|
||||||
|
ocr_status TEXT NOT NULL DEFAULT 'pending',
|
||||||
|
ocr_raw_text TEXT,
|
||||||
|
ocr_error TEXT,
|
||||||
|
ocr_processed_at TEXT,
|
||||||
|
|
||||||
CHECK (age IS NULL OR age >= 0),
|
CHECK (age IS NULL OR age >= 0),
|
||||||
CHECK (rating IS NULL OR rating BETWEEN 0 AND 10),
|
CHECK (rating IS NULL OR rating BETWEEN 0 AND 10),
|
||||||
CHECK (duration_seconds IS NULL OR duration_seconds >= 0)
|
CHECK (duration_seconds IS NULL OR duration_seconds >= 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user