2026-01-27 18:44:02 +00:00
|
|
|
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
2025-12-24 17:49:39 -07:00
|
|
|
// 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 NoteAudioData = Table[
|
|
|
|
|
noteAudioDatumColumns,
|
|
|
|
|
noteAudioDatumIndexes,
|
|
|
|
|
noteAudioDatumForeignKeys,
|
|
|
|
|
noteAudioDatumUniques,
|
|
|
|
|
noteAudioDatumChecks,
|
|
|
|
|
]{
|
|
|
|
|
Schema: "",
|
|
|
|
|
Name: "note_audio_data",
|
|
|
|
|
Columns: noteAudioDatumColumns{
|
|
|
|
|
Created: column{
|
|
|
|
|
Name: "created",
|
|
|
|
|
DBType: "timestamp without time zone",
|
|
|
|
|
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,
|
|
|
|
|
},
|
|
|
|
|
Type: column{
|
|
|
|
|
Name: "type_",
|
|
|
|
|
DBType: "public.audiodatatype",
|
|
|
|
|
Default: "",
|
|
|
|
|
Comment: "",
|
|
|
|
|
Nullable: false,
|
|
|
|
|
Generated: false,
|
|
|
|
|
AutoIncr: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Indexes: noteAudioDatumIndexes{
|
|
|
|
|
NoteAudioDataPkey: index{
|
|
|
|
|
Type: "btree",
|
|
|
|
|
Name: "note_audio_data_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: "type_",
|
|
|
|
|
Desc: null.FromCond(false, true),
|
|
|
|
|
IsExpression: false,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
Unique: true,
|
|
|
|
|
Comment: "",
|
|
|
|
|
NullsFirst: []bool{false, false, false},
|
|
|
|
|
NullsDistinct: false,
|
|
|
|
|
Where: "",
|
|
|
|
|
Include: []string{},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
PrimaryKey: &constraint{
|
|
|
|
|
Name: "note_audio_data_pkey",
|
|
|
|
|
Columns: []string{"note_audio_version", "note_audio_uuid", "type_"},
|
|
|
|
|
Comment: "",
|
|
|
|
|
},
|
|
|
|
|
ForeignKeys: noteAudioDatumForeignKeys{
|
|
|
|
|
NoteAudioDataNoteAudioDataNoteAudioVersionNoteAudioUUIDFkey: foreignKey{
|
|
|
|
|
constraint: constraint{
|
|
|
|
|
Name: "note_audio_data.note_audio_data_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 noteAudioDatumColumns struct {
|
|
|
|
|
Created column
|
|
|
|
|
NoteAudioVersion column
|
|
|
|
|
NoteAudioUUID column
|
|
|
|
|
Type column
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c noteAudioDatumColumns) AsSlice() []column {
|
|
|
|
|
return []column{
|
|
|
|
|
c.Created, c.NoteAudioVersion, c.NoteAudioUUID, c.Type,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type noteAudioDatumIndexes struct {
|
|
|
|
|
NoteAudioDataPkey index
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (i noteAudioDatumIndexes) AsSlice() []index {
|
|
|
|
|
return []index{
|
|
|
|
|
i.NoteAudioDataPkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type noteAudioDatumForeignKeys struct {
|
|
|
|
|
NoteAudioDataNoteAudioDataNoteAudioVersionNoteAudioUUIDFkey foreignKey
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (f noteAudioDatumForeignKeys) AsSlice() []foreignKey {
|
|
|
|
|
return []foreignKey{
|
|
|
|
|
f.NoteAudioDataNoteAudioDataNoteAudioVersionNoteAudioUUIDFkey,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type noteAudioDatumUniques struct{}
|
|
|
|
|
|
|
|
|
|
func (u noteAudioDatumUniques) AsSlice() []constraint {
|
|
|
|
|
return []constraint{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type noteAudioDatumChecks struct{}
|
|
|
|
|
|
|
|
|
|
func (c noteAudioDatumChecks) AsSlice() []check {
|
|
|
|
|
return []check{}
|
|
|
|
|
}
|