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
@@ -0,0 +1,59 @@
// Code generated by relspecgo. DO NOT EDIT.
package generatedmodels
import (
sql_types "git.warky.dev/wdevs/relspecgo/pkg/sqltypes"
"github.com/uptrace/bun"
)
type ModelPublicManagedAPIKeys struct {
bun.BaseModel `bun:"table:public.managed_api_keys,alias:managed_api_keys"`
KeyID sql_types.SqlString `bun:"key_id,type:text,pk," json:"key_id"`
SecretHash sql_types.SqlString `bun:"secret_hash,type:text,notnull," json:"secret_hash"`
RelKeyID *ModelPublicAPIKeyAssignments `bun:"rel:has-one,join:key_id=key_id" json:"relkeyid,omitempty"` // Has one ModelPublicAPIKeyAssignments
}
// TableName returns the table name for ModelPublicManagedAPIKeys
func (m ModelPublicManagedAPIKeys) TableName() string {
return "public.managed_api_keys"
}
// TableNameOnly returns the table name without schema for ModelPublicManagedAPIKeys
func (m ModelPublicManagedAPIKeys) TableNameOnly() string {
return "managed_api_keys"
}
// SchemaName returns the schema name for ModelPublicManagedAPIKeys
func (m ModelPublicManagedAPIKeys) SchemaName() string {
return "public"
}
// GetID returns the primary key value
func (m ModelPublicManagedAPIKeys) GetID() string {
return m.KeyID.String()
}
// GetIDStr returns the primary key as a string
func (m ModelPublicManagedAPIKeys) GetIDStr() string {
return m.KeyID.String()
}
// SetID sets the primary key value
func (m ModelPublicManagedAPIKeys) SetID(newid string) {
m.UpdateID(newid)
}
// UpdateID updates the primary key value
func (m *ModelPublicManagedAPIKeys) UpdateID(newid string) {
m.KeyID.FromString(newid)
}
// GetIDName returns the name of the primary key column
func (m ModelPublicManagedAPIKeys) GetIDName() string {
return "key_id"
}
// GetPrefix returns the table prefix
func (m ModelPublicManagedAPIKeys) GetPrefix() string {
return "MAK"
}