feat(ui): add identity management for tenants and users
CI / build-and-test (push) Successful in 1m47s

* Implement tenant and user creation in IdentityPage
* Add API calls for managing tenants and users
* Introduce tenant-scoped API requests
* Update sidebar to include identity navigation
* Create BooleanStatusBadge component for key status
This commit is contained in:
2026-07-20 22:50:55 +02:00
parent 3d4e6d0939
commit 196b543bee
64 changed files with 3363 additions and 615 deletions
+33
View File
@@ -0,0 +1,33 @@
Table tenants {
id text [pk]
name text [not null, unique]
created_at timestamptz [not null, default: `now()`]
}
Table tenant_users {
id text [pk]
tenant_id text [not null, ref: > tenants.id]
name text [not null]
email text
created_at timestamptz [not null, default: `now()`]
Indexes {
tenant_id
(tenant_id, email) [unique]
}
}
Table api_key_assignments {
key_id text [pk]
tenant_id text [not null, ref: > tenants.id]
user_id text [ref: > tenant_users.id]
description text [not null, default: '']
source text [not null]
enabled boolean [not null, default: true]
created_at timestamptz [not null, default: `now()`]
}
Table managed_api_keys {
key_id text [pk, ref: > api_key_assignments.key_id]
secret_hash text [not null]
}