Some checks failed
CI / build-and-test (push) Failing after -31m25s
* Update project creation and retrieval to use generated models * Modify skill addition and listing to utilize generated models * Refactor thought handling to incorporate generated models * Adjust tool annotations to align with new model structure * Update API calls in the UI to use new ResolveSpec-based endpoints * Enhance stats retrieval logic to aggregate thought metadata
68 lines
2.5 KiB
Go
68 lines
2.5 KiB
Go
// Code generated by relspecgo. DO NOT EDIT.
|
|
package generatedmodels
|
|
|
|
import (
|
|
"fmt"
|
|
resolvespec_common "github.com/bitechdev/ResolveSpec/pkg/spectypes"
|
|
"github.com/uptrace/bun"
|
|
)
|
|
|
|
type ModelPublicHouseholdVendors struct {
|
|
bun.BaseModel `bun:"table:public.household_vendors,alias:household_vendors"`
|
|
ID resolvespec_common.SqlUUID `bun:"id,type:uuid,pk,default:gen_random_uuid()," json:"id"`
|
|
CreatedAt resolvespec_common.SqlTimeStamp `bun:"created_at,type:timestamptz,default:now(),notnull," json:"created_at"`
|
|
Email resolvespec_common.SqlString `bun:"email,type:text,nullzero," json:"email"`
|
|
LastUsed resolvespec_common.SqlDate `bun:"last_used,type:date,nullzero," json:"last_used"`
|
|
Name resolvespec_common.SqlString `bun:"name,type:text,notnull," json:"name"`
|
|
Notes resolvespec_common.SqlString `bun:"notes,type:text,nullzero," json:"notes"`
|
|
Phone resolvespec_common.SqlString `bun:"phone,type:text,nullzero," json:"phone"`
|
|
Rating resolvespec_common.SqlInt32 `bun:"rating,type:int,nullzero," json:"rating"`
|
|
ServiceType resolvespec_common.SqlString `bun:"service_type,type:text,nullzero," json:"service_type"`
|
|
Website resolvespec_common.SqlString `bun:"website,type:text,nullzero," json:"website"`
|
|
}
|
|
|
|
// TableName returns the table name for ModelPublicHouseholdVendors
|
|
func (m ModelPublicHouseholdVendors) TableName() string {
|
|
return "public.household_vendors"
|
|
}
|
|
|
|
// TableNameOnly returns the table name without schema for ModelPublicHouseholdVendors
|
|
func (m ModelPublicHouseholdVendors) TableNameOnly() string {
|
|
return "household_vendors"
|
|
}
|
|
|
|
// SchemaName returns the schema name for ModelPublicHouseholdVendors
|
|
func (m ModelPublicHouseholdVendors) SchemaName() string {
|
|
return "public"
|
|
}
|
|
|
|
// GetID returns the primary key value
|
|
func (m ModelPublicHouseholdVendors) GetID() int64 {
|
|
return m.ID.Int64()
|
|
}
|
|
|
|
// GetIDStr returns the primary key as a string
|
|
func (m ModelPublicHouseholdVendors) GetIDStr() string {
|
|
return fmt.Sprintf("%v", m.ID)
|
|
}
|
|
|
|
// SetID sets the primary key value
|
|
func (m ModelPublicHouseholdVendors) SetID(newid int64) {
|
|
m.UpdateID(newid)
|
|
}
|
|
|
|
// UpdateID updates the primary key value
|
|
func (m *ModelPublicHouseholdVendors) UpdateID(newid int64) {
|
|
m.ID.FromString(fmt.Sprintf("%d", newid))
|
|
}
|
|
|
|
// GetIDName returns the name of the primary key column
|
|
func (m ModelPublicHouseholdVendors) GetIDName() string {
|
|
return "id"
|
|
}
|
|
|
|
// GetPrefix returns the table prefix
|
|
func (m ModelPublicHouseholdVendors) GetPrefix() string {
|
|
return "HVO"
|
|
}
|