nidus-sync/db/dbinfo/comms.text_job.bob.go
Eli Ribble a68b8781e7
Add ability to make LLM agent forget the conversation history
This is extremely useful for testing.

In order to do this I needed to actually deploy the migration to a bob
fork so I could start to add support for behaviors I really want.
Specifically the ability to search for ids in a slice.
2026-01-27 18:44:02 +00:00

147 lines
3 KiB
Go

// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var CommsTextJobs = Table[
commsTextJobColumns,
commsTextJobIndexes,
commsTextJobForeignKeys,
commsTextJobUniques,
commsTextJobChecks,
]{
Schema: "comms",
Name: "text_job",
Columns: commsTextJobColumns{
Content: column{
Name: "content",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Destination: column{
Name: "destination",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ID: column{
Name: "id",
DBType: "integer",
Default: "nextval('comms.text_job_id_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type_",
DBType: "comms.textjobtype",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: commsTextJobIndexes{
TextJobPkey: index{
Type: "btree",
Name: "text_job_pkey",
Columns: []indexColumn{
{
Name: "id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "text_job_pkey",
Columns: []string{"id"},
Comment: "",
},
ForeignKeys: commsTextJobForeignKeys{
CommsTextJobTextJobDestinationFkey: foreignKey{
constraint: constraint{
Name: "comms.text_job.text_job_destination_fkey",
Columns: []string{"destination"},
Comment: "",
},
ForeignTable: "comms.phone",
ForeignColumns: []string{"e164"},
},
},
Comment: "Used to track text messages that should be sent later",
}
type commsTextJobColumns struct {
Content column
Created column
Destination column
ID column
Type column
}
func (c commsTextJobColumns) AsSlice() []column {
return []column{
c.Content, c.Created, c.Destination, c.ID, c.Type,
}
}
type commsTextJobIndexes struct {
TextJobPkey index
}
func (i commsTextJobIndexes) AsSlice() []index {
return []index{
i.TextJobPkey,
}
}
type commsTextJobForeignKeys struct {
CommsTextJobTextJobDestinationFkey foreignKey
}
func (f commsTextJobForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.CommsTextJobTextJobDestinationFkey,
}
}
type commsTextJobUniques struct{}
func (u commsTextJobUniques) AsSlice() []constraint {
return []constraint{}
}
type commsTextJobChecks struct{}
func (c commsTextJobChecks) AsSlice() []check {
return []check{}
}