feat(ui): add identity management for tenants and users
CI / build-and-test (push) Successful in 1m47s
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:
@@ -1,7 +1,8 @@
|
||||
Table agent_personas {
|
||||
id bigserial [pk]
|
||||
guid uuid [unique, not null, default: `gen_random_uuid()`]
|
||||
name text [unique, not null]
|
||||
name text [not null]
|
||||
tenant_id text [ref: > tenants.id]
|
||||
description text [not null, default: '']
|
||||
summary text [not null]
|
||||
detail text [not null, default: '']
|
||||
@@ -11,12 +12,15 @@ Table agent_personas {
|
||||
tags "text[]" [not null, default: `'{}'`]
|
||||
created_at timestamptz [not null, default: `now()`]
|
||||
updated_at timestamptz [not null, default: `now()`]
|
||||
|
||||
indexes { (tenant_id, name) [unique] tenant_id }
|
||||
}
|
||||
|
||||
Table agent_parts {
|
||||
id bigserial [pk]
|
||||
guid uuid [unique, not null, default: `gen_random_uuid()`]
|
||||
name text [unique, not null]
|
||||
name text [not null]
|
||||
tenant_id text [ref: > tenants.id]
|
||||
part_type text [not null]
|
||||
description text [not null, default: '']
|
||||
summary text [not null]
|
||||
@@ -24,6 +28,8 @@ Table agent_parts {
|
||||
tags "text[]" [not null, default: `'{}'`]
|
||||
created_at timestamptz [not null, default: `now()`]
|
||||
updated_at timestamptz [not null, default: `now()`]
|
||||
|
||||
indexes { (tenant_id, name) [unique] tenant_id }
|
||||
}
|
||||
|
||||
Table agent_persona_parts {
|
||||
@@ -77,13 +83,16 @@ Table agent_persona_guardrails {
|
||||
Table agent_traits {
|
||||
id bigserial [pk]
|
||||
guid uuid [unique, not null, default: `gen_random_uuid()`]
|
||||
name text [unique, not null]
|
||||
name text [not null]
|
||||
tenant_id text [ref: > tenants.id]
|
||||
trait_type text [not null]
|
||||
description text [not null, default: '']
|
||||
instruction text [not null, default: '']
|
||||
tags "text[]" [not null, default: `'{}'`]
|
||||
created_at timestamptz [not null, default: `now()`]
|
||||
updated_at timestamptz [not null, default: `now()`]
|
||||
|
||||
indexes { (tenant_id, name) [unique] tenant_id }
|
||||
}
|
||||
|
||||
Table agent_persona_traits {
|
||||
@@ -98,11 +107,14 @@ Table agent_persona_traits {
|
||||
|
||||
Table character_arcs {
|
||||
id bigserial [pk]
|
||||
name text [unique, not null]
|
||||
name text [not null]
|
||||
tenant_id text [ref: > tenants.id]
|
||||
description text [not null, default: '']
|
||||
summary text [not null, default: '']
|
||||
created_at timestamptz [not null, default: `now()`]
|
||||
updated_at timestamptz [not null, default: `now()`]
|
||||
|
||||
indexes { (tenant_id, name) [unique] tenant_id }
|
||||
}
|
||||
|
||||
Table arc_stages {
|
||||
@@ -127,7 +139,7 @@ Table arc_stage_parts {
|
||||
|
||||
Table persona_arc {
|
||||
id bigserial [pk]
|
||||
persona_id bigint [pk, ref: > agent_personas.id]
|
||||
persona_id bigint [unique, not null, ref: > agent_personas.id]
|
||||
arc_id bigint [not null, ref: > character_arcs.id]
|
||||
current_stage_id bigint [not null, ref: > arc_stages.id]
|
||||
updated_at timestamptz [not null, default: `now()`]
|
||||
|
||||
Reference in New Issue
Block a user