Database & Schema
Database e Schema
Un database conserva dati organizzati nel tempo. Il suo schema dice quali entità, campi, tipi e relazioni sono consentiti.
Un altro esempio
Una tabella degli ordini si collega ai clienti e limita i valori consentiti per valuta, importo e stato.
Parti principali
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Usalo quando
Usa uno schema per mantenere i fatti veri e spiegare cosa significano i dati.
Non usarlo quando
Non mettere mai ogni tipo di dato in un unico campo JSON senza controlli.
Nome usato nel codice
SQL / ORM schema Prima di spedire
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Database e Schema (Database & Schema). User context: Una tabella degli ordini si collega ai clienti e limita i valori consentiti per valuta, importo e stato. Technical concept or control: Database e Schema (Database & Schema). Why it fits: Usa uno schema per mantenere i fatti veri e spiegare cosa significano i dati. Do not use it when: Non mettere mai ogni tipo di dato in un unico campo JSON senza controlli. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Nessun singolo standard ufficiale controlla l'intero termine. Il suo significato può cambiare tra team, piattaforme o framework. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Controlla questa richiesta
Review how Database e Schema (Database & Schema) is used now. Definition: Un database conserva dati organizzati nel tempo. Il suo schema dice quali entità, campi, tipi e relazioni sono consentiti. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.