feat: story CRUD API with validation and publishing
Some checks failed
/ checks (push) Failing after 35s
/ deploy (push) Has been skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nholtware 2026-11-05 12:43:26 -06:00
parent b93d646be0
commit 806e893076
6 changed files with 486 additions and 0 deletions

View file

@ -0,0 +1,14 @@
-- Up Migration
CREATE TABLE stories (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
title TEXT NOT NULL,
description TEXT NOT NULL DEFAULT '',
doc JSONB NOT NULL,
published BOOLEAN NOT NULL DEFAULT false,
created_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
CREATE INDEX stories_published_idx ON stories (published, updated_at DESC);
-- Down Migration
DROP TABLE stories;