feat(db): add generated models for public schema entities
CI / build-and-test (push) Has been cancelled
CI / build-and-test (push) Has been cancelled
* Create ModelPublicPersonaArc for persona_arc table * Create ModelPublicPlanDependencies for plan_dependencies table * Create ModelPublicPlanGuardrails for plan_guardrails table * Create ModelPublicPlanRelatedPlans for plan_related_plans table * Create ModelPublicPlanSkills for plan_skills table * Create ModelPublicPlans for plans table * Create ModelPublicProjectGuardrails for project_guardrails table * Create ModelPublicProjectSkills for project_skills table * Create ModelPublicProjects for projects table * Create ModelPublicStoredFiles for stored_files table * Create ModelPublicThoughtLinks for thought_links table * Create ModelPublicThoughts for thoughts table * Create ModelPublicToolAnnotations for tool_annotations table
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user