page:blueprints:photography studios:documentation site:next js

Photography studios: documentation site using Next.js

A documentation site blueprint for photography studios built with Next.js on Ample. Domain schema: listings (reference, session_type, price_from, publishing_status, agency_id): session packages with publishing status; agencies (name, location, studio_count): studios or locations; galleries (listing_id, object_key, cdn_key, consent_reference): published portfolio media; reports (agency_id, period, object_key, generated_at): studio booking reports; state_transitions (record_type, from_state, to_state): the allowed state machine. Public information: session packages and pricing from, consented portfolio galleries, studio locations. Kept out of scope until handling is reviewed: client galleries before release, minors in photographs, payment details. Client galleries are private until released with consent; only consented portfolio media is public. Technical basis verified on Next.js: a workspace-scoped table, an explicit state machine (draft to review to published) that rejects invalid transitions, and a cross-workspace read that returns nothing (transitions=true isolation=true).

Representative Queries

Resource Requirements

Infrastructure Requirements

  1. Compute: Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes.
  2. Postgres: Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied.
  3. CDN: The CDN host serves objects from published buckets. It does not front app compute and is not a cache or key-value store.

Workflow Steps

  1. Model the photography studios domain: Create the tables listings, agencies, galleries, reports, state_transitions. Session packages with publishing status live in listings; keep sensitive classes (client galleries before release, minors in photographs, payment details) out of this schema.
  2. Workflow step 1: Model versioned documents with a state machine (draft, review, published) scoped to a product version.
  3. Workflow step 2: Publish assets for released versions to the CDN bucket.
  4. Workflow step 3: Serve only published versions publicly.
  5. Workflow step 4: Deploy and verify the version list and a published page.
  6. Deploy: Run the synchronous deploy once and read the result. Re-running with no change is a no-op.
  7. Verify: Run the pattern self-test(s) from the example (/p/relational-records) and your own acceptance checks for the photography studios workflow.

Success Checks

Limitations

Cost Estimate

Examples

Formats