Create a new database migration for NexNote's PostgreSQL schema
Create a new database migration for NexNote.
$ARGUMENTS — a description of what this migration does (e.g., "add review_items table", "add index on triples source_page_id")ls packages/db/migrations/ 2>/dev/null || echo "No migrations directory yet"
Read the ERD file at the repo root (ERD 초안 — AI 기반 Markdown 지식 위키 서비스.md) before writing any migration. Ensure your schema matches the ERD's column definitions, types, and constraints.
packages/db/migrations/NNNN_<snake_case_description>.sql-- migrate:up-- migrate:downid uuid PRIMARY KEY DEFAULT gen_random_uuid()timestamptz for all time columns with DEFAULT now() where appropriate