Add .opencode/rules/backend.md

This commit is contained in:
2026-04-25 10:45:31 +02:00
parent d1770f5bd2
commit 50af75703d

View File

@@ -0,0 +1,20 @@
# Backend Rules
## PHP
- PHP 8+ Syntax
- Prepared Statements für DB Queries
- Input Validation immer auf Server-Seite
- Keine secrets in Code — .env nutzen
## REST API
- JSON als Standard-Format
- HTTP Status Codes korrekt nutzen
- GET/POST/etc. semantisch richtig
## SQLite
- Transactions für mehrere Writes
- FOREIGN KEY Constraints aktiviert
- Indexes auf häufige Query-Spalten