nidus-sync/db/dbinfo/note_audio_breadcrumb.bob.go
Eli Ribble 1395e3d3ac Remove old FieldSeeker tables, use v2 generated tables.
This requires a bunch of changes since the types on these tables are
much closer to the underlying types of the Fieldseeker data we are
getting back from the API.

I now need to use proper UUID types everywhere, which means I had to
modify the bob gen config to consistently use google UUID, my UUID
library of choice.

I also had to add the organization_id to all the fieldseeker tables
since we rely on them existing for some of our compound queries.

There were some changes to the API type signatures to get things to
build. I may yet regret those.
2025-12-24 17:58:08 -07:00

167 lines
3.9 KiB
Go

// Code generated by BobGen psql v0.0.4-0.20251216163753-8e325b7c773a+dirty. 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 NoteAudioBreadcrumbs = Table[
noteAudioBreadcrumbColumns,
noteAudioBreadcrumbIndexes,
noteAudioBreadcrumbForeignKeys,
noteAudioBreadcrumbUniques,
noteAudioBreadcrumbChecks,
]{
Schema: "",
Name: "note_audio_breadcrumb",
Columns: noteAudioBreadcrumbColumns{
Cell: column{
Name: "cell",
DBType: "h3index",
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,
},
ManuallySelected: column{
Name: "manually_selected",
DBType: "boolean",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
NoteAudioVersion: column{
Name: "note_audio_version",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
NoteAudioUUID: column{
Name: "note_audio_uuid",
DBType: "uuid",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Position: column{
Name: "position",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: noteAudioBreadcrumbIndexes{
NoteAudioBreadcrumbPkey: index{
Type: "btree",
Name: "note_audio_breadcrumb_pkey",
Columns: []indexColumn{
{
Name: "note_audio_version",
Desc: null.FromCond(false, true),
IsExpression: false,
},
{
Name: "note_audio_uuid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
{
Name: "\"position\"",
Desc: null.FromCond(false, true),
IsExpression: true,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false, false, false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "note_audio_breadcrumb_pkey",
Columns: []string{"note_audio_version", "note_audio_uuid", "position"},
Comment: "",
},
ForeignKeys: noteAudioBreadcrumbForeignKeys{
NoteAudioBreadcrumbNoteAudioBreadcrumbNoteAudioVersionNoteAudioUUIDFkey: foreignKey{
constraint: constraint{
Name: "note_audio_breadcrumb.note_audio_breadcrumb_note_audio_version_note_audio_uuid_fkey",
Columns: []string{"note_audio_version", "note_audio_uuid"},
Comment: "",
},
ForeignTable: "note_audio",
ForeignColumns: []string{"version", "uuid"},
},
},
Comment: "",
}
type noteAudioBreadcrumbColumns struct {
Cell column
Created column
ManuallySelected column
NoteAudioVersion column
NoteAudioUUID column
Position column
}
func (c noteAudioBreadcrumbColumns) AsSlice() []column {
return []column{
c.Cell, c.Created, c.ManuallySelected, c.NoteAudioVersion, c.NoteAudioUUID, c.Position,
}
}
type noteAudioBreadcrumbIndexes struct {
NoteAudioBreadcrumbPkey index
}
func (i noteAudioBreadcrumbIndexes) AsSlice() []index {
return []index{
i.NoteAudioBreadcrumbPkey,
}
}
type noteAudioBreadcrumbForeignKeys struct {
NoteAudioBreadcrumbNoteAudioBreadcrumbNoteAudioVersionNoteAudioUUIDFkey foreignKey
}
func (f noteAudioBreadcrumbForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.NoteAudioBreadcrumbNoteAudioBreadcrumbNoteAudioVersionNoteAudioUUIDFkey,
}
}
type noteAudioBreadcrumbUniques struct{}
func (u noteAudioBreadcrumbUniques) AsSlice() []constraint {
return []constraint{}
}
type noteAudioBreadcrumbChecks struct{}
func (c noteAudioBreadcrumbChecks) AsSlice() []check {
return []check{}
}