-
Notifications
You must be signed in to change notification settings - Fork 0
Stories DB Migration – V5__create_stories.sql #49
Copy link
Copy link
Open
Labels
area:dbIssues/PRs related to database schema, migrations, and persistence.Issues/PRs related to database schema, migrations, and persistence.area:storiesIssues/PRs related to the Stories domain (entity, repository, service, controller, feed, deletion)Issues/PRs related to the Stories domain (entity, repository, service, controller, feed, deletion)backendWork related to APIs, services, or controllers.Work related to APIs, services, or controllers.dbDatabase schemas, migrations, or SQL changes (Flyway, Postgres).Database schemas, migrations, or SQL changes (Flyway, Postgres).roadmapPlanned feature or strategic goal from the project roadmap.Planned feature or strategic goal from the project roadmap.type:featureNew feature related to backend types, DTOs, or models.New feature related to backend types, DTOs, or models.
Milestone
Metadata
Metadata
Assignees
Labels
area:dbIssues/PRs related to database schema, migrations, and persistence.Issues/PRs related to database schema, migrations, and persistence.area:storiesIssues/PRs related to the Stories domain (entity, repository, service, controller, feed, deletion)Issues/PRs related to the Stories domain (entity, repository, service, controller, feed, deletion)backendWork related to APIs, services, or controllers.Work related to APIs, services, or controllers.dbDatabase schemas, migrations, or SQL changes (Flyway, Postgres).Database schemas, migrations, or SQL changes (Flyway, Postgres).roadmapPlanned feature or strategic goal from the project roadmap.Planned feature or strategic goal from the project roadmap.type:featureNew feature related to backend types, DTOs, or models.New feature related to backend types, DTOs, or models.
Type
Fields
Give feedbackNo fields configured for Feature.
Summary
Create Flyway migration
V5__create_stories.sqlto addstoriestable withid uuid PK,author_id uuid NOT NULL FK → users(id),content text NOT NULL (1..1000),created_at timestamptz NOT NULL default now(),updated_at timestamptz NULL; add indexes on(created_at desc)and(author_id, created_at desc).Motivation / Problem
Enable Stories domain persistence following Flyway immutability and project naming/constraints.
Acceptance Criteria
src/main/resources/db/migration/and never modifies historical migrations.Target Release
v0.1.2
Notes / Links
docs/weekly-plan/week-5/week-5-plan-backend.md
docs/weekly-plan/week-5/week-5-plan-issues.md