Files
amcs/schema/skills.dbml
T
warkanum 196b543bee
CI / build-and-test (push) Successful in 1m47s
feat(ui): add identity management for tenants and users
* 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
2026-07-20 22:50:55 +02:00

64 lines
2.0 KiB
Plaintext

Table agent_skills {
id bigserial [pk]
guid uuid [unique, not null, default: `gen_random_uuid()`]
name text [not null]
tenant_id text [ref: > tenants.id]
description text [not null, default: '']
content text [not null]
tags "text[]" [not null, default: `'{}'`]
language_tags "text[]" [not null, default: `'{}'`]
library_tags "text[]" [not null, default: `'{}'`]
framework_tags "text[]" [not null, default: `'{}'`]
domain_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_guardrails {
id bigserial [pk]
guid uuid [unique, not null, default: `gen_random_uuid()`]
name text [not null]
tenant_id text [ref: > tenants.id]
description text [not null, default: '']
content text [not null]
severity text [not null, default: 'medium']
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 project_skills {
id bigserial [pk]
project_id bigint [not null, ref: > projects.id]
skill_id bigint [not null, ref: > agent_skills.id]
override boolean [not null, default: false]
created_at timestamptz [not null, default: `now()`]
indexes {
(project_id, skill_id) [pk]
project_id
}
}
Table project_guardrails {
id bigserial [pk]
project_id bigint [not null, ref: > projects.id]
guardrail_id bigint [not null, ref: > agent_guardrails.id]
created_at timestamptz [not null, default: `now()`]
indexes {
(project_id, guardrail_id) [pk]
project_id
}
}
// Cross-file refs (for relspecgo merge)
Ref: project_skills.project_id > projects.id [delete: cascade]
Ref: project_skills.skill_id > agent_skills.id [delete: cascade]
Ref: project_guardrails.project_id > projects.id [delete: cascade]
Ref: project_guardrails.guardrail_id > agent_guardrails.id [delete: cascade]