CREATE TABLE IF NOT EXISTS media_metadata (
  url TEXT PRIMARY KEY,
  category TEXT NOT NULL DEFAULT '미분류',
  created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
  updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);

CREATE INDEX IF NOT EXISTS media_metadata_category_idx
  ON media_metadata (category ASC);
