// 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 factory import ( "context" "encoding/json" "time" enums "github.com/Gleipnir-Technology/nidus-sync/db/enums" models "github.com/Gleipnir-Technology/nidus-sync/db/models" "github.com/aarondl/opt/null" "github.com/google/uuid" "github.com/lib/pq" "github.com/stephenafamo/bob/types" ) type Factory struct { baseFieldseekerContainerrelateMods FieldseekerContainerrelateModSlice baseFieldseekerFieldscoutinglogMods FieldseekerFieldscoutinglogModSlice baseFieldseekerHabitatrelateMods FieldseekerHabitatrelateModSlice baseFieldseekerInspectionsampleMods FieldseekerInspectionsampleModSlice baseFieldseekerInspectionsampledetailMods FieldseekerInspectionsampledetailModSlice baseFieldseekerLinelocationMods FieldseekerLinelocationModSlice baseFieldseekerLocationtrackingMods FieldseekerLocationtrackingModSlice baseFieldseekerMosquitoinspectionMods FieldseekerMosquitoinspectionModSlice baseFieldseekerPointlocationMods FieldseekerPointlocationModSlice baseFieldseekerPolygonlocationMods FieldseekerPolygonlocationModSlice baseFieldseekerPoolMods FieldseekerPoolModSlice baseFieldseekerPooldetailMods FieldseekerPooldetailModSlice baseFieldseekerProposedtreatmentareaMods FieldseekerProposedtreatmentareaModSlice baseFieldseekerQamosquitoinspectionMods FieldseekerQamosquitoinspectionModSlice baseFieldseekerRodentlocationMods FieldseekerRodentlocationModSlice baseFieldseekerSamplecollectionMods FieldseekerSamplecollectionModSlice baseFieldseekerSamplelocationMods FieldseekerSamplelocationModSlice baseFieldseekerServicerequestMods FieldseekerServicerequestModSlice baseFieldseekerSpeciesabundanceMods FieldseekerSpeciesabundanceModSlice baseFieldseekerStormdrainMods FieldseekerStormdrainModSlice baseFieldseekerTimecardMods FieldseekerTimecardModSlice baseFieldseekerTrapdatumMods FieldseekerTrapdatumModSlice baseFieldseekerTraplocationMods FieldseekerTraplocationModSlice baseFieldseekerTreatmentMods FieldseekerTreatmentModSlice baseFieldseekerTreatmentareaMods FieldseekerTreatmentareaModSlice baseFieldseekerZoneMods FieldseekerZoneModSlice baseFieldseekerZones2Mods FieldseekerZones2ModSlice baseFieldseekerSyncMods FieldseekerSyncModSlice baseGeographyColumnMods GeographyColumnModSlice baseGeometryColumnMods GeometryColumnModSlice baseGooseDBVersionMods GooseDBVersionModSlice baseH3AggregationMods H3AggregationModSlice baseNoteAudioMods NoteAudioModSlice baseNoteAudioBreadcrumbMods NoteAudioBreadcrumbModSlice baseNoteAudioDatumMods NoteAudioDatumModSlice baseNoteImageMods NoteImageModSlice baseNoteImageBreadcrumbMods NoteImageBreadcrumbModSlice baseNoteImageDatumMods NoteImageDatumModSlice baseNotificationMods NotificationModSlice baseOauthTokenMods OauthTokenModSlice baseOrganizationMods OrganizationModSlice basePublicreportQuickMods PublicreportQuickModSlice basePublicreportQuickPhotoMods PublicreportQuickPhotoModSlice baseRasterColumnMods RasterColumnModSlice baseRasterOverviewMods RasterOverviewModSlice baseSessionMods SessionModSlice baseSpatialRefSyMods SpatialRefSyModSlice baseUserMods UserModSlice } func New() *Factory { return &Factory{} } func (f *Factory) NewFieldseekerContainerrelate(mods ...FieldseekerContainerrelateMod) *FieldseekerContainerrelateTemplate { return f.NewFieldseekerContainerrelateWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerContainerrelateWithContext(ctx context.Context, mods ...FieldseekerContainerrelateMod) *FieldseekerContainerrelateTemplate { o := &FieldseekerContainerrelateTemplate{f: f} if f != nil { f.baseFieldseekerContainerrelateMods.Apply(ctx, o) } FieldseekerContainerrelateModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerContainerrelate(m *models.FieldseekerContainerrelate) *FieldseekerContainerrelateTemplate { o := &FieldseekerContainerrelateTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Inspsampleid = func() null.Val[uuid.UUID] { return m.Inspsampleid } o.Mosquitoinspid = func() null.Val[uuid.UUID] { return m.Mosquitoinspid } o.Treatmentid = func() null.Val[uuid.UUID] { return m.Treatmentid } o.Containertype = func() null.Val[string] { return m.Containertype } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerContainerrelateMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerFieldscoutinglog(mods ...FieldseekerFieldscoutinglogMod) *FieldseekerFieldscoutinglogTemplate { return f.NewFieldseekerFieldscoutinglogWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerFieldscoutinglogWithContext(ctx context.Context, mods ...FieldseekerFieldscoutinglogMod) *FieldseekerFieldscoutinglogTemplate { o := &FieldseekerFieldscoutinglogTemplate{f: f} if f != nil { f.baseFieldseekerFieldscoutinglogMods.Apply(ctx, o) } FieldseekerFieldscoutinglogModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerFieldscoutinglog(m *models.FieldseekerFieldscoutinglog) *FieldseekerFieldscoutinglogTemplate { o := &FieldseekerFieldscoutinglogTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Status = func() null.Val[int16] { return m.Status } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerFieldscoutinglogMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerHabitatrelate(mods ...FieldseekerHabitatrelateMod) *FieldseekerHabitatrelateTemplate { return f.NewFieldseekerHabitatrelateWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerHabitatrelateWithContext(ctx context.Context, mods ...FieldseekerHabitatrelateMod) *FieldseekerHabitatrelateTemplate { o := &FieldseekerHabitatrelateTemplate{f: f} if f != nil { f.baseFieldseekerHabitatrelateMods.Apply(ctx, o) } FieldseekerHabitatrelateModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerHabitatrelate(m *models.FieldseekerHabitatrelate) *FieldseekerHabitatrelateTemplate { o := &FieldseekerHabitatrelateTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.ForeignID = func() null.Val[uuid.UUID] { return m.ForeignID } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Habitattype = func() null.Val[string] { return m.Habitattype } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerHabitatrelateMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerInspectionsample(mods ...FieldseekerInspectionsampleMod) *FieldseekerInspectionsampleTemplate { return f.NewFieldseekerInspectionsampleWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerInspectionsampleWithContext(ctx context.Context, mods ...FieldseekerInspectionsampleMod) *FieldseekerInspectionsampleTemplate { o := &FieldseekerInspectionsampleTemplate{f: f} if f != nil { f.baseFieldseekerInspectionsampleMods.Apply(ctx, o) } FieldseekerInspectionsampleModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerInspectionsample(m *models.FieldseekerInspectionsample) *FieldseekerInspectionsampleTemplate { o := &FieldseekerInspectionsampleTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.InspID = func() null.Val[uuid.UUID] { return m.InspID } o.Sampleid = func() null.Val[string] { return m.Sampleid } o.Processed = func() null.Val[int16] { return m.Processed } o.Idbytech = func() null.Val[string] { return m.Idbytech } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerInspectionsampleMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerInspectionsampledetail(mods ...FieldseekerInspectionsampledetailMod) *FieldseekerInspectionsampledetailTemplate { return f.NewFieldseekerInspectionsampledetailWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerInspectionsampledetailWithContext(ctx context.Context, mods ...FieldseekerInspectionsampledetailMod) *FieldseekerInspectionsampledetailTemplate { o := &FieldseekerInspectionsampledetailTemplate{f: f} if f != nil { f.baseFieldseekerInspectionsampledetailMods.Apply(ctx, o) } FieldseekerInspectionsampledetailModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerInspectionsampledetail(m *models.FieldseekerInspectionsampledetail) *FieldseekerInspectionsampledetailTemplate { o := &FieldseekerInspectionsampledetailTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.InspsampleID = func() null.Val[uuid.UUID] { return m.InspsampleID } o.Fieldspecies = func() null.Val[string] { return m.Fieldspecies } o.Flarvcount = func() null.Val[int16] { return m.Flarvcount } o.Fpupcount = func() null.Val[int16] { return m.Fpupcount } o.Feggcount = func() null.Val[int16] { return m.Feggcount } o.Flstages = func() null.Val[string] { return m.Flstages } o.Fdomstage = func() null.Val[string] { return m.Fdomstage } o.Fadultact = func() null.Val[string] { return m.Fadultact } o.Labspecies = func() null.Val[string] { return m.Labspecies } o.Llarvcount = func() null.Val[int16] { return m.Llarvcount } o.Lpupcount = func() null.Val[int16] { return m.Lpupcount } o.Leggcount = func() null.Val[int16] { return m.Leggcount } o.Ldomstage = func() null.Val[string] { return m.Ldomstage } o.Comments = func() null.Val[string] { return m.Comments } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Processed = func() null.Val[int16] { return m.Processed } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerInspectionsampledetailMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerLinelocation(mods ...FieldseekerLinelocationMod) *FieldseekerLinelocationTemplate { return f.NewFieldseekerLinelocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerLinelocationWithContext(ctx context.Context, mods ...FieldseekerLinelocationMod) *FieldseekerLinelocationTemplate { o := &FieldseekerLinelocationTemplate{f: f} if f != nil { f.baseFieldseekerLinelocationMods.Apply(ctx, o) } FieldseekerLinelocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerLinelocation(m *models.FieldseekerLinelocation) *FieldseekerLinelocationTemplate { o := &FieldseekerLinelocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Zone = func() null.Val[string] { return m.Zone } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Symbology = func() null.Val[string] { return m.Symbology } o.Externalid = func() null.Val[string] { return m.Externalid } o.Acres = func() null.Val[float64] { return m.Acres } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Larvinspectinterval = func() null.Val[int16] { return m.Larvinspectinterval } o.LengthFT = func() null.Val[float64] { return m.LengthFT } o.WidthFT = func() null.Val[float64] { return m.WidthFT } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Lastinspectdate = func() null.Val[time.Time] { return m.Lastinspectdate } o.Lastinspectbreeding = func() null.Val[string] { return m.Lastinspectbreeding } o.Lastinspectavglarvae = func() null.Val[float64] { return m.Lastinspectavglarvae } o.Lastinspectavgpupae = func() null.Val[float64] { return m.Lastinspectavgpupae } o.Lastinspectlstages = func() null.Val[string] { return m.Lastinspectlstages } o.Lastinspectactiontaken = func() null.Val[string] { return m.Lastinspectactiontaken } o.Lastinspectfieldspecies = func() null.Val[string] { return m.Lastinspectfieldspecies } o.Lasttreatdate = func() null.Val[time.Time] { return m.Lasttreatdate } o.Lasttreatproduct = func() null.Val[string] { return m.Lasttreatproduct } o.Lasttreatqty = func() null.Val[float64] { return m.Lasttreatqty } o.Lasttreatqtyunit = func() null.Val[string] { return m.Lasttreatqtyunit } o.Hectares = func() null.Val[float64] { return m.Hectares } o.Lastinspectactivity = func() null.Val[string] { return m.Lastinspectactivity } o.Lasttreatactivity = func() null.Val[string] { return m.Lasttreatactivity } o.LengthMeters = func() null.Val[float64] { return m.LengthMeters } o.WidthMeters = func() null.Val[float64] { return m.WidthMeters } o.Lastinspectconditions = func() null.Val[string] { return m.Lastinspectconditions } o.Waterorigin = func() null.Val[string] { return m.Waterorigin } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerLinelocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerLocationtracking(mods ...FieldseekerLocationtrackingMod) *FieldseekerLocationtrackingTemplate { return f.NewFieldseekerLocationtrackingWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerLocationtrackingWithContext(ctx context.Context, mods ...FieldseekerLocationtrackingMod) *FieldseekerLocationtrackingTemplate { o := &FieldseekerLocationtrackingTemplate{f: f} if f != nil { f.baseFieldseekerLocationtrackingMods.Apply(ctx, o) } FieldseekerLocationtrackingModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerLocationtracking(m *models.FieldseekerLocationtracking) *FieldseekerLocationtrackingTemplate { o := &FieldseekerLocationtrackingTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Accuracy = func() null.Val[float64] { return m.Accuracy } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Globalid = func() uuid.UUID { return m.Globalid } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerLocationtrackingMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerMosquitoinspection(mods ...FieldseekerMosquitoinspectionMod) *FieldseekerMosquitoinspectionTemplate { return f.NewFieldseekerMosquitoinspectionWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerMosquitoinspectionWithContext(ctx context.Context, mods ...FieldseekerMosquitoinspectionMod) *FieldseekerMosquitoinspectionTemplate { o := &FieldseekerMosquitoinspectionTemplate{f: f} if f != nil { f.baseFieldseekerMosquitoinspectionMods.Apply(ctx, o) } FieldseekerMosquitoinspectionModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerMosquitoinspection(m *models.FieldseekerMosquitoinspection) *FieldseekerMosquitoinspectionTemplate { o := &FieldseekerMosquitoinspectionTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Numdips = func() null.Val[int16] { return m.Numdips } o.Activity = func() null.Val[string] { return m.Activity } o.Breeding = func() null.Val[string] { return m.Breeding } o.Totlarvae = func() null.Val[int16] { return m.Totlarvae } o.Totpupae = func() null.Val[int16] { return m.Totpupae } o.Eggs = func() null.Val[int16] { return m.Eggs } o.Posdips = func() null.Val[int16] { return m.Posdips } o.Adultact = func() null.Val[string] { return m.Adultact } o.Lstages = func() null.Val[string] { return m.Lstages } o.Domstage = func() null.Val[string] { return m.Domstage } o.Actiontaken = func() null.Val[string] { return m.Actiontaken } o.Comments = func() null.Val[string] { return m.Comments } o.Avetemp = func() null.Val[float64] { return m.Avetemp } o.Windspeed = func() null.Val[float64] { return m.Windspeed } o.Raingauge = func() null.Val[float64] { return m.Raingauge } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.Winddir = func() null.Val[string] { return m.Winddir } o.Avglarvae = func() null.Val[float64] { return m.Avglarvae } o.Avgpupae = func() null.Val[float64] { return m.Avgpupae } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Personalcontact = func() null.Val[int16] { return m.Personalcontact } o.Tirecount = func() null.Val[int16] { return m.Tirecount } o.Cbcount = func() null.Val[int16] { return m.Cbcount } o.Containercount = func() null.Val[int16] { return m.Containercount } o.Fieldspecies = func() null.Val[string] { return m.Fieldspecies } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Linelocid = func() null.Val[uuid.UUID] { return m.Linelocid } o.Pointlocid = func() null.Val[uuid.UUID] { return m.Pointlocid } o.Polygonlocid = func() null.Val[uuid.UUID] { return m.Polygonlocid } o.Srid = func() null.Val[uuid.UUID] { return m.Srid } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Larvaepresent = func() null.Val[int16] { return m.Larvaepresent } o.Pupaepresent = func() null.Val[int16] { return m.Pupaepresent } o.Sdid = func() null.Val[uuid.UUID] { return m.Sdid } o.Sitecond = func() null.Val[string] { return m.Sitecond } o.Positivecontainercount = func() null.Val[int16] { return m.Positivecontainercount } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.Visualmonitoring = func() null.Val[int16] { return m.Visualmonitoring } o.Vmcomments = func() null.Val[string] { return m.Vmcomments } o.Adminaction = func() null.Val[string] { return m.Adminaction } o.Ptaid = func() null.Val[uuid.UUID] { return m.Ptaid } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerMosquitoinspectionMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerPointlocation(mods ...FieldseekerPointlocationMod) *FieldseekerPointlocationTemplate { return f.NewFieldseekerPointlocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerPointlocationWithContext(ctx context.Context, mods ...FieldseekerPointlocationMod) *FieldseekerPointlocationTemplate { o := &FieldseekerPointlocationTemplate{f: f} if f != nil { f.baseFieldseekerPointlocationMods.Apply(ctx, o) } FieldseekerPointlocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerPointlocation(m *models.FieldseekerPointlocation) *FieldseekerPointlocationTemplate { o := &FieldseekerPointlocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Zone = func() null.Val[string] { return m.Zone } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Symbology = func() null.Val[string] { return m.Symbology } o.Externalid = func() null.Val[string] { return m.Externalid } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Larvinspectinterval = func() null.Val[int16] { return m.Larvinspectinterval } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Globalid = func() uuid.UUID { return m.Globalid } o.Stype = func() null.Val[string] { return m.Stype } o.Lastinspectdate = func() null.Val[time.Time] { return m.Lastinspectdate } o.Lastinspectbreeding = func() null.Val[string] { return m.Lastinspectbreeding } o.Lastinspectavglarvae = func() null.Val[float64] { return m.Lastinspectavglarvae } o.Lastinspectavgpupae = func() null.Val[float64] { return m.Lastinspectavgpupae } o.Lastinspectlstages = func() null.Val[string] { return m.Lastinspectlstages } o.Lastinspectactiontaken = func() null.Val[string] { return m.Lastinspectactiontaken } o.Lastinspectfieldspecies = func() null.Val[string] { return m.Lastinspectfieldspecies } o.Lasttreatdate = func() null.Val[time.Time] { return m.Lasttreatdate } o.Lasttreatproduct = func() null.Val[string] { return m.Lasttreatproduct } o.Lasttreatqty = func() null.Val[float64] { return m.Lasttreatqty } o.Lasttreatqtyunit = func() null.Val[string] { return m.Lasttreatqtyunit } o.Lastinspectactivity = func() null.Val[string] { return m.Lastinspectactivity } o.Lasttreatactivity = func() null.Val[string] { return m.Lasttreatactivity } o.Lastinspectconditions = func() null.Val[string] { return m.Lastinspectconditions } o.Waterorigin = func() null.Val[string] { return m.Waterorigin } o.X = func() null.Val[float64] { return m.X } o.Y = func() null.Val[float64] { return m.Y } o.Assignedtech = func() null.Val[string] { return m.Assignedtech } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.DeactivateReason = func() null.Val[string] { return m.DeactivateReason } o.Scalarpriority = func() null.Val[int32] { return m.Scalarpriority } o.Sourcestatus = func() null.Val[string] { return m.Sourcestatus } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } o.H3cell = func() null.Val[string] { return m.H3cell } ctx := context.Background() if m.R.Organization != nil { FieldseekerPointlocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerPolygonlocation(mods ...FieldseekerPolygonlocationMod) *FieldseekerPolygonlocationTemplate { return f.NewFieldseekerPolygonlocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerPolygonlocationWithContext(ctx context.Context, mods ...FieldseekerPolygonlocationMod) *FieldseekerPolygonlocationTemplate { o := &FieldseekerPolygonlocationTemplate{f: f} if f != nil { f.baseFieldseekerPolygonlocationMods.Apply(ctx, o) } FieldseekerPolygonlocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerPolygonlocation(m *models.FieldseekerPolygonlocation) *FieldseekerPolygonlocationTemplate { o := &FieldseekerPolygonlocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Zone = func() null.Val[string] { return m.Zone } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Symbology = func() null.Val[string] { return m.Symbology } o.Externalid = func() null.Val[string] { return m.Externalid } o.Acres = func() null.Val[float64] { return m.Acres } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Larvinspectinterval = func() null.Val[int16] { return m.Larvinspectinterval } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Globalid = func() uuid.UUID { return m.Globalid } o.Lastinspectdate = func() null.Val[time.Time] { return m.Lastinspectdate } o.Lastinspectbreeding = func() null.Val[string] { return m.Lastinspectbreeding } o.Lastinspectavglarvae = func() null.Val[float64] { return m.Lastinspectavglarvae } o.Lastinspectavgpupae = func() null.Val[float64] { return m.Lastinspectavgpupae } o.Lastinspectlstages = func() null.Val[string] { return m.Lastinspectlstages } o.Lastinspectactiontaken = func() null.Val[string] { return m.Lastinspectactiontaken } o.Lastinspectfieldspecies = func() null.Val[string] { return m.Lastinspectfieldspecies } o.Lasttreatdate = func() null.Val[time.Time] { return m.Lasttreatdate } o.Lasttreatproduct = func() null.Val[string] { return m.Lasttreatproduct } o.Lasttreatqty = func() null.Val[float64] { return m.Lasttreatqty } o.Lasttreatqtyunit = func() null.Val[string] { return m.Lasttreatqtyunit } o.Hectares = func() null.Val[float64] { return m.Hectares } o.Lastinspectactivity = func() null.Val[string] { return m.Lastinspectactivity } o.Lasttreatactivity = func() null.Val[string] { return m.Lasttreatactivity } o.Lastinspectconditions = func() null.Val[string] { return m.Lastinspectconditions } o.Waterorigin = func() null.Val[string] { return m.Waterorigin } o.Filter = func() null.Val[string] { return m.Filter } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.ShapeArea = func() null.Val[float64] { return m.ShapeArea } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerPolygonlocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerPool(mods ...FieldseekerPoolMod) *FieldseekerPoolTemplate { return f.NewFieldseekerPoolWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerPoolWithContext(ctx context.Context, mods ...FieldseekerPoolMod) *FieldseekerPoolTemplate { o := &FieldseekerPoolTemplate{f: f} if f != nil { f.baseFieldseekerPoolMods.Apply(ctx, o) } FieldseekerPoolModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerPool(m *models.FieldseekerPool) *FieldseekerPoolTemplate { o := &FieldseekerPoolTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.TrapdataID = func() null.Val[uuid.UUID] { return m.TrapdataID } o.Datesent = func() null.Val[time.Time] { return m.Datesent } o.Survtech = func() null.Val[string] { return m.Survtech } o.Datetested = func() null.Val[time.Time] { return m.Datetested } o.Testtech = func() null.Val[string] { return m.Testtech } o.Comments = func() null.Val[string] { return m.Comments } o.Sampleid = func() null.Val[string] { return m.Sampleid } o.Processed = func() null.Val[int16] { return m.Processed } o.LabID = func() null.Val[uuid.UUID] { return m.LabID } o.Testmethod = func() null.Val[string] { return m.Testmethod } o.Diseasetested = func() null.Val[string] { return m.Diseasetested } o.Diseasepos = func() null.Val[string] { return m.Diseasepos } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Lab = func() null.Val[string] { return m.Lab } o.Poolyear = func() null.Val[int16] { return m.Poolyear } o.Gatewaysync = func() null.Val[int16] { return m.Gatewaysync } o.Vectorsurvcollectionid = func() null.Val[string] { return m.Vectorsurvcollectionid } o.Vectorsurvpoolid = func() null.Val[string] { return m.Vectorsurvpoolid } o.Vectorsurvtrapdataid = func() null.Val[string] { return m.Vectorsurvtrapdataid } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerPoolMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerPooldetail(mods ...FieldseekerPooldetailMod) *FieldseekerPooldetailTemplate { return f.NewFieldseekerPooldetailWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerPooldetailWithContext(ctx context.Context, mods ...FieldseekerPooldetailMod) *FieldseekerPooldetailTemplate { o := &FieldseekerPooldetailTemplate{f: f} if f != nil { f.baseFieldseekerPooldetailMods.Apply(ctx, o) } FieldseekerPooldetailModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerPooldetail(m *models.FieldseekerPooldetail) *FieldseekerPooldetailTemplate { o := &FieldseekerPooldetailTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.TrapdataID = func() null.Val[uuid.UUID] { return m.TrapdataID } o.PoolID = func() null.Val[uuid.UUID] { return m.PoolID } o.Species = func() null.Val[string] { return m.Species } o.Females = func() null.Val[int16] { return m.Females } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerPooldetailMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerProposedtreatmentarea(mods ...FieldseekerProposedtreatmentareaMod) *FieldseekerProposedtreatmentareaTemplate { return f.NewFieldseekerProposedtreatmentareaWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerProposedtreatmentareaWithContext(ctx context.Context, mods ...FieldseekerProposedtreatmentareaMod) *FieldseekerProposedtreatmentareaTemplate { o := &FieldseekerProposedtreatmentareaTemplate{f: f} if f != nil { f.baseFieldseekerProposedtreatmentareaMods.Apply(ctx, o) } FieldseekerProposedtreatmentareaModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerProposedtreatmentarea(m *models.FieldseekerProposedtreatmentarea) *FieldseekerProposedtreatmentareaTemplate { o := &FieldseekerProposedtreatmentareaTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Method = func() null.Val[string] { return m.Method } o.Comments = func() null.Val[string] { return m.Comments } o.Zone = func() null.Val[string] { return m.Zone } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Completeddate = func() null.Val[time.Time] { return m.Completeddate } o.Completedby = func() null.Val[string] { return m.Completedby } o.Completed = func() null.Val[int16] { return m.Completed } o.Issprayroute = func() null.Val[int16] { return m.Issprayroute } o.Name = func() null.Val[string] { return m.Name } o.Acres = func() null.Val[float64] { return m.Acres } o.Globalid = func() uuid.UUID { return m.Globalid } o.Exported = func() null.Val[int16] { return m.Exported } o.Targetproduct = func() null.Val[string] { return m.Targetproduct } o.Targetapprate = func() null.Val[float64] { return m.Targetapprate } o.Hectares = func() null.Val[float64] { return m.Hectares } o.Lasttreatactivity = func() null.Val[string] { return m.Lasttreatactivity } o.Lasttreatdate = func() null.Val[time.Time] { return m.Lasttreatdate } o.Lasttreatproduct = func() null.Val[string] { return m.Lasttreatproduct } o.Lasttreatqty = func() null.Val[float64] { return m.Lasttreatqty } o.Lasttreatqtyunit = func() null.Val[string] { return m.Lasttreatqtyunit } o.Priority = func() null.Val[string] { return m.Priority } o.Duedate = func() null.Val[time.Time] { return m.Duedate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Targetspecies = func() null.Val[string] { return m.Targetspecies } o.ShapeArea = func() null.Val[float64] { return m.ShapeArea } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerProposedtreatmentareaMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerQamosquitoinspection(mods ...FieldseekerQamosquitoinspectionMod) *FieldseekerQamosquitoinspectionTemplate { return f.NewFieldseekerQamosquitoinspectionWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerQamosquitoinspectionWithContext(ctx context.Context, mods ...FieldseekerQamosquitoinspectionMod) *FieldseekerQamosquitoinspectionTemplate { o := &FieldseekerQamosquitoinspectionTemplate{f: f} if f != nil { f.baseFieldseekerQamosquitoinspectionMods.Apply(ctx, o) } FieldseekerQamosquitoinspectionModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerQamosquitoinspection(m *models.FieldseekerQamosquitoinspection) *FieldseekerQamosquitoinspectionTemplate { o := &FieldseekerQamosquitoinspectionTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Posdips = func() null.Val[int16] { return m.Posdips } o.Actiontaken = func() null.Val[string] { return m.Actiontaken } o.Comments = func() null.Val[string] { return m.Comments } o.Avetemp = func() null.Val[float64] { return m.Avetemp } o.Windspeed = func() null.Val[float64] { return m.Windspeed } o.Raingauge = func() null.Val[float64] { return m.Raingauge } o.Globalid = func() uuid.UUID { return m.Globalid } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.Winddir = func() null.Val[string] { return m.Winddir } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.LR = func() null.Val[int16] { return m.LR } o.Negdips = func() null.Val[int16] { return m.Negdips } o.Totalacres = func() null.Val[float64] { return m.Totalacres } o.Acresbreeding = func() null.Val[float64] { return m.Acresbreeding } o.Fish = func() null.Val[int16] { return m.Fish } o.Sitetype = func() null.Val[string] { return m.Sitetype } o.Breedingpotential = func() null.Val[string] { return m.Breedingpotential } o.Movingwater = func() null.Val[int16] { return m.Movingwater } o.Nowaterever = func() null.Val[int16] { return m.Nowaterever } o.Mosquitohabitat = func() null.Val[string] { return m.Mosquitohabitat } o.Habvalue1 = func() null.Val[int16] { return m.Habvalue1 } o.Habvalue1percent = func() null.Val[int16] { return m.Habvalue1percent } o.Habvalue2 = func() null.Val[int16] { return m.Habvalue2 } o.Habvalue2percent = func() null.Val[int16] { return m.Habvalue2percent } o.Potential = func() null.Val[int16] { return m.Potential } o.Larvaepresent = func() null.Val[int16] { return m.Larvaepresent } o.Larvaeinsidetreatedarea = func() null.Val[int16] { return m.Larvaeinsidetreatedarea } o.Larvaeoutsidetreatedarea = func() null.Val[int16] { return m.Larvaeoutsidetreatedarea } o.Larvaereason = func() null.Val[string] { return m.Larvaereason } o.Aquaticorganisms = func() null.Val[string] { return m.Aquaticorganisms } o.Vegetation = func() null.Val[string] { return m.Vegetation } o.Sourcereduction = func() null.Val[string] { return m.Sourcereduction } o.Waterpresent = func() null.Val[int16] { return m.Waterpresent } o.Watermovement1 = func() null.Val[string] { return m.Watermovement1 } o.Watermovement1percent = func() null.Val[int16] { return m.Watermovement1percent } o.Watermovement2 = func() null.Val[string] { return m.Watermovement2 } o.Watermovement2percent = func() null.Val[int16] { return m.Watermovement2percent } o.Soilconditions = func() null.Val[string] { return m.Soilconditions } o.Waterduration = func() null.Val[string] { return m.Waterduration } o.Watersource = func() null.Val[string] { return m.Watersource } o.Waterconditions = func() null.Val[string] { return m.Waterconditions } o.Adultactivity = func() null.Val[int16] { return m.Adultactivity } o.Linelocid = func() null.Val[uuid.UUID] { return m.Linelocid } o.Pointlocid = func() null.Val[uuid.UUID] { return m.Pointlocid } o.Polygonlocid = func() null.Val[uuid.UUID] { return m.Polygonlocid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerQamosquitoinspectionMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerRodentlocation(mods ...FieldseekerRodentlocationMod) *FieldseekerRodentlocationTemplate { return f.NewFieldseekerRodentlocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerRodentlocationWithContext(ctx context.Context, mods ...FieldseekerRodentlocationMod) *FieldseekerRodentlocationTemplate { o := &FieldseekerRodentlocationTemplate{f: f} if f != nil { f.baseFieldseekerRodentlocationMods.Apply(ctx, o) } FieldseekerRodentlocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerRodentlocation(m *models.FieldseekerRodentlocation) *FieldseekerRodentlocationTemplate { o := &FieldseekerRodentlocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Symbology = func() null.Val[string] { return m.Symbology } o.Externalid = func() null.Val[string] { return m.Externalid } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Lastinspectdate = func() null.Val[time.Time] { return m.Lastinspectdate } o.Lastinspectspecies = func() null.Val[string] { return m.Lastinspectspecies } o.Lastinspectaction = func() null.Val[string] { return m.Lastinspectaction } o.Lastinspectconditions = func() null.Val[string] { return m.Lastinspectconditions } o.Lastinspectrodentevidence = func() null.Val[string] { return m.Lastinspectrodentevidence } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerRodentlocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerSamplecollection(mods ...FieldseekerSamplecollectionMod) *FieldseekerSamplecollectionTemplate { return f.NewFieldseekerSamplecollectionWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerSamplecollectionWithContext(ctx context.Context, mods ...FieldseekerSamplecollectionMod) *FieldseekerSamplecollectionTemplate { o := &FieldseekerSamplecollectionTemplate{f: f} if f != nil { f.baseFieldseekerSamplecollectionMods.Apply(ctx, o) } FieldseekerSamplecollectionModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerSamplecollection(m *models.FieldseekerSamplecollection) *FieldseekerSamplecollectionTemplate { o := &FieldseekerSamplecollectionTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.LocID = func() null.Val[uuid.UUID] { return m.LocID } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.Sitecond = func() null.Val[string] { return m.Sitecond } o.Sampleid = func() null.Val[string] { return m.Sampleid } o.Survtech = func() null.Val[string] { return m.Survtech } o.Datesent = func() null.Val[time.Time] { return m.Datesent } o.Datetested = func() null.Val[time.Time] { return m.Datetested } o.Testtech = func() null.Val[string] { return m.Testtech } o.Comments = func() null.Val[string] { return m.Comments } o.Processed = func() null.Val[int16] { return m.Processed } o.Sampletype = func() null.Val[string] { return m.Sampletype } o.Samplecond = func() null.Val[string] { return m.Samplecond } o.Species = func() null.Val[string] { return m.Species } o.Sex = func() null.Val[string] { return m.Sex } o.Avetemp = func() null.Val[float64] { return m.Avetemp } o.Windspeed = func() null.Val[float64] { return m.Windspeed } o.Winddir = func() null.Val[string] { return m.Winddir } o.Raingauge = func() null.Val[float64] { return m.Raingauge } o.Activity = func() null.Val[string] { return m.Activity } o.Testmethod = func() null.Val[string] { return m.Testmethod } o.Diseasetested = func() null.Val[string] { return m.Diseasetested } o.Diseasepos = func() null.Val[string] { return m.Diseasepos } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Lab = func() null.Val[string] { return m.Lab } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Flockid = func() null.Val[uuid.UUID] { return m.Flockid } o.Samplecount = func() null.Val[int16] { return m.Samplecount } o.Chickenid = func() null.Val[uuid.UUID] { return m.Chickenid } o.Gatewaysync = func() null.Val[int16] { return m.Gatewaysync } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerSamplecollectionMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerSamplelocation(mods ...FieldseekerSamplelocationMod) *FieldseekerSamplelocationTemplate { return f.NewFieldseekerSamplelocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerSamplelocationWithContext(ctx context.Context, mods ...FieldseekerSamplelocationMod) *FieldseekerSamplelocationTemplate { o := &FieldseekerSamplelocationTemplate{f: f} if f != nil { f.baseFieldseekerSamplelocationMods.Apply(ctx, o) } FieldseekerSamplelocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerSamplelocation(m *models.FieldseekerSamplelocation) *FieldseekerSamplelocationTemplate { o := &FieldseekerSamplelocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Zone = func() null.Val[string] { return m.Zone } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Externalid = func() null.Val[string] { return m.Externalid } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Gatewaysync = func() null.Val[int16] { return m.Gatewaysync } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerSamplelocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerServicerequest(mods ...FieldseekerServicerequestMod) *FieldseekerServicerequestTemplate { return f.NewFieldseekerServicerequestWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerServicerequestWithContext(ctx context.Context, mods ...FieldseekerServicerequestMod) *FieldseekerServicerequestTemplate { o := &FieldseekerServicerequestTemplate{f: f} if f != nil { f.baseFieldseekerServicerequestMods.Apply(ctx, o) } FieldseekerServicerequestModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerServicerequest(m *models.FieldseekerServicerequest) *FieldseekerServicerequestTemplate { o := &FieldseekerServicerequestTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Recdatetime = func() null.Val[time.Time] { return m.Recdatetime } o.Source = func() null.Val[string] { return m.Source } o.Entrytech = func() null.Val[string] { return m.Entrytech } o.Priority = func() null.Val[string] { return m.Priority } o.Supervisor = func() null.Val[string] { return m.Supervisor } o.Assignedtech = func() null.Val[string] { return m.Assignedtech } o.Status = func() null.Val[string] { return m.Status } o.Clranon = func() null.Val[int16] { return m.Clranon } o.Clrfname = func() null.Val[string] { return m.Clrfname } o.Clrphone1 = func() null.Val[string] { return m.Clrphone1 } o.Clrphone2 = func() null.Val[string] { return m.Clrphone2 } o.Clremail = func() null.Val[string] { return m.Clremail } o.Clrcompany = func() null.Val[string] { return m.Clrcompany } o.Clraddr1 = func() null.Val[string] { return m.Clraddr1 } o.Clraddr2 = func() null.Val[string] { return m.Clraddr2 } o.Clrcity = func() null.Val[string] { return m.Clrcity } o.Clrstate = func() null.Val[string] { return m.Clrstate } o.Clrzip = func() null.Val[string] { return m.Clrzip } o.Clrother = func() null.Val[string] { return m.Clrother } o.Clrcontpref = func() null.Val[string] { return m.Clrcontpref } o.Reqcompany = func() null.Val[string] { return m.Reqcompany } o.Reqaddr1 = func() null.Val[string] { return m.Reqaddr1 } o.Reqaddr2 = func() null.Val[string] { return m.Reqaddr2 } o.Reqcity = func() null.Val[string] { return m.Reqcity } o.Reqstate = func() null.Val[string] { return m.Reqstate } o.Reqzip = func() null.Val[string] { return m.Reqzip } o.Reqcrossst = func() null.Val[string] { return m.Reqcrossst } o.Reqsubdiv = func() null.Val[string] { return m.Reqsubdiv } o.Reqmapgrid = func() null.Val[string] { return m.Reqmapgrid } o.Reqpermission = func() null.Val[int16] { return m.Reqpermission } o.Reqtarget = func() null.Val[string] { return m.Reqtarget } o.Reqdescr = func() null.Val[string] { return m.Reqdescr } o.Reqnotesfortech = func() null.Val[string] { return m.Reqnotesfortech } o.Reqnotesforcust = func() null.Val[string] { return m.Reqnotesforcust } o.Reqfldnotes = func() null.Val[string] { return m.Reqfldnotes } o.Reqprogramactions = func() null.Val[string] { return m.Reqprogramactions } o.Datetimeclosed = func() null.Val[time.Time] { return m.Datetimeclosed } o.Techclosed = func() null.Val[string] { return m.Techclosed } o.SRNumber = func() null.Val[int32] { return m.SRNumber } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Accepted = func() null.Val[int16] { return m.Accepted } o.Accepteddate = func() null.Val[time.Time] { return m.Accepteddate } o.Rejectedby = func() null.Val[string] { return m.Rejectedby } o.Rejecteddate = func() null.Val[time.Time] { return m.Rejecteddate } o.Rejectedreason = func() null.Val[string] { return m.Rejectedreason } o.Duedate = func() null.Val[time.Time] { return m.Duedate } o.Acceptedby = func() null.Val[string] { return m.Acceptedby } o.Comments = func() null.Val[string] { return m.Comments } o.Estcompletedate = func() null.Val[time.Time] { return m.Estcompletedate } o.Nextaction = func() null.Val[string] { return m.Nextaction } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Firstresponsedate = func() null.Val[time.Time] { return m.Firstresponsedate } o.Responsedaycount = func() null.Val[int16] { return m.Responsedaycount } o.Allowed = func() null.Val[string] { return m.Allowed } o.Xvalue = func() null.Val[string] { return m.Xvalue } o.Yvalue = func() null.Val[string] { return m.Yvalue } o.Validx = func() null.Val[string] { return m.Validx } o.Validy = func() null.Val[string] { return m.Validy } o.Externalid = func() null.Val[string] { return m.Externalid } o.Externalerror = func() null.Val[string] { return m.Externalerror } o.Pointlocid = func() null.Val[uuid.UUID] { return m.Pointlocid } o.Notified = func() null.Val[int16] { return m.Notified } o.Notifieddate = func() null.Val[time.Time] { return m.Notifieddate } o.Scheduled = func() null.Val[int16] { return m.Scheduled } o.Scheduleddate = func() null.Val[time.Time] { return m.Scheduleddate } o.Dog = func() null.Val[int32] { return m.Dog } o.SchedulePeriod = func() null.Val[string] { return m.SchedulePeriod } o.ScheduleNotes = func() null.Val[string] { return m.ScheduleNotes } o.Spanish = func() null.Val[int32] { return m.Spanish } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Issuesreported = func() null.Val[string] { return m.Issuesreported } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.Notificationtimestamp = func() null.Val[string] { return m.Notificationtimestamp } o.Zone = func() null.Val[string] { return m.Zone } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } o.H3cell = func() null.Val[string] { return m.H3cell } ctx := context.Background() if m.R.Organization != nil { FieldseekerServicerequestMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerSpeciesabundance(mods ...FieldseekerSpeciesabundanceMod) *FieldseekerSpeciesabundanceTemplate { return f.NewFieldseekerSpeciesabundanceWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerSpeciesabundanceWithContext(ctx context.Context, mods ...FieldseekerSpeciesabundanceMod) *FieldseekerSpeciesabundanceTemplate { o := &FieldseekerSpeciesabundanceTemplate{f: f} if f != nil { f.baseFieldseekerSpeciesabundanceMods.Apply(ctx, o) } FieldseekerSpeciesabundanceModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerSpeciesabundance(m *models.FieldseekerSpeciesabundance) *FieldseekerSpeciesabundanceTemplate { o := &FieldseekerSpeciesabundanceTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.TrapdataID = func() null.Val[uuid.UUID] { return m.TrapdataID } o.Species = func() null.Val[string] { return m.Species } o.Males = func() null.Val[int16] { return m.Males } o.Unknown = func() null.Val[int16] { return m.Unknown } o.Bloodedfem = func() null.Val[int16] { return m.Bloodedfem } o.Gravidfem = func() null.Val[int16] { return m.Gravidfem } o.Larvae = func() null.Val[int16] { return m.Larvae } o.Poolstogen = func() null.Val[int16] { return m.Poolstogen } o.Processed = func() null.Val[int16] { return m.Processed } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Pupae = func() null.Val[int16] { return m.Pupae } o.Eggs = func() null.Val[int16] { return m.Eggs } o.Females = func() null.Val[int32] { return m.Females } o.Total = func() null.Val[int32] { return m.Total } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Yearweek = func() null.Val[int32] { return m.Yearweek } o.Globalzscore = func() null.Val[float64] { return m.Globalzscore } o.R7score = func() null.Val[float64] { return m.R7score } o.R8score = func() null.Val[float64] { return m.R8score } o.H3R7 = func() null.Val[string] { return m.H3R7 } o.H3R8 = func() null.Val[string] { return m.H3R8 } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerSpeciesabundanceMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerStormdrain(mods ...FieldseekerStormdrainMod) *FieldseekerStormdrainTemplate { return f.NewFieldseekerStormdrainWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerStormdrainWithContext(ctx context.Context, mods ...FieldseekerStormdrainMod) *FieldseekerStormdrainTemplate { o := &FieldseekerStormdrainTemplate{f: f} if f != nil { f.baseFieldseekerStormdrainMods.Apply(ctx, o) } FieldseekerStormdrainModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerStormdrain(m *models.FieldseekerStormdrain) *FieldseekerStormdrainTemplate { o := &FieldseekerStormdrainTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Nexttreatmentdate = func() null.Val[time.Time] { return m.Nexttreatmentdate } o.Lasttreatdate = func() null.Val[time.Time] { return m.Lasttreatdate } o.Lastaction = func() null.Val[string] { return m.Lastaction } o.Symbology = func() null.Val[string] { return m.Symbology } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Laststatus = func() null.Val[string] { return m.Laststatus } o.Zone = func() null.Val[string] { return m.Zone } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Type = func() null.Val[string] { return m.Type } o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerStormdrainMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerTimecard(mods ...FieldseekerTimecardMod) *FieldseekerTimecardTemplate { return f.NewFieldseekerTimecardWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerTimecardWithContext(ctx context.Context, mods ...FieldseekerTimecardMod) *FieldseekerTimecardTemplate { o := &FieldseekerTimecardTemplate{f: f} if f != nil { f.baseFieldseekerTimecardMods.Apply(ctx, o) } FieldseekerTimecardModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerTimecard(m *models.FieldseekerTimecard) *FieldseekerTimecardTemplate { o := &FieldseekerTimecardTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Activity = func() null.Val[string] { return m.Activity } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.Comments = func() null.Val[string] { return m.Comments } o.Externalid = func() null.Val[string] { return m.Externalid } o.Equiptype = func() null.Val[string] { return m.Equiptype } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Linelocid = func() null.Val[uuid.UUID] { return m.Linelocid } o.Pointlocid = func() null.Val[uuid.UUID] { return m.Pointlocid } o.Polygonlocid = func() null.Val[uuid.UUID] { return m.Polygonlocid } o.Lclocid = func() null.Val[uuid.UUID] { return m.Lclocid } o.Samplelocid = func() null.Val[uuid.UUID] { return m.Samplelocid } o.Srid = func() null.Val[uuid.UUID] { return m.Srid } o.Traplocid = func() null.Val[uuid.UUID] { return m.Traplocid } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Rodentlocid = func() null.Val[uuid.UUID] { return m.Rodentlocid } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerTimecardMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerTrapdatum(mods ...FieldseekerTrapdatumMod) *FieldseekerTrapdatumTemplate { return f.NewFieldseekerTrapdatumWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerTrapdatumWithContext(ctx context.Context, mods ...FieldseekerTrapdatumMod) *FieldseekerTrapdatumTemplate { o := &FieldseekerTrapdatumTemplate{f: f} if f != nil { f.baseFieldseekerTrapdatumMods.Apply(ctx, o) } FieldseekerTrapdatumModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerTrapdatum(m *models.FieldseekerTrapdatum) *FieldseekerTrapdatumTemplate { o := &FieldseekerTrapdatumTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Traptype = func() null.Val[string] { return m.Traptype } o.Trapactivitytype = func() null.Val[string] { return m.Trapactivitytype } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.Comments = func() null.Val[string] { return m.Comments } o.Idbytech = func() null.Val[string] { return m.Idbytech } o.Sortbytech = func() null.Val[string] { return m.Sortbytech } o.Processed = func() null.Val[int16] { return m.Processed } o.Sitecond = func() null.Val[string] { return m.Sitecond } o.Locationname = func() null.Val[string] { return m.Locationname } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Trapcondition = func() null.Val[string] { return m.Trapcondition } o.Trapnights = func() null.Val[int16] { return m.Trapnights } o.Zone = func() null.Val[string] { return m.Zone } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Srid = func() null.Val[uuid.UUID] { return m.Srid } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Gatewaysync = func() null.Val[int16] { return m.Gatewaysync } o.LocID = func() null.Val[uuid.UUID] { return m.LocID } o.Voltage = func() null.Val[float64] { return m.Voltage } o.Winddir = func() null.Val[string] { return m.Winddir } o.Windspeed = func() null.Val[float64] { return m.Windspeed } o.Avetemp = func() null.Val[float64] { return m.Avetemp } o.Raingauge = func() null.Val[float64] { return m.Raingauge } o.LR = func() null.Val[int16] { return m.LR } o.Field = func() null.Val[int32] { return m.Field } o.Vectorsurvtrapdataid = func() null.Val[string] { return m.Vectorsurvtrapdataid } o.Vectorsurvtraplocationid = func() null.Val[string] { return m.Vectorsurvtraplocationid } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Lure = func() null.Val[string] { return m.Lure } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } o.H3cell = func() null.Val[string] { return m.H3cell } ctx := context.Background() if m.R.Organization != nil { FieldseekerTrapdatumMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerTraplocation(mods ...FieldseekerTraplocationMod) *FieldseekerTraplocationTemplate { return f.NewFieldseekerTraplocationWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerTraplocationWithContext(ctx context.Context, mods ...FieldseekerTraplocationMod) *FieldseekerTraplocationTemplate { o := &FieldseekerTraplocationTemplate{f: f} if f != nil { f.baseFieldseekerTraplocationMods.Apply(ctx, o) } FieldseekerTraplocationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerTraplocation(m *models.FieldseekerTraplocation) *FieldseekerTraplocationTemplate { o := &FieldseekerTraplocationTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Zone = func() null.Val[string] { return m.Zone } o.Habitat = func() null.Val[string] { return m.Habitat } o.Priority = func() null.Val[string] { return m.Priority } o.Usetype = func() null.Val[string] { return m.Usetype } o.Active = func() null.Val[int16] { return m.Active } o.Description = func() null.Val[string] { return m.Description } o.Accessdesc = func() null.Val[string] { return m.Accessdesc } o.Comments = func() null.Val[string] { return m.Comments } o.Externalid = func() null.Val[string] { return m.Externalid } o.Nextactiondatescheduled = func() null.Val[time.Time] { return m.Nextactiondatescheduled } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Locationnumber = func() null.Val[int32] { return m.Locationnumber } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Gatewaysync = func() null.Val[int16] { return m.Gatewaysync } o.Route = func() null.Val[int32] { return m.Route } o.SetDow = func() null.Val[int32] { return m.SetDow } o.RouteOrder = func() null.Val[int32] { return m.RouteOrder } o.Vectorsurvsiteid = func() null.Val[string] { return m.Vectorsurvsiteid } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.H3R7 = func() null.Val[string] { return m.H3R7 } o.H3R8 = func() null.Val[string] { return m.H3R8 } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerTraplocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerTreatment(mods ...FieldseekerTreatmentMod) *FieldseekerTreatmentTemplate { return f.NewFieldseekerTreatmentWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerTreatmentWithContext(ctx context.Context, mods ...FieldseekerTreatmentMod) *FieldseekerTreatmentTemplate { o := &FieldseekerTreatmentTemplate{f: f} if f != nil { f.baseFieldseekerTreatmentMods.Apply(ctx, o) } FieldseekerTreatmentModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerTreatment(m *models.FieldseekerTreatment) *FieldseekerTreatmentTemplate { o := &FieldseekerTreatmentTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Activity = func() null.Val[string] { return m.Activity } o.Treatarea = func() null.Val[float64] { return m.Treatarea } o.Areaunit = func() null.Val[string] { return m.Areaunit } o.Product = func() null.Val[string] { return m.Product } o.Qty = func() null.Val[float64] { return m.Qty } o.Qtyunit = func() null.Val[string] { return m.Qtyunit } o.Method = func() null.Val[string] { return m.Method } o.Equiptype = func() null.Val[string] { return m.Equiptype } o.Comments = func() null.Val[string] { return m.Comments } o.Avetemp = func() null.Val[float64] { return m.Avetemp } o.Windspeed = func() null.Val[float64] { return m.Windspeed } o.Winddir = func() null.Val[string] { return m.Winddir } o.Raingauge = func() null.Val[float64] { return m.Raingauge } o.Startdatetime = func() null.Val[time.Time] { return m.Startdatetime } o.Enddatetime = func() null.Val[time.Time] { return m.Enddatetime } o.InspID = func() null.Val[uuid.UUID] { return m.InspID } o.Reviewed = func() null.Val[int16] { return m.Reviewed } o.Reviewedby = func() null.Val[string] { return m.Reviewedby } o.Revieweddate = func() null.Val[time.Time] { return m.Revieweddate } o.Locationname = func() null.Val[string] { return m.Locationname } o.Zone = func() null.Val[string] { return m.Zone } o.Warningoverride = func() null.Val[int16] { return m.Warningoverride } o.Recordstatus = func() null.Val[int16] { return m.Recordstatus } o.Zone2 = func() null.Val[string] { return m.Zone2 } o.Treatacres = func() null.Val[float64] { return m.Treatacres } o.Tirecount = func() null.Val[int16] { return m.Tirecount } o.Cbcount = func() null.Val[int16] { return m.Cbcount } o.Containercount = func() null.Val[int16] { return m.Containercount } o.Globalid = func() uuid.UUID { return m.Globalid } o.Treatmentlength = func() null.Val[float64] { return m.Treatmentlength } o.Treatmenthours = func() null.Val[float64] { return m.Treatmenthours } o.Treatmentlengthunits = func() null.Val[string] { return m.Treatmentlengthunits } o.Linelocid = func() null.Val[uuid.UUID] { return m.Linelocid } o.Pointlocid = func() null.Val[uuid.UUID] { return m.Pointlocid } o.Polygonlocid = func() null.Val[uuid.UUID] { return m.Polygonlocid } o.Srid = func() null.Val[uuid.UUID] { return m.Srid } o.Sdid = func() null.Val[uuid.UUID] { return m.Sdid } o.Barrierrouteid = func() null.Val[uuid.UUID] { return m.Barrierrouteid } o.Ulvrouteid = func() null.Val[uuid.UUID] { return m.Ulvrouteid } o.Fieldtech = func() null.Val[string] { return m.Fieldtech } o.Ptaid = func() null.Val[uuid.UUID] { return m.Ptaid } o.Flowrate = func() null.Val[float64] { return m.Flowrate } o.Habitat = func() null.Val[string] { return m.Habitat } o.Treathectares = func() null.Val[float64] { return m.Treathectares } o.Invloc = func() null.Val[string] { return m.Invloc } o.TempSitecond = func() null.Val[string] { return m.TempSitecond } o.Sitecond = func() null.Val[string] { return m.Sitecond } o.Totalcostprodcut = func() null.Val[float64] { return m.Totalcostprodcut } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.Targetspecies = func() null.Val[string] { return m.Targetspecies } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } o.H3cell = func() null.Val[string] { return m.H3cell } ctx := context.Background() if m.R.Organization != nil { FieldseekerTreatmentMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerTreatmentarea(mods ...FieldseekerTreatmentareaMod) *FieldseekerTreatmentareaTemplate { return f.NewFieldseekerTreatmentareaWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerTreatmentareaWithContext(ctx context.Context, mods ...FieldseekerTreatmentareaMod) *FieldseekerTreatmentareaTemplate { o := &FieldseekerTreatmentareaTemplate{f: f} if f != nil { f.baseFieldseekerTreatmentareaMods.Apply(ctx, o) } FieldseekerTreatmentareaModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerTreatmentarea(m *models.FieldseekerTreatmentarea) *FieldseekerTreatmentareaTemplate { o := &FieldseekerTreatmentareaTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.TreatID = func() null.Val[uuid.UUID] { return m.TreatID } o.SessionID = func() null.Val[uuid.UUID] { return m.SessionID } o.Treatdate = func() null.Val[time.Time] { return m.Treatdate } o.Comments = func() null.Val[string] { return m.Comments } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Notified = func() null.Val[int16] { return m.Notified } o.Type = func() null.Val[string] { return m.Type } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.ShapeArea = func() null.Val[float64] { return m.ShapeArea } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerTreatmentareaMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerZone(mods ...FieldseekerZoneMod) *FieldseekerZoneTemplate { return f.NewFieldseekerZoneWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerZoneWithContext(ctx context.Context, mods ...FieldseekerZoneMod) *FieldseekerZoneTemplate { o := &FieldseekerZoneTemplate{f: f} if f != nil { f.baseFieldseekerZoneMods.Apply(ctx, o) } FieldseekerZoneModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerZone(m *models.FieldseekerZone) *FieldseekerZoneTemplate { o := &FieldseekerZoneTemplate{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Active = func() null.Val[int32] { return m.Active } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.ShapeArea = func() null.Val[float64] { return m.ShapeArea } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerZoneMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerZones2(mods ...FieldseekerZones2Mod) *FieldseekerZones2Template { return f.NewFieldseekerZones2WithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerZones2WithContext(ctx context.Context, mods ...FieldseekerZones2Mod) *FieldseekerZones2Template { o := &FieldseekerZones2Template{f: f} if f != nil { f.baseFieldseekerZones2Mods.Apply(ctx, o) } FieldseekerZones2ModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerZones2(m *models.FieldseekerZones2) *FieldseekerZones2Template { o := &FieldseekerZones2Template{f: f, alreadyPersisted: true} o.Objectid = func() int64 { return m.Objectid } o.Name = func() null.Val[string] { return m.Name } o.Globalid = func() uuid.UUID { return m.Globalid } o.CreatedUser = func() null.Val[string] { return m.CreatedUser } o.CreatedDate = func() null.Val[time.Time] { return m.CreatedDate } o.LastEditedUser = func() null.Val[string] { return m.LastEditedUser } o.LastEditedDate = func() null.Val[time.Time] { return m.LastEditedDate } o.Creationdate = func() null.Val[time.Time] { return m.Creationdate } o.Creator = func() null.Val[string] { return m.Creator } o.Editdate = func() null.Val[time.Time] { return m.Editdate } o.Editor = func() null.Val[string] { return m.Editor } o.ShapeArea = func() null.Val[float64] { return m.ShapeArea } o.ShapeLength = func() null.Val[float64] { return m.ShapeLength } o.Geometry = func() types.JSON[json.RawMessage] { return m.Geometry } o.Geospatial = func() null.Val[string] { return m.Geospatial } o.Version = func() int32 { return m.Version } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerZones2Mods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewFieldseekerSync(mods ...FieldseekerSyncMod) *FieldseekerSyncTemplate { return f.NewFieldseekerSyncWithContext(context.Background(), mods...) } func (f *Factory) NewFieldseekerSyncWithContext(ctx context.Context, mods ...FieldseekerSyncMod) *FieldseekerSyncTemplate { o := &FieldseekerSyncTemplate{f: f} if f != nil { f.baseFieldseekerSyncMods.Apply(ctx, o) } FieldseekerSyncModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingFieldseekerSync(m *models.FieldseekerSync) *FieldseekerSyncTemplate { o := &FieldseekerSyncTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Created = func() time.Time { return m.Created } o.RecordsCreated = func() int32 { return m.RecordsCreated } o.RecordsUpdated = func() int32 { return m.RecordsUpdated } o.RecordsUnchanged = func() int32 { return m.RecordsUnchanged } o.OrganizationID = func() int32 { return m.OrganizationID } ctx := context.Background() if m.R.Organization != nil { FieldseekerSyncMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewGeographyColumn(mods ...GeographyColumnMod) *GeographyColumnTemplate { return f.NewGeographyColumnWithContext(context.Background(), mods...) } func (f *Factory) NewGeographyColumnWithContext(ctx context.Context, mods ...GeographyColumnMod) *GeographyColumnTemplate { o := &GeographyColumnTemplate{f: f} if f != nil { f.baseGeographyColumnMods.Apply(ctx, o) } GeographyColumnModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingGeographyColumn(m *models.GeographyColumn) *GeographyColumnTemplate { o := &GeographyColumnTemplate{f: f, alreadyPersisted: true} o.FTableCatalog = func() null.Val[string] { return m.FTableCatalog } o.FTableSchema = func() null.Val[string] { return m.FTableSchema } o.FTableName = func() null.Val[string] { return m.FTableName } o.FGeographyColumn = func() null.Val[string] { return m.FGeographyColumn } o.CoordDimension = func() null.Val[int32] { return m.CoordDimension } o.Srid = func() null.Val[int32] { return m.Srid } o.Type = func() null.Val[string] { return m.Type } return o } func (f *Factory) NewGeometryColumn(mods ...GeometryColumnMod) *GeometryColumnTemplate { return f.NewGeometryColumnWithContext(context.Background(), mods...) } func (f *Factory) NewGeometryColumnWithContext(ctx context.Context, mods ...GeometryColumnMod) *GeometryColumnTemplate { o := &GeometryColumnTemplate{f: f} if f != nil { f.baseGeometryColumnMods.Apply(ctx, o) } GeometryColumnModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingGeometryColumn(m *models.GeometryColumn) *GeometryColumnTemplate { o := &GeometryColumnTemplate{f: f, alreadyPersisted: true} o.FTableCatalog = func() null.Val[string] { return m.FTableCatalog } o.FTableSchema = func() null.Val[string] { return m.FTableSchema } o.FTableName = func() null.Val[string] { return m.FTableName } o.FGeometryColumn = func() null.Val[string] { return m.FGeometryColumn } o.CoordDimension = func() null.Val[int32] { return m.CoordDimension } o.Srid = func() null.Val[int32] { return m.Srid } o.Type = func() null.Val[string] { return m.Type } return o } func (f *Factory) NewGooseDBVersion(mods ...GooseDBVersionMod) *GooseDBVersionTemplate { return f.NewGooseDBVersionWithContext(context.Background(), mods...) } func (f *Factory) NewGooseDBVersionWithContext(ctx context.Context, mods ...GooseDBVersionMod) *GooseDBVersionTemplate { o := &GooseDBVersionTemplate{f: f} if f != nil { f.baseGooseDBVersionMods.Apply(ctx, o) } GooseDBVersionModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingGooseDBVersion(m *models.GooseDBVersion) *GooseDBVersionTemplate { o := &GooseDBVersionTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.VersionID = func() int64 { return m.VersionID } o.IsApplied = func() bool { return m.IsApplied } o.Tstamp = func() time.Time { return m.Tstamp } return o } func (f *Factory) NewH3Aggregation(mods ...H3AggregationMod) *H3AggregationTemplate { return f.NewH3AggregationWithContext(context.Background(), mods...) } func (f *Factory) NewH3AggregationWithContext(ctx context.Context, mods ...H3AggregationMod) *H3AggregationTemplate { o := &H3AggregationTemplate{f: f} if f != nil { f.baseH3AggregationMods.Apply(ctx, o) } H3AggregationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingH3Aggregation(m *models.H3Aggregation) *H3AggregationTemplate { o := &H3AggregationTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Cell = func() string { return m.Cell } o.Count = func() int32 { return m.Count } o.Geometry = func() null.Val[string] { return m.Geometry } o.OrganizationID = func() int32 { return m.OrganizationID } o.Resolution = func() int32 { return m.Resolution } o.Type = func() enums.H3aggregationtype { return m.Type } ctx := context.Background() if m.R.Organization != nil { H3AggregationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) NewNoteAudio(mods ...NoteAudioMod) *NoteAudioTemplate { return f.NewNoteAudioWithContext(context.Background(), mods...) } func (f *Factory) NewNoteAudioWithContext(ctx context.Context, mods ...NoteAudioMod) *NoteAudioTemplate { o := &NoteAudioTemplate{f: f} if f != nil { f.baseNoteAudioMods.Apply(ctx, o) } NoteAudioModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteAudio(m *models.NoteAudio) *NoteAudioTemplate { o := &NoteAudioTemplate{f: f, alreadyPersisted: true} o.Created = func() time.Time { return m.Created } o.CreatorID = func() int32 { return m.CreatorID } o.Deleted = func() null.Val[time.Time] { return m.Deleted } o.DeletorID = func() null.Val[int32] { return m.DeletorID } o.Duration = func() float32 { return m.Duration } o.OrganizationID = func() int32 { return m.OrganizationID } o.Transcription = func() null.Val[string] { return m.Transcription } o.TranscriptionUserEdited = func() bool { return m.TranscriptionUserEdited } o.Version = func() int32 { return m.Version } o.UUID = func() uuid.UUID { return m.UUID } ctx := context.Background() if m.R.CreatorUser != nil { NoteAudioMods.WithExistingCreatorUser(m.R.CreatorUser).Apply(ctx, o) } if m.R.DeletorUser != nil { NoteAudioMods.WithExistingDeletorUser(m.R.DeletorUser).Apply(ctx, o) } if m.R.Organization != nil { NoteAudioMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } if len(m.R.NoteAudioBreadcrumbs) > 0 { NoteAudioMods.AddExistingNoteAudioBreadcrumbs(m.R.NoteAudioBreadcrumbs...).Apply(ctx, o) } if len(m.R.NoteAudioData) > 0 { NoteAudioMods.AddExistingNoteAudioData(m.R.NoteAudioData...).Apply(ctx, o) } return o } func (f *Factory) NewNoteAudioBreadcrumb(mods ...NoteAudioBreadcrumbMod) *NoteAudioBreadcrumbTemplate { return f.NewNoteAudioBreadcrumbWithContext(context.Background(), mods...) } func (f *Factory) NewNoteAudioBreadcrumbWithContext(ctx context.Context, mods ...NoteAudioBreadcrumbMod) *NoteAudioBreadcrumbTemplate { o := &NoteAudioBreadcrumbTemplate{f: f} if f != nil { f.baseNoteAudioBreadcrumbMods.Apply(ctx, o) } NoteAudioBreadcrumbModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteAudioBreadcrumb(m *models.NoteAudioBreadcrumb) *NoteAudioBreadcrumbTemplate { o := &NoteAudioBreadcrumbTemplate{f: f, alreadyPersisted: true} o.Cell = func() string { return m.Cell } o.Created = func() time.Time { return m.Created } o.ManuallySelected = func() bool { return m.ManuallySelected } o.NoteAudioVersion = func() int32 { return m.NoteAudioVersion } o.NoteAudioUUID = func() uuid.UUID { return m.NoteAudioUUID } o.Position = func() int32 { return m.Position } ctx := context.Background() if m.R.NoteAudio != nil { NoteAudioBreadcrumbMods.WithExistingNoteAudio(m.R.NoteAudio).Apply(ctx, o) } return o } func (f *Factory) NewNoteAudioDatum(mods ...NoteAudioDatumMod) *NoteAudioDatumTemplate { return f.NewNoteAudioDatumWithContext(context.Background(), mods...) } func (f *Factory) NewNoteAudioDatumWithContext(ctx context.Context, mods ...NoteAudioDatumMod) *NoteAudioDatumTemplate { o := &NoteAudioDatumTemplate{f: f} if f != nil { f.baseNoteAudioDatumMods.Apply(ctx, o) } NoteAudioDatumModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteAudioDatum(m *models.NoteAudioDatum) *NoteAudioDatumTemplate { o := &NoteAudioDatumTemplate{f: f, alreadyPersisted: true} o.Created = func() time.Time { return m.Created } o.NoteAudioVersion = func() int32 { return m.NoteAudioVersion } o.NoteAudioUUID = func() uuid.UUID { return m.NoteAudioUUID } o.Type = func() enums.Audiodatatype { return m.Type } ctx := context.Background() if m.R.NoteAudio != nil { NoteAudioDatumMods.WithExistingNoteAudio(m.R.NoteAudio).Apply(ctx, o) } return o } func (f *Factory) NewNoteImage(mods ...NoteImageMod) *NoteImageTemplate { return f.NewNoteImageWithContext(context.Background(), mods...) } func (f *Factory) NewNoteImageWithContext(ctx context.Context, mods ...NoteImageMod) *NoteImageTemplate { o := &NoteImageTemplate{f: f} if f != nil { f.baseNoteImageMods.Apply(ctx, o) } NoteImageModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteImage(m *models.NoteImage) *NoteImageTemplate { o := &NoteImageTemplate{f: f, alreadyPersisted: true} o.Created = func() time.Time { return m.Created } o.CreatorID = func() int32 { return m.CreatorID } o.Deleted = func() null.Val[time.Time] { return m.Deleted } o.DeletorID = func() null.Val[int32] { return m.DeletorID } o.OrganizationID = func() int32 { return m.OrganizationID } o.Version = func() int32 { return m.Version } o.UUID = func() uuid.UUID { return m.UUID } ctx := context.Background() if m.R.CreatorUser != nil { NoteImageMods.WithExistingCreatorUser(m.R.CreatorUser).Apply(ctx, o) } if m.R.DeletorUser != nil { NoteImageMods.WithExistingDeletorUser(m.R.DeletorUser).Apply(ctx, o) } if m.R.Organization != nil { NoteImageMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } if len(m.R.NoteImageBreadcrumbs) > 0 { NoteImageMods.AddExistingNoteImageBreadcrumbs(m.R.NoteImageBreadcrumbs...).Apply(ctx, o) } if len(m.R.NoteImageData) > 0 { NoteImageMods.AddExistingNoteImageData(m.R.NoteImageData...).Apply(ctx, o) } return o } func (f *Factory) NewNoteImageBreadcrumb(mods ...NoteImageBreadcrumbMod) *NoteImageBreadcrumbTemplate { return f.NewNoteImageBreadcrumbWithContext(context.Background(), mods...) } func (f *Factory) NewNoteImageBreadcrumbWithContext(ctx context.Context, mods ...NoteImageBreadcrumbMod) *NoteImageBreadcrumbTemplate { o := &NoteImageBreadcrumbTemplate{f: f} if f != nil { f.baseNoteImageBreadcrumbMods.Apply(ctx, o) } NoteImageBreadcrumbModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteImageBreadcrumb(m *models.NoteImageBreadcrumb) *NoteImageBreadcrumbTemplate { o := &NoteImageBreadcrumbTemplate{f: f, alreadyPersisted: true} o.Cell = func() string { return m.Cell } o.Created = func() time.Time { return m.Created } o.ManuallySelected = func() bool { return m.ManuallySelected } o.NoteImageVersion = func() int32 { return m.NoteImageVersion } o.NoteImageUUID = func() uuid.UUID { return m.NoteImageUUID } o.Position = func() int32 { return m.Position } ctx := context.Background() if m.R.NoteImage != nil { NoteImageBreadcrumbMods.WithExistingNoteImage(m.R.NoteImage).Apply(ctx, o) } return o } func (f *Factory) NewNoteImageDatum(mods ...NoteImageDatumMod) *NoteImageDatumTemplate { return f.NewNoteImageDatumWithContext(context.Background(), mods...) } func (f *Factory) NewNoteImageDatumWithContext(ctx context.Context, mods ...NoteImageDatumMod) *NoteImageDatumTemplate { o := &NoteImageDatumTemplate{f: f} if f != nil { f.baseNoteImageDatumMods.Apply(ctx, o) } NoteImageDatumModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNoteImageDatum(m *models.NoteImageDatum) *NoteImageDatumTemplate { o := &NoteImageDatumTemplate{f: f, alreadyPersisted: true} o.Created = func() time.Time { return m.Created } o.NoteImageVersion = func() int32 { return m.NoteImageVersion } o.NoteImageUUID = func() uuid.UUID { return m.NoteImageUUID } o.Type = func() enums.Audiodatatype { return m.Type } ctx := context.Background() if m.R.NoteImage != nil { NoteImageDatumMods.WithExistingNoteImage(m.R.NoteImage).Apply(ctx, o) } return o } func (f *Factory) NewNotification(mods ...NotificationMod) *NotificationTemplate { return f.NewNotificationWithContext(context.Background(), mods...) } func (f *Factory) NewNotificationWithContext(ctx context.Context, mods ...NotificationMod) *NotificationTemplate { o := &NotificationTemplate{f: f} if f != nil { f.baseNotificationMods.Apply(ctx, o) } NotificationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingNotification(m *models.Notification) *NotificationTemplate { o := &NotificationTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Created = func() time.Time { return m.Created } o.Link = func() string { return m.Link } o.Message = func() string { return m.Message } o.Type = func() enums.Notificationtype { return m.Type } o.UserID = func() int32 { return m.UserID } o.ResolvedAt = func() null.Val[time.Time] { return m.ResolvedAt } ctx := context.Background() if m.R.UserUser != nil { NotificationMods.WithExistingUserUser(m.R.UserUser).Apply(ctx, o) } return o } func (f *Factory) NewOauthToken(mods ...OauthTokenMod) *OauthTokenTemplate { return f.NewOauthTokenWithContext(context.Background(), mods...) } func (f *Factory) NewOauthTokenWithContext(ctx context.Context, mods ...OauthTokenMod) *OauthTokenTemplate { o := &OauthTokenTemplate{f: f} if f != nil { f.baseOauthTokenMods.Apply(ctx, o) } OauthTokenModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingOauthToken(m *models.OauthToken) *OauthTokenTemplate { o := &OauthTokenTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.AccessToken = func() string { return m.AccessToken } o.AccessTokenExpires = func() time.Time { return m.AccessTokenExpires } o.RefreshToken = func() string { return m.RefreshToken } o.Username = func() string { return m.Username } o.UserID = func() int32 { return m.UserID } o.ArcgisID = func() null.Val[string] { return m.ArcgisID } o.ArcgisLicenseTypeID = func() null.Val[string] { return m.ArcgisLicenseTypeID } o.RefreshTokenExpires = func() time.Time { return m.RefreshTokenExpires } o.InvalidatedAt = func() null.Val[time.Time] { return m.InvalidatedAt } ctx := context.Background() if m.R.UserUser != nil { OauthTokenMods.WithExistingUserUser(m.R.UserUser).Apply(ctx, o) } return o } func (f *Factory) NewOrganization(mods ...OrganizationMod) *OrganizationTemplate { return f.NewOrganizationWithContext(context.Background(), mods...) } func (f *Factory) NewOrganizationWithContext(ctx context.Context, mods ...OrganizationMod) *OrganizationTemplate { o := &OrganizationTemplate{f: f} if f != nil { f.baseOrganizationMods.Apply(ctx, o) } OrganizationModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingOrganization(m *models.Organization) *OrganizationTemplate { o := &OrganizationTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Name = func() null.Val[string] { return m.Name } o.ArcgisID = func() null.Val[string] { return m.ArcgisID } o.ArcgisName = func() null.Val[string] { return m.ArcgisName } o.FieldseekerURL = func() null.Val[string] { return m.FieldseekerURL } ctx := context.Background() if len(m.R.Containerrelates) > 0 { OrganizationMods.AddExistingContainerrelates(m.R.Containerrelates...).Apply(ctx, o) } if len(m.R.Fieldscoutinglogs) > 0 { OrganizationMods.AddExistingFieldscoutinglogs(m.R.Fieldscoutinglogs...).Apply(ctx, o) } if len(m.R.Habitatrelates) > 0 { OrganizationMods.AddExistingHabitatrelates(m.R.Habitatrelates...).Apply(ctx, o) } if len(m.R.Inspectionsamples) > 0 { OrganizationMods.AddExistingInspectionsamples(m.R.Inspectionsamples...).Apply(ctx, o) } if len(m.R.Inspectionsampledetails) > 0 { OrganizationMods.AddExistingInspectionsampledetails(m.R.Inspectionsampledetails...).Apply(ctx, o) } if len(m.R.Linelocations) > 0 { OrganizationMods.AddExistingLinelocations(m.R.Linelocations...).Apply(ctx, o) } if len(m.R.Locationtrackings) > 0 { OrganizationMods.AddExistingLocationtrackings(m.R.Locationtrackings...).Apply(ctx, o) } if len(m.R.Mosquitoinspections) > 0 { OrganizationMods.AddExistingMosquitoinspections(m.R.Mosquitoinspections...).Apply(ctx, o) } if len(m.R.Pointlocations) > 0 { OrganizationMods.AddExistingPointlocations(m.R.Pointlocations...).Apply(ctx, o) } if len(m.R.Polygonlocations) > 0 { OrganizationMods.AddExistingPolygonlocations(m.R.Polygonlocations...).Apply(ctx, o) } if len(m.R.Pools) > 0 { OrganizationMods.AddExistingPools(m.R.Pools...).Apply(ctx, o) } if len(m.R.Pooldetails) > 0 { OrganizationMods.AddExistingPooldetails(m.R.Pooldetails...).Apply(ctx, o) } if len(m.R.Proposedtreatmentareas) > 0 { OrganizationMods.AddExistingProposedtreatmentareas(m.R.Proposedtreatmentareas...).Apply(ctx, o) } if len(m.R.Qamosquitoinspections) > 0 { OrganizationMods.AddExistingQamosquitoinspections(m.R.Qamosquitoinspections...).Apply(ctx, o) } if len(m.R.Rodentlocations) > 0 { OrganizationMods.AddExistingRodentlocations(m.R.Rodentlocations...).Apply(ctx, o) } if len(m.R.Samplecollections) > 0 { OrganizationMods.AddExistingSamplecollections(m.R.Samplecollections...).Apply(ctx, o) } if len(m.R.Samplelocations) > 0 { OrganizationMods.AddExistingSamplelocations(m.R.Samplelocations...).Apply(ctx, o) } if len(m.R.Servicerequests) > 0 { OrganizationMods.AddExistingServicerequests(m.R.Servicerequests...).Apply(ctx, o) } if len(m.R.Speciesabundances) > 0 { OrganizationMods.AddExistingSpeciesabundances(m.R.Speciesabundances...).Apply(ctx, o) } if len(m.R.Stormdrains) > 0 { OrganizationMods.AddExistingStormdrains(m.R.Stormdrains...).Apply(ctx, o) } if len(m.R.Timecards) > 0 { OrganizationMods.AddExistingTimecards(m.R.Timecards...).Apply(ctx, o) } if len(m.R.Trapdata) > 0 { OrganizationMods.AddExistingTrapdata(m.R.Trapdata...).Apply(ctx, o) } if len(m.R.Traplocations) > 0 { OrganizationMods.AddExistingTraplocations(m.R.Traplocations...).Apply(ctx, o) } if len(m.R.Treatments) > 0 { OrganizationMods.AddExistingTreatments(m.R.Treatments...).Apply(ctx, o) } if len(m.R.Treatmentareas) > 0 { OrganizationMods.AddExistingTreatmentareas(m.R.Treatmentareas...).Apply(ctx, o) } if len(m.R.Zones) > 0 { OrganizationMods.AddExistingZones(m.R.Zones...).Apply(ctx, o) } if len(m.R.Zones2s) > 0 { OrganizationMods.AddExistingZones2s(m.R.Zones2s...).Apply(ctx, o) } if len(m.R.FieldseekerSyncs) > 0 { OrganizationMods.AddExistingFieldseekerSyncs(m.R.FieldseekerSyncs...).Apply(ctx, o) } if len(m.R.H3Aggregations) > 0 { OrganizationMods.AddExistingH3Aggregations(m.R.H3Aggregations...).Apply(ctx, o) } if len(m.R.NoteAudios) > 0 { OrganizationMods.AddExistingNoteAudios(m.R.NoteAudios...).Apply(ctx, o) } if len(m.R.NoteImages) > 0 { OrganizationMods.AddExistingNoteImages(m.R.NoteImages...).Apply(ctx, o) } if len(m.R.User) > 0 { OrganizationMods.AddExistingUser(m.R.User...).Apply(ctx, o) } return o } func (f *Factory) NewPublicreportQuick(mods ...PublicreportQuickMod) *PublicreportQuickTemplate { return f.NewPublicreportQuickWithContext(context.Background(), mods...) } func (f *Factory) NewPublicreportQuickWithContext(ctx context.Context, mods ...PublicreportQuickMod) *PublicreportQuickTemplate { o := &PublicreportQuickTemplate{f: f} if f != nil { f.basePublicreportQuickMods.Apply(ctx, o) } PublicreportQuickModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingPublicreportQuick(m *models.PublicreportQuick) *PublicreportQuickTemplate { o := &PublicreportQuickTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Created = func() time.Time { return m.Created } o.Comments = func() string { return m.Comments } o.Location = func() null.Val[string] { return m.Location } o.H3cell = func() null.Val[string] { return m.H3cell } o.PublicID = func() string { return m.PublicID } o.ReporterEmail = func() string { return m.ReporterEmail } o.ReporterPhone = func() string { return m.ReporterPhone } ctx := context.Background() if len(m.R.QuickPhotos) > 0 { PublicreportQuickMods.AddExistingQuickPhotos(m.R.QuickPhotos...).Apply(ctx, o) } return o } func (f *Factory) NewPublicreportQuickPhoto(mods ...PublicreportQuickPhotoMod) *PublicreportQuickPhotoTemplate { return f.NewPublicreportQuickPhotoWithContext(context.Background(), mods...) } func (f *Factory) NewPublicreportQuickPhotoWithContext(ctx context.Context, mods ...PublicreportQuickPhotoMod) *PublicreportQuickPhotoTemplate { o := &PublicreportQuickPhotoTemplate{f: f} if f != nil { f.basePublicreportQuickPhotoMods.Apply(ctx, o) } PublicreportQuickPhotoModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingPublicreportQuickPhoto(m *models.PublicreportQuickPhoto) *PublicreportQuickPhotoTemplate { o := &PublicreportQuickPhotoTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.Size = func() int64 { return m.Size } o.Filename = func() string { return m.Filename } o.QuickID = func() int32 { return m.QuickID } o.UUID = func() uuid.UUID { return m.UUID } ctx := context.Background() if m.R.Quick != nil { PublicreportQuickPhotoMods.WithExistingQuick(m.R.Quick).Apply(ctx, o) } return o } func (f *Factory) NewRasterColumn(mods ...RasterColumnMod) *RasterColumnTemplate { return f.NewRasterColumnWithContext(context.Background(), mods...) } func (f *Factory) NewRasterColumnWithContext(ctx context.Context, mods ...RasterColumnMod) *RasterColumnTemplate { o := &RasterColumnTemplate{f: f} if f != nil { f.baseRasterColumnMods.Apply(ctx, o) } RasterColumnModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingRasterColumn(m *models.RasterColumn) *RasterColumnTemplate { o := &RasterColumnTemplate{f: f, alreadyPersisted: true} o.RTableCatalog = func() null.Val[string] { return m.RTableCatalog } o.RTableSchema = func() null.Val[string] { return m.RTableSchema } o.RTableName = func() null.Val[string] { return m.RTableName } o.RRasterColumn = func() null.Val[string] { return m.RRasterColumn } o.Srid = func() null.Val[int32] { return m.Srid } o.ScaleX = func() null.Val[float64] { return m.ScaleX } o.ScaleY = func() null.Val[float64] { return m.ScaleY } o.BlocksizeX = func() null.Val[int32] { return m.BlocksizeX } o.BlocksizeY = func() null.Val[int32] { return m.BlocksizeY } o.SameAlignment = func() null.Val[bool] { return m.SameAlignment } o.RegularBlocking = func() null.Val[bool] { return m.RegularBlocking } o.NumBands = func() null.Val[int32] { return m.NumBands } o.PixelTypes = func() null.Val[pq.StringArray] { return m.PixelTypes } o.NodataValues = func() null.Val[pq.Float64Array] { return m.NodataValues } o.OutDB = func() null.Val[pq.BoolArray] { return m.OutDB } o.Extent = func() null.Val[string] { return m.Extent } o.SpatialIndex = func() null.Val[bool] { return m.SpatialIndex } return o } func (f *Factory) NewRasterOverview(mods ...RasterOverviewMod) *RasterOverviewTemplate { return f.NewRasterOverviewWithContext(context.Background(), mods...) } func (f *Factory) NewRasterOverviewWithContext(ctx context.Context, mods ...RasterOverviewMod) *RasterOverviewTemplate { o := &RasterOverviewTemplate{f: f} if f != nil { f.baseRasterOverviewMods.Apply(ctx, o) } RasterOverviewModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingRasterOverview(m *models.RasterOverview) *RasterOverviewTemplate { o := &RasterOverviewTemplate{f: f, alreadyPersisted: true} o.OTableCatalog = func() null.Val[string] { return m.OTableCatalog } o.OTableSchema = func() null.Val[string] { return m.OTableSchema } o.OTableName = func() null.Val[string] { return m.OTableName } o.ORasterColumn = func() null.Val[string] { return m.ORasterColumn } o.RTableCatalog = func() null.Val[string] { return m.RTableCatalog } o.RTableSchema = func() null.Val[string] { return m.RTableSchema } o.RTableName = func() null.Val[string] { return m.RTableName } o.RRasterColumn = func() null.Val[string] { return m.RRasterColumn } o.OverviewFactor = func() null.Val[int32] { return m.OverviewFactor } return o } func (f *Factory) NewSession(mods ...SessionMod) *SessionTemplate { return f.NewSessionWithContext(context.Background(), mods...) } func (f *Factory) NewSessionWithContext(ctx context.Context, mods ...SessionMod) *SessionTemplate { o := &SessionTemplate{f: f} if f != nil { f.baseSessionMods.Apply(ctx, o) } SessionModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingSession(m *models.Session) *SessionTemplate { o := &SessionTemplate{f: f, alreadyPersisted: true} o.Token = func() string { return m.Token } o.Data = func() []byte { return m.Data } o.Expiry = func() time.Time { return m.Expiry } return o } func (f *Factory) NewSpatialRefSy(mods ...SpatialRefSyMod) *SpatialRefSyTemplate { return f.NewSpatialRefSyWithContext(context.Background(), mods...) } func (f *Factory) NewSpatialRefSyWithContext(ctx context.Context, mods ...SpatialRefSyMod) *SpatialRefSyTemplate { o := &SpatialRefSyTemplate{f: f} if f != nil { f.baseSpatialRefSyMods.Apply(ctx, o) } SpatialRefSyModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingSpatialRefSy(m *models.SpatialRefSy) *SpatialRefSyTemplate { o := &SpatialRefSyTemplate{f: f, alreadyPersisted: true} o.Srid = func() int32 { return m.Srid } o.AuthName = func() null.Val[string] { return m.AuthName } o.AuthSrid = func() null.Val[int32] { return m.AuthSrid } o.Srtext = func() null.Val[string] { return m.Srtext } o.Proj4text = func() null.Val[string] { return m.Proj4text } return o } func (f *Factory) NewUser(mods ...UserMod) *UserTemplate { return f.NewUserWithContext(context.Background(), mods...) } func (f *Factory) NewUserWithContext(ctx context.Context, mods ...UserMod) *UserTemplate { o := &UserTemplate{f: f} if f != nil { f.baseUserMods.Apply(ctx, o) } UserModSlice(mods).Apply(ctx, o) return o } func (f *Factory) FromExistingUser(m *models.User) *UserTemplate { o := &UserTemplate{f: f, alreadyPersisted: true} o.ID = func() int32 { return m.ID } o.ArcgisAccessToken = func() null.Val[string] { return m.ArcgisAccessToken } o.ArcgisLicense = func() null.Val[enums.Arcgislicensetype] { return m.ArcgisLicense } o.ArcgisRefreshToken = func() null.Val[string] { return m.ArcgisRefreshToken } o.ArcgisRefreshTokenExpires = func() null.Val[time.Time] { return m.ArcgisRefreshTokenExpires } o.ArcgisRole = func() null.Val[string] { return m.ArcgisRole } o.DisplayName = func() string { return m.DisplayName } o.Email = func() null.Val[string] { return m.Email } o.OrganizationID = func() int32 { return m.OrganizationID } o.Username = func() string { return m.Username } o.PasswordHashType = func() enums.Hashtype { return m.PasswordHashType } o.PasswordHash = func() string { return m.PasswordHash } ctx := context.Background() if len(m.R.CreatorNoteAudios) > 0 { UserMods.AddExistingCreatorNoteAudios(m.R.CreatorNoteAudios...).Apply(ctx, o) } if len(m.R.DeletorNoteAudios) > 0 { UserMods.AddExistingDeletorNoteAudios(m.R.DeletorNoteAudios...).Apply(ctx, o) } if len(m.R.CreatorNoteImages) > 0 { UserMods.AddExistingCreatorNoteImages(m.R.CreatorNoteImages...).Apply(ctx, o) } if len(m.R.DeletorNoteImages) > 0 { UserMods.AddExistingDeletorNoteImages(m.R.DeletorNoteImages...).Apply(ctx, o) } if len(m.R.UserNotifications) > 0 { UserMods.AddExistingUserNotifications(m.R.UserNotifications...).Apply(ctx, o) } if len(m.R.UserOauthTokens) > 0 { UserMods.AddExistingUserOauthTokens(m.R.UserOauthTokens...).Apply(ctx, o) } if m.R.Organization != nil { UserMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o) } return o } func (f *Factory) ClearBaseFieldseekerContainerrelateMods() { f.baseFieldseekerContainerrelateMods = nil } func (f *Factory) AddBaseFieldseekerContainerrelateMod(mods ...FieldseekerContainerrelateMod) { f.baseFieldseekerContainerrelateMods = append(f.baseFieldseekerContainerrelateMods, mods...) } func (f *Factory) ClearBaseFieldseekerFieldscoutinglogMods() { f.baseFieldseekerFieldscoutinglogMods = nil } func (f *Factory) AddBaseFieldseekerFieldscoutinglogMod(mods ...FieldseekerFieldscoutinglogMod) { f.baseFieldseekerFieldscoutinglogMods = append(f.baseFieldseekerFieldscoutinglogMods, mods...) } func (f *Factory) ClearBaseFieldseekerHabitatrelateMods() { f.baseFieldseekerHabitatrelateMods = nil } func (f *Factory) AddBaseFieldseekerHabitatrelateMod(mods ...FieldseekerHabitatrelateMod) { f.baseFieldseekerHabitatrelateMods = append(f.baseFieldseekerHabitatrelateMods, mods...) } func (f *Factory) ClearBaseFieldseekerInspectionsampleMods() { f.baseFieldseekerInspectionsampleMods = nil } func (f *Factory) AddBaseFieldseekerInspectionsampleMod(mods ...FieldseekerInspectionsampleMod) { f.baseFieldseekerInspectionsampleMods = append(f.baseFieldseekerInspectionsampleMods, mods...) } func (f *Factory) ClearBaseFieldseekerInspectionsampledetailMods() { f.baseFieldseekerInspectionsampledetailMods = nil } func (f *Factory) AddBaseFieldseekerInspectionsampledetailMod(mods ...FieldseekerInspectionsampledetailMod) { f.baseFieldseekerInspectionsampledetailMods = append(f.baseFieldseekerInspectionsampledetailMods, mods...) } func (f *Factory) ClearBaseFieldseekerLinelocationMods() { f.baseFieldseekerLinelocationMods = nil } func (f *Factory) AddBaseFieldseekerLinelocationMod(mods ...FieldseekerLinelocationMod) { f.baseFieldseekerLinelocationMods = append(f.baseFieldseekerLinelocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerLocationtrackingMods() { f.baseFieldseekerLocationtrackingMods = nil } func (f *Factory) AddBaseFieldseekerLocationtrackingMod(mods ...FieldseekerLocationtrackingMod) { f.baseFieldseekerLocationtrackingMods = append(f.baseFieldseekerLocationtrackingMods, mods...) } func (f *Factory) ClearBaseFieldseekerMosquitoinspectionMods() { f.baseFieldseekerMosquitoinspectionMods = nil } func (f *Factory) AddBaseFieldseekerMosquitoinspectionMod(mods ...FieldseekerMosquitoinspectionMod) { f.baseFieldseekerMosquitoinspectionMods = append(f.baseFieldseekerMosquitoinspectionMods, mods...) } func (f *Factory) ClearBaseFieldseekerPointlocationMods() { f.baseFieldseekerPointlocationMods = nil } func (f *Factory) AddBaseFieldseekerPointlocationMod(mods ...FieldseekerPointlocationMod) { f.baseFieldseekerPointlocationMods = append(f.baseFieldseekerPointlocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerPolygonlocationMods() { f.baseFieldseekerPolygonlocationMods = nil } func (f *Factory) AddBaseFieldseekerPolygonlocationMod(mods ...FieldseekerPolygonlocationMod) { f.baseFieldseekerPolygonlocationMods = append(f.baseFieldseekerPolygonlocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerPoolMods() { f.baseFieldseekerPoolMods = nil } func (f *Factory) AddBaseFieldseekerPoolMod(mods ...FieldseekerPoolMod) { f.baseFieldseekerPoolMods = append(f.baseFieldseekerPoolMods, mods...) } func (f *Factory) ClearBaseFieldseekerPooldetailMods() { f.baseFieldseekerPooldetailMods = nil } func (f *Factory) AddBaseFieldseekerPooldetailMod(mods ...FieldseekerPooldetailMod) { f.baseFieldseekerPooldetailMods = append(f.baseFieldseekerPooldetailMods, mods...) } func (f *Factory) ClearBaseFieldseekerProposedtreatmentareaMods() { f.baseFieldseekerProposedtreatmentareaMods = nil } func (f *Factory) AddBaseFieldseekerProposedtreatmentareaMod(mods ...FieldseekerProposedtreatmentareaMod) { f.baseFieldseekerProposedtreatmentareaMods = append(f.baseFieldseekerProposedtreatmentareaMods, mods...) } func (f *Factory) ClearBaseFieldseekerQamosquitoinspectionMods() { f.baseFieldseekerQamosquitoinspectionMods = nil } func (f *Factory) AddBaseFieldseekerQamosquitoinspectionMod(mods ...FieldseekerQamosquitoinspectionMod) { f.baseFieldseekerQamosquitoinspectionMods = append(f.baseFieldseekerQamosquitoinspectionMods, mods...) } func (f *Factory) ClearBaseFieldseekerRodentlocationMods() { f.baseFieldseekerRodentlocationMods = nil } func (f *Factory) AddBaseFieldseekerRodentlocationMod(mods ...FieldseekerRodentlocationMod) { f.baseFieldseekerRodentlocationMods = append(f.baseFieldseekerRodentlocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerSamplecollectionMods() { f.baseFieldseekerSamplecollectionMods = nil } func (f *Factory) AddBaseFieldseekerSamplecollectionMod(mods ...FieldseekerSamplecollectionMod) { f.baseFieldseekerSamplecollectionMods = append(f.baseFieldseekerSamplecollectionMods, mods...) } func (f *Factory) ClearBaseFieldseekerSamplelocationMods() { f.baseFieldseekerSamplelocationMods = nil } func (f *Factory) AddBaseFieldseekerSamplelocationMod(mods ...FieldseekerSamplelocationMod) { f.baseFieldseekerSamplelocationMods = append(f.baseFieldseekerSamplelocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerServicerequestMods() { f.baseFieldseekerServicerequestMods = nil } func (f *Factory) AddBaseFieldseekerServicerequestMod(mods ...FieldseekerServicerequestMod) { f.baseFieldseekerServicerequestMods = append(f.baseFieldseekerServicerequestMods, mods...) } func (f *Factory) ClearBaseFieldseekerSpeciesabundanceMods() { f.baseFieldseekerSpeciesabundanceMods = nil } func (f *Factory) AddBaseFieldseekerSpeciesabundanceMod(mods ...FieldseekerSpeciesabundanceMod) { f.baseFieldseekerSpeciesabundanceMods = append(f.baseFieldseekerSpeciesabundanceMods, mods...) } func (f *Factory) ClearBaseFieldseekerStormdrainMods() { f.baseFieldseekerStormdrainMods = nil } func (f *Factory) AddBaseFieldseekerStormdrainMod(mods ...FieldseekerStormdrainMod) { f.baseFieldseekerStormdrainMods = append(f.baseFieldseekerStormdrainMods, mods...) } func (f *Factory) ClearBaseFieldseekerTimecardMods() { f.baseFieldseekerTimecardMods = nil } func (f *Factory) AddBaseFieldseekerTimecardMod(mods ...FieldseekerTimecardMod) { f.baseFieldseekerTimecardMods = append(f.baseFieldseekerTimecardMods, mods...) } func (f *Factory) ClearBaseFieldseekerTrapdatumMods() { f.baseFieldseekerTrapdatumMods = nil } func (f *Factory) AddBaseFieldseekerTrapdatumMod(mods ...FieldseekerTrapdatumMod) { f.baseFieldseekerTrapdatumMods = append(f.baseFieldseekerTrapdatumMods, mods...) } func (f *Factory) ClearBaseFieldseekerTraplocationMods() { f.baseFieldseekerTraplocationMods = nil } func (f *Factory) AddBaseFieldseekerTraplocationMod(mods ...FieldseekerTraplocationMod) { f.baseFieldseekerTraplocationMods = append(f.baseFieldseekerTraplocationMods, mods...) } func (f *Factory) ClearBaseFieldseekerTreatmentMods() { f.baseFieldseekerTreatmentMods = nil } func (f *Factory) AddBaseFieldseekerTreatmentMod(mods ...FieldseekerTreatmentMod) { f.baseFieldseekerTreatmentMods = append(f.baseFieldseekerTreatmentMods, mods...) } func (f *Factory) ClearBaseFieldseekerTreatmentareaMods() { f.baseFieldseekerTreatmentareaMods = nil } func (f *Factory) AddBaseFieldseekerTreatmentareaMod(mods ...FieldseekerTreatmentareaMod) { f.baseFieldseekerTreatmentareaMods = append(f.baseFieldseekerTreatmentareaMods, mods...) } func (f *Factory) ClearBaseFieldseekerZoneMods() { f.baseFieldseekerZoneMods = nil } func (f *Factory) AddBaseFieldseekerZoneMod(mods ...FieldseekerZoneMod) { f.baseFieldseekerZoneMods = append(f.baseFieldseekerZoneMods, mods...) } func (f *Factory) ClearBaseFieldseekerZones2Mods() { f.baseFieldseekerZones2Mods = nil } func (f *Factory) AddBaseFieldseekerZones2Mod(mods ...FieldseekerZones2Mod) { f.baseFieldseekerZones2Mods = append(f.baseFieldseekerZones2Mods, mods...) } func (f *Factory) ClearBaseFieldseekerSyncMods() { f.baseFieldseekerSyncMods = nil } func (f *Factory) AddBaseFieldseekerSyncMod(mods ...FieldseekerSyncMod) { f.baseFieldseekerSyncMods = append(f.baseFieldseekerSyncMods, mods...) } func (f *Factory) ClearBaseGeographyColumnMods() { f.baseGeographyColumnMods = nil } func (f *Factory) AddBaseGeographyColumnMod(mods ...GeographyColumnMod) { f.baseGeographyColumnMods = append(f.baseGeographyColumnMods, mods...) } func (f *Factory) ClearBaseGeometryColumnMods() { f.baseGeometryColumnMods = nil } func (f *Factory) AddBaseGeometryColumnMod(mods ...GeometryColumnMod) { f.baseGeometryColumnMods = append(f.baseGeometryColumnMods, mods...) } func (f *Factory) ClearBaseGooseDBVersionMods() { f.baseGooseDBVersionMods = nil } func (f *Factory) AddBaseGooseDBVersionMod(mods ...GooseDBVersionMod) { f.baseGooseDBVersionMods = append(f.baseGooseDBVersionMods, mods...) } func (f *Factory) ClearBaseH3AggregationMods() { f.baseH3AggregationMods = nil } func (f *Factory) AddBaseH3AggregationMod(mods ...H3AggregationMod) { f.baseH3AggregationMods = append(f.baseH3AggregationMods, mods...) } func (f *Factory) ClearBaseNoteAudioMods() { f.baseNoteAudioMods = nil } func (f *Factory) AddBaseNoteAudioMod(mods ...NoteAudioMod) { f.baseNoteAudioMods = append(f.baseNoteAudioMods, mods...) } func (f *Factory) ClearBaseNoteAudioBreadcrumbMods() { f.baseNoteAudioBreadcrumbMods = nil } func (f *Factory) AddBaseNoteAudioBreadcrumbMod(mods ...NoteAudioBreadcrumbMod) { f.baseNoteAudioBreadcrumbMods = append(f.baseNoteAudioBreadcrumbMods, mods...) } func (f *Factory) ClearBaseNoteAudioDatumMods() { f.baseNoteAudioDatumMods = nil } func (f *Factory) AddBaseNoteAudioDatumMod(mods ...NoteAudioDatumMod) { f.baseNoteAudioDatumMods = append(f.baseNoteAudioDatumMods, mods...) } func (f *Factory) ClearBaseNoteImageMods() { f.baseNoteImageMods = nil } func (f *Factory) AddBaseNoteImageMod(mods ...NoteImageMod) { f.baseNoteImageMods = append(f.baseNoteImageMods, mods...) } func (f *Factory) ClearBaseNoteImageBreadcrumbMods() { f.baseNoteImageBreadcrumbMods = nil } func (f *Factory) AddBaseNoteImageBreadcrumbMod(mods ...NoteImageBreadcrumbMod) { f.baseNoteImageBreadcrumbMods = append(f.baseNoteImageBreadcrumbMods, mods...) } func (f *Factory) ClearBaseNoteImageDatumMods() { f.baseNoteImageDatumMods = nil } func (f *Factory) AddBaseNoteImageDatumMod(mods ...NoteImageDatumMod) { f.baseNoteImageDatumMods = append(f.baseNoteImageDatumMods, mods...) } func (f *Factory) ClearBaseNotificationMods() { f.baseNotificationMods = nil } func (f *Factory) AddBaseNotificationMod(mods ...NotificationMod) { f.baseNotificationMods = append(f.baseNotificationMods, mods...) } func (f *Factory) ClearBaseOauthTokenMods() { f.baseOauthTokenMods = nil } func (f *Factory) AddBaseOauthTokenMod(mods ...OauthTokenMod) { f.baseOauthTokenMods = append(f.baseOauthTokenMods, mods...) } func (f *Factory) ClearBaseOrganizationMods() { f.baseOrganizationMods = nil } func (f *Factory) AddBaseOrganizationMod(mods ...OrganizationMod) { f.baseOrganizationMods = append(f.baseOrganizationMods, mods...) } func (f *Factory) ClearBasePublicreportQuickMods() { f.basePublicreportQuickMods = nil } func (f *Factory) AddBasePublicreportQuickMod(mods ...PublicreportQuickMod) { f.basePublicreportQuickMods = append(f.basePublicreportQuickMods, mods...) } func (f *Factory) ClearBasePublicreportQuickPhotoMods() { f.basePublicreportQuickPhotoMods = nil } func (f *Factory) AddBasePublicreportQuickPhotoMod(mods ...PublicreportQuickPhotoMod) { f.basePublicreportQuickPhotoMods = append(f.basePublicreportQuickPhotoMods, mods...) } func (f *Factory) ClearBaseRasterColumnMods() { f.baseRasterColumnMods = nil } func (f *Factory) AddBaseRasterColumnMod(mods ...RasterColumnMod) { f.baseRasterColumnMods = append(f.baseRasterColumnMods, mods...) } func (f *Factory) ClearBaseRasterOverviewMods() { f.baseRasterOverviewMods = nil } func (f *Factory) AddBaseRasterOverviewMod(mods ...RasterOverviewMod) { f.baseRasterOverviewMods = append(f.baseRasterOverviewMods, mods...) } func (f *Factory) ClearBaseSessionMods() { f.baseSessionMods = nil } func (f *Factory) AddBaseSessionMod(mods ...SessionMod) { f.baseSessionMods = append(f.baseSessionMods, mods...) } func (f *Factory) ClearBaseSpatialRefSyMods() { f.baseSpatialRefSyMods = nil } func (f *Factory) AddBaseSpatialRefSyMod(mods ...SpatialRefSyMod) { f.baseSpatialRefSyMods = append(f.baseSpatialRefSyMods, mods...) } func (f *Factory) ClearBaseUserMods() { f.baseUserMods = nil } func (f *Factory) AddBaseUserMod(mods ...UserMod) { f.baseUserMods = append(f.baseUserMods, mods...) }