Some checks failed
CI / build-and-test (push) Failing after -31m18s
- Created tables for agent_personas, agent_parts, agent_traits, and character_arcs. - Established relationships between personas, parts, skills, guardrails, and traits. - Added arc stages and their corresponding parts, along with a persona_arc table to track current stages. - Implemented cascading delete rules for referential integrity.
37 lines
1.5 KiB
Go
37 lines
1.5 KiB
Go
// Code generated by relspecgo. DO NOT EDIT.
|
|
package generatedmodels
|
|
|
|
import (
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type ModelPublicAgentPersonaParts struct {
|
|
bun.BaseModel `bun:"table:public.agent_persona_parts,alias:agent_persona_parts"`
|
|
PartID int64 `bun:"part_id,type:bigint,notnull," json:"part_id"`
|
|
PartOrder int32 `bun:"part_order,type:int,default:0,notnull," json:"part_order"`
|
|
PersonaID int64 `bun:"persona_id,type:bigint,notnull," json:"persona_id"`
|
|
Priority int32 `bun:"priority,type:int,default:0,notnull," json:"priority"`
|
|
RelPartID *ModelPublicAgentParts `bun:"rel:has-one,join:part_id=id" json:"relpartid,omitempty"` // Has one ModelPublicAgentParts
|
|
RelPersonaID *ModelPublicAgentPersonas `bun:"rel:has-one,join:persona_id=id" json:"relpersonaid,omitempty"` // Has one ModelPublicAgentPersonas
|
|
}
|
|
|
|
// TableName returns the table name for ModelPublicAgentPersonaParts
|
|
func (m ModelPublicAgentPersonaParts) TableName() string {
|
|
return "public.agent_persona_parts"
|
|
}
|
|
|
|
// TableNameOnly returns the table name without schema for ModelPublicAgentPersonaParts
|
|
func (m ModelPublicAgentPersonaParts) TableNameOnly() string {
|
|
return "agent_persona_parts"
|
|
}
|
|
|
|
// SchemaName returns the schema name for ModelPublicAgentPersonaParts
|
|
func (m ModelPublicAgentPersonaParts) SchemaName() string {
|
|
return "public"
|
|
}
|
|
|
|
// GetPrefix returns the table prefix
|
|
func (m ModelPublicAgentPersonaParts) GetPrefix() string {
|
|
return "APP"
|
|
}
|