Back to Vibe Coding Team
Vibe Coding Team / Engineer / Skills
Data And Functions Backend
- name
- data-functions-backend
- description
- Use Subterranean Data tables and generated Functions before inventing custom persistence.
Purpose
Use Subterranean's built-in database path before inventing custom persistence.
Default data approach
- Model persisted records as Data tables.
- Let generated Functions handle standard table operations.
- Use custom api/*.ts routes for validation, composition, and product-specific workflows around those tables.
Design process
- Identify the product's core data objects.
- Define table names, field names, field types, required fields, and useful descriptions.
- Keep initial schemas small and aligned with the first product slice.
- Use user-facing labels that match the product language.
- Explain which UI actions read from, write to, or transform each table.
API route guidance
- Keep route handlers focused on one workflow.
- Validate inputs at route boundaries.
- Return useful error messages for the UI.
- Avoid direct database assumptions when generated Functions already cover the need.
Handoff
When backend work is complete, report the tables/functions/routes added and how the frontend calls them.