Make GlobalID required for all Fieldseeker tables

I'm pretty sure it has to be there, and it allows me to clean up my
code.
This commit is contained in:
Eli Ribble 2026-01-05 02:28:28 +00:00
parent 53e08d840e
commit 1aefca2f5d
217 changed files with 871 additions and 1358 deletions

View file

@ -1,4 +1,4 @@
// Code generated by BobGen psql v0.0.4-0.20251216163753-8e325b7c773a+dirty. DO NOT EDIT.
// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package models
@ -59,7 +59,7 @@ type FieldseekerInspectionsampledetail struct {
// Original attribute from ArcGIS API is COMMENTS
Comments null.Val[string] `db:"comments" `
// Original attribute from ArcGIS API is GlobalID
Globalid null.Val[uuid.UUID] `db:"globalid" `
Globalid uuid.UUID `db:"globalid" `
// Original attribute from ArcGIS API is created_user
CreatedUser null.Val[string] `db:"created_user" `
// Original attribute from ArcGIS API is created_date
@ -200,7 +200,7 @@ type FieldseekerInspectionsampledetailSetter struct {
Leggcount omitnull.Val[int16] `db:"leggcount" `
Ldomstage omitnull.Val[string] `db:"ldomstage" `
Comments omitnull.Val[string] `db:"comments" `
Globalid omitnull.Val[uuid.UUID] `db:"globalid" `
Globalid omit.Val[uuid.UUID] `db:"globalid" `
CreatedUser omitnull.Val[string] `db:"created_user" `
CreatedDate omitnull.Val[time.Time] `db:"created_date" `
LastEditedUser omitnull.Val[string] `db:"last_edited_user" `
@ -263,7 +263,7 @@ func (s FieldseekerInspectionsampledetailSetter) SetColumns() []string {
if !s.Comments.IsUnset() {
vals = append(vals, "comments")
}
if !s.Globalid.IsUnset() {
if s.Globalid.IsValue() {
vals = append(vals, "globalid")
}
if !s.CreatedUser.IsUnset() {
@ -354,8 +354,8 @@ func (s FieldseekerInspectionsampledetailSetter) Overwrite(t *FieldseekerInspect
if !s.Comments.IsUnset() {
t.Comments = s.Comments.MustGetNull()
}
if !s.Globalid.IsUnset() {
t.Globalid = s.Globalid.MustGetNull()
if s.Globalid.IsValue() {
t.Globalid = s.Globalid.MustGet()
}
if !s.CreatedUser.IsUnset() {
t.CreatedUser = s.CreatedUser.MustGetNull()
@ -495,8 +495,8 @@ func (s *FieldseekerInspectionsampledetailSetter) Apply(q *dialect.InsertQuery)
vals[14] = psql.Raw("DEFAULT")
}
if !s.Globalid.IsUnset() {
vals[15] = psql.Arg(s.Globalid.MustGetNull())
if s.Globalid.IsValue() {
vals[15] = psql.Arg(s.Globalid.MustGet())
} else {
vals[15] = psql.Raw("DEFAULT")
}
@ -695,7 +695,7 @@ func (s FieldseekerInspectionsampledetailSetter) Expressions(prefix ...string) [
}})
}
if !s.Globalid.IsUnset() {
if s.Globalid.IsValue() {
exprs = append(exprs, expr.Join{Sep: " = ", Exprs: []bob.Expression{
psql.Quote(append(prefix, "globalid")...),
psql.Arg(s.Globalid),
@ -1117,7 +1117,7 @@ type fieldseekerInspectionsampledetailWhere[Q psql.Filterable] struct {
Leggcount psql.WhereNullMod[Q, int16]
Ldomstage psql.WhereNullMod[Q, string]
Comments psql.WhereNullMod[Q, string]
Globalid psql.WhereNullMod[Q, uuid.UUID]
Globalid psql.WhereMod[Q, uuid.UUID]
CreatedUser psql.WhereNullMod[Q, string]
CreatedDate psql.WhereNullMod[Q, time.Time]
LastEditedUser psql.WhereNullMod[Q, string]
@ -1154,7 +1154,7 @@ func buildFieldseekerInspectionsampledetailWhere[Q psql.Filterable](cols fieldse
Leggcount: psql.WhereNull[Q, int16](cols.Leggcount),
Ldomstage: psql.WhereNull[Q, string](cols.Ldomstage),
Comments: psql.WhereNull[Q, string](cols.Comments),
Globalid: psql.WhereNull[Q, uuid.UUID](cols.Globalid),
Globalid: psql.Where[Q, uuid.UUID](cols.Globalid),
CreatedUser: psql.WhereNull[Q, string](cols.CreatedUser),
CreatedDate: psql.WhereNull[Q, time.Time](cols.CreatedDate),
LastEditedUser: psql.WhereNull[Q, string](cols.LastEditedUser),