-- schema.sql — test project
-- Run against the "testapp" Postgres database

CREATE TABLE IF NOT EXISTS card_text (
  id          INT PRIMARY KEY DEFAULT 1,
  content     TEXT NOT NULL DEFAULT '',
  updated_at  TIMESTAMPTZ NOT NULL DEFAULT NOW()
);

-- Seed default row (idempotent)
INSERT INTO card_text (id, content)
VALUES (1, 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.')
ON CONFLICT (id) DO NOTHING;
