### 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
- Photography studios: documentation site using Next.js
- Where can I host Photography studios: Documentation site built with Next.js?
- I need a genuinely specialized documentation site workflow covering client galleries, usage permissions and original/derivative assets.

#### Resource Requirements
- primitive:compute
- primitive:postgres
- primitive:cdn

#### 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
- App responds on its public URL.
- Relational-records self-test from the example.

#### Limitations
- The technical basis was verified with the pattern fixture; the photography studios schema and workflow are an original design for this blueprint and were not executed as a separate application.
- Client galleries are private until released with consent; only consented portfolio media is public.
- Verified on the node-22 template at s-1vcpu-1gb; region, request-duration limits and other sizes are unknown or unverified.

#### Cost Estimate
- **Currency**: USD
- **Monthly Amount**: 10.0
- **Basis**: Size prices from pricing.toml (loaded by the API)
- **Components**:
    - App server: Size s-1vcpu-1gb, Quantity 1.0, Monthly Amount 5.0
    - Managed PostgreSQL database: Size s-1vcpu-1gb, Quantity 1.0, Monthly Amount 5.0
- **Note**: Always-on monthly price of the tested sizes; apps and databases auto-pause when idle.

#### Examples
- **Next.js pattern fixture**: Verified relational records basis for this blueprint.

#### Formats
- [HTML](/content/blueprints/photography-studios/documentation-site/next-js/index.html)
- [Markdown](/content/blueprints/photography-studios/documentation-site/next-js.md)
- [JSON](https://api.ample.computer/v1/catalog/recipes/page%3Ablueprints%3Aphotography-studios%3Adocumentation-site%3Anext-js)
