// Code generated by relspecgo. DO NOT EDIT. package generatedmodels import ( "fmt" sql_types "git.warky.dev/wdevs/relspecgo/pkg/sqltypes" "github.com/uptrace/bun" ) type ModelPublicAgentSkills struct { bun.BaseModel `bun:"table:public.agent_skills,alias:agent_skills"` ID sql_types.SqlInt64 `bun:"id,type:bigserial,pk,autoincrement," json:"id"` Content sql_types.SqlString `bun:"content,type:text,notnull," json:"content"` CreatedAt sql_types.SqlTimeStamp `bun:"created_at,type:timestamptz,default:now(),notnull," json:"created_at"` Description sql_types.SqlString `bun:"description,type:text,default:'',notnull," json:"description"` DomainTags sql_types.SqlStringArray `bun:"domain_tags,type:text[],default:'{}',notnull," json:"domain_tags"` FrameworkTags sql_types.SqlStringArray `bun:"framework_tags,type:text[],default:'{}',notnull," json:"framework_tags"` GUID sql_types.SqlUUID `bun:"guid,type:uuid,default:gen_random_uuid(),notnull," json:"guid"` LanguageTags sql_types.SqlStringArray `bun:"language_tags,type:text[],default:'{}',notnull," json:"language_tags"` LibraryTags sql_types.SqlStringArray `bun:"library_tags,type:text[],default:'{}',notnull," json:"library_tags"` Name sql_types.SqlString `bun:"name,type:text,notnull," json:"name"` Tags sql_types.SqlStringArray `bun:"tags,type:text[],default:'{}',notnull," json:"tags"` UpdatedAt sql_types.SqlTimeStamp `bun:"updated_at,type:timestamptz,default:now(),notnull," json:"updated_at"` RelSkillIDPublicAgentPersonaSkills []*ModelPublicAgentPersonaSkills `bun:"rel:has-many,join:id=skill_id" json:"relskillidpublicagentpersonaskills,omitempty"` // Has many ModelPublicAgentPersonaSkills RelRelatedSkillIDPublicLearnings []*ModelPublicLearnings `bun:"rel:has-many,join:id=related_skill_id" json:"relrelatedskillidpubliclearnings,omitempty"` // Has many ModelPublicLearnings RelSkillIDPublicPlanSkills []*ModelPublicPlanSkills `bun:"rel:has-many,join:id=skill_id" json:"relskillidpublicplanskills,omitempty"` // Has many ModelPublicPlanSkills RelSkillIDPublicProjectSkills []*ModelPublicProjectSkills `bun:"rel:has-many,join:id=skill_id" json:"relskillidpublicprojectskills,omitempty"` // Has many ModelPublicProjectSkills } // TableName returns the table name for ModelPublicAgentSkills func (m ModelPublicAgentSkills) TableName() string { return "public.agent_skills" } // TableNameOnly returns the table name without schema for ModelPublicAgentSkills func (m ModelPublicAgentSkills) TableNameOnly() string { return "agent_skills" } // SchemaName returns the schema name for ModelPublicAgentSkills func (m ModelPublicAgentSkills) SchemaName() string { return "public" } // GetID returns the primary key value func (m ModelPublicAgentSkills) GetID() int64 { return m.ID.Int64() } // GetIDStr returns the primary key as a string func (m ModelPublicAgentSkills) GetIDStr() string { return m.ID.String() } // SetID sets the primary key value func (m ModelPublicAgentSkills) SetID(newid int64) { m.UpdateID(newid) } // UpdateID updates the primary key value func (m *ModelPublicAgentSkills) UpdateID(newid int64) { m.ID.FromString(fmt.Sprintf("%d", newid)) } // GetIDName returns the name of the primary key column func (m ModelPublicAgentSkills) GetIDName() string { return "id" } // GetPrefix returns the table prefix func (m ModelPublicAgentSkills) GetPrefix() string { return "ASG" }