Database & Schema
Datenbank & Schema
Eine Datenbank bewahrt geordnete Daten über die Zeit auf. Ihr Schema sagt, welche Entitäten, Felder, Typen und Beziehungen erlaubt sind.
Ein weiteres Beispiel
Eine Bestelltabelle verlinkt auf Kunden und begrenzt Währung, Betrag und Status.
Hauptteile
- 01Identity or input
- 02Policy or transformation
- 03Stored result and audit evidence
Verwenden Sie es, wenn
Verwenden Sie ein Schema, um Fakten wahr zu halten und zu erklären, was die Daten bedeuten.
Nutze es nicht, wenn
Legen Sie niemals jede Art von Daten in ein JSON-Feld ohne Prüfungen.
In Code verwendeter Name
SQL / ORM schema Vor dem Ausliefern
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 Datenbank & Schema (Database & Schema). User context: Eine Bestelltabelle verlinkt auf Kunden und begrenzt Währung, Betrag und Status. Technical concept or control: Datenbank & Schema (Database & Schema). Why it fits: Verwenden Sie ein Schema, um Fakten wahr zu halten und zu erklären, was die Daten bedeuten. Do not use it when: Legen Sie niemals jede Art von Daten in ein JSON-Feld ohne Prüfungen. 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): Kein einziger offizieller Standard kontrolliert den gesamten Begriff. Seine Bedeutung kann sich zwischen Teams, Plattformen oder Frameworks ändern. 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.
Diese Anfrage prüfen
Review how Datenbank & Schema (Database & Schema) is used now. Definition: Eine Datenbank bewahrt geordnete Daten über die Zeit auf. Ihr Schema sagt, welche Entitäten, Felder, Typen und Beziehungen erlaubt sind. 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.