Projects and schema: the plan
Subprojects, categories and stage for projects, plus the schema audit's migration, as one plan to approve: what changes in the database, in goatboat and the site, and what Jay needs to decide.
Closes the loop on the schema audit and the talk about projects, repos and subprojects. Each item marked Decide needs an answer before it's built.
1. The model
- Project = a goal, with notes of its own. A repo is metadata on a project, not the project.
- Subproject = a project with a
parent. One level only. A note goes on the narrowest project it fits; notes that span subprojects live on the parent. - Category = a label on a top-level project, for grouping the projects page (e.g. Client work). Not a project, has no notes.
- Stage = where the work is:
active,complete,benched,shelved. Replaces thewiptag.
2. The migration (one, goatboat)
projects
- Add
parent_id→projects.id, nullable,on delete set null. One level enforced in ops. - Add
stage, required. Existing rows set from the table in section 4; new projects startactive. - Replace
kindwithcategory, nullable text. Decide: free text, or a fixed list (my pick: a fixed list you name, e.g.client,apps,tools,games). - Drop
video_url(0 rows). - Decide:
demo_url(1 row): keep, or move it intoapp_hrefand drop. - Decide:
icon(20 rows, shown nowhere): show it, or drop.
content
- Drop
content_hash,format,component_keyand their two checks (all unused). - Remove
imagefrom content types (0 rows). - Add the check that
sourceisdb/approuteand an approute row has afile(free, since the table is rebuilt anyway). - Decide:
authorshipnullable with no default, so "not stated" shows no label. All rows sayai-assistedonly because it's the default. If yes: set existing rows to null, or to what? (Code pages and artifacts are likelyai-generated; postshuman.) - Decide: content type
post: the posts became notes. If none are left, remove it too.
Safety (as in the audit)
- Copy the database.
- Apply to the copy with row counts before and after and a foreign key check (
scratch/migration-check.mts). - Open old proposals against the copy (they hold
formatandkind). - Deploy the site without
kindfirst, then migrate and deploy goatboat together.
3. Code changes that come with it
goatboat
- Ops and inputs:
parent,stage,categoryon create and update project. Refuse a parent that has a parent, a parent for a project that has subprojects, and a project as its own parent. - Visibility: a page is public only if its project and that project's parent are published. Adds a fourth condition to the audit's finding 8; every public query goes through it.
- Queries:
project=<slug>filters include subprojects' pages. The API returnsparentandchildrenper project. - MCP:
parent,stage,categoryon create and update project;list_projectsshows them. - Owner UI: the project editor gets parent, stage and category controls.
- Remove
readmefrom the default sections (never used in four projects). - Decide: rewrite
SCHEMA.mdandschema.dbmlfromschema.ts, or delete both (my pick: delete;schema.tsis the reference).
jaygriff-v4
- Projects page: grouped by category, subprojects indented under their parent, each with its stage.
- Notes picker (aside and bar): a parent lists its own sections, then each subproject as a heading with its sections.
- Project page: lists its subprojects (repo, stage).
- Byline and breadcrumb:
jaygriff.com › v3 › Decisions. - Drop the
kindbadge on/notes/projects. - Subprojects keep their own URLs (
/projects/jaygriff-v3); nothing moves.
4. Data, after the migration (proposals)
Decide each row. My guesses are filled in; ? means I can't tell.
Then:
- Move v4's thumbnail to jaygriff.com (or upload a new one).
- Decide: which Gems notes move to Games (and Simulations).
- Remove the
wiptag from the five projects, andclient-workonce category exists. - Merge the eight duplicate tag pairs (
nextjs/next-jsfirst: 9 and 8 pages). - Already pending: the 4 real publish dates (agent-skills-are-insane 2026-03-02, ai-calculator-moment 2026-01-30, ai-workflow-transparency 2026-01-23, how-i-split-a-session-into-commits 2026-09-13); rename "Thoughts on ai" to "Thoughts on AI"; remove Gems' empty default sections.
- Decide: delete the eleven test proposals from 21 October.
5. Small loose ends
- Proposal page: delete the now-unused
suggestion-editor.tsxand the oldapproveandapproveOpactions. - Commit both repos (uncommitted: the proposal page, MCP additions, auto-created sections, the notes aside's catch-all title).
- Name: "GoatBoat CMS" as the display name in goatboat's header and README; repo, package and MCP name stay
goatboat.
6. Left for later
Project images nobody reads (audit finding 4), project rows stored twice as content (5), the unfiled project (6), notes as a type (9), and the audit's open questions: games at scale, dates on projects, featured projects, tag pages, private vs unlisted, page history, scheduled publishing.
Order
- Section 5 cleanups and commits.
- Site stops reading
kind; deploy. - Migration (section 2) with its goatboat code (section 3); deploy together.
- Data proposals (section 4).
- Site: projects page, notes picker, project page (section 3, jaygriff-v4).
Related
- Schema audit, November 2026A review of goatboat's database on 30 November 2026: what the schema says, what the rows actually hold, and the migration I'd run.
- Projects ArchitectureIntroducing Projects as a first-class organizing concept to give docs, posts, and demos the context they need.
- Architectural Blueprint: Single-File "Code-as-Data" CMSA web-first content layer that treats fully interactive React components as flat text strings in a database, bypassing heavy bundlers while enabling rapid AI-assisted development.
- Why I'm Finally Moving to SQLite (And Why I Waited Until Now)After over 60 articles in one month, my file-based content system is breaking down. Here's why I'm migrating to SQLite, why now, and why I didn't do this sooner.