nidus-sync/db/dbinfo/comms.email_template.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

162 lines
3.5 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 CommsEmailTemplates = Table[
commsEmailTemplateColumns,
commsEmailTemplateIndexes,
commsEmailTemplateForeignKeys,
commsEmailTemplateUniques,
commsEmailTemplateChecks,
]{
Schema: "comms",
Name: "email_template",
Columns: commsEmailTemplateColumns{
ContentHTML: column{
Name: "content_html",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ContentTXT: column{
Name: "content_txt",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ContentHashHTML: column{
Name: "content_hash_html",
DBType: "character varying",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ContentHashTXT: column{
Name: "content_hash_txt",
DBType: "character varying",
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,
},
ID: column{
Name: "id",
DBType: "integer",
Default: "nextval('comms.email_template_id_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Superceded: column{
Name: "superceded",
DBType: "timestamp without time zone",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
MessageType: column{
Name: "message_type",
DBType: "comms.messagetypeemail",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: commsEmailTemplateIndexes{
EmailTemplatePkey: index{
Type: "btree",
Name: "email_template_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: "email_template_pkey",
Columns: []string{"id"},
Comment: "",
},
Comment: "",
}
type commsEmailTemplateColumns struct {
ContentHTML column
ContentTXT column
ContentHashHTML column
ContentHashTXT column
Created column
ID column
Superceded column
MessageType column
}
func (c commsEmailTemplateColumns) AsSlice() []column {
return []column{
c.ContentHTML, c.ContentTXT, c.ContentHashHTML, c.ContentHashTXT, c.Created, c.ID, c.Superceded, c.MessageType,
}
}
type commsEmailTemplateIndexes struct {
EmailTemplatePkey index
}
func (i commsEmailTemplateIndexes) AsSlice() []index {
return []index{
i.EmailTemplatePkey,
}
}
type commsEmailTemplateForeignKeys struct{}
func (f commsEmailTemplateForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type commsEmailTemplateUniques struct{}
func (u commsEmailTemplateUniques) AsSlice() []constraint {
return []constraint{}
}
type commsEmailTemplateChecks struct{}
func (c commsEmailTemplateChecks) AsSlice() []check {
return []check{}
}