feat: add projects and quotas schema

This commit is contained in:
Philipp
2026-06-10 15:16:42 +02:00
parent e1687eac8c
commit c6c9de47fe
4 changed files with 33 additions and 0 deletions
+6
View File
@@ -39,6 +39,11 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- [x] `profiles.id` referenziert `auth.users.id`
- [x] Rollen-Enum `membership_role` mit `owner`, `admin`, `member`, `viewer` angelegt
- [x] FKs, Unique-/Primary-Keys und Indizes gesetzt
- [x] E2-T03: Projekte & Quotas
- [x] Migration fuer `projects` und `project_quotas` angelegt
- [x] Projekte referenzieren eindeutig einen Tenant
- [x] Quotas referenzieren 1:1 ein Projekt und erhalten Defaults
- [x] Quota-Checks fuer nicht-negative Werte gesetzt
## MVP-Backlog
@@ -79,3 +84,4 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- 2026-06-10: Gemeinsamer Go-Config-/Logging-Layer angelegt; Tests fuer Config-Defaults und Validierung ergaenzt.
- 2026-06-10: `golang-migrate`-Setup mit Baseline-Migration angelegt; lokaler Up/Down-Lauf gegen Supabase verifiziert.
- 2026-06-10: Kern-Tabellen-Migration `0002_core_identity` angelegt und lokal gegen Supabase verifiziert.
- 2026-06-10: Projekte-und-Quotas-Migration `0003_projects_and_quotas` angelegt und lokal gegen Supabase verifiziert.