// 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" "testing" "time" models "github.com/Gleipnir-Technology/nidus-sync/db/models" "github.com/aarondl/opt/null" "github.com/aarondl/opt/omit" "github.com/aarondl/opt/omitnull" "github.com/google/uuid" "github.com/jaswdr/faker/v2" "github.com/stephenafamo/bob" "github.com/stephenafamo/bob/types" ) type FieldseekerPointlocationMod interface { Apply(context.Context, *FieldseekerPointlocationTemplate) } type FieldseekerPointlocationModFunc func(context.Context, *FieldseekerPointlocationTemplate) func (f FieldseekerPointlocationModFunc) Apply(ctx context.Context, n *FieldseekerPointlocationTemplate) { f(ctx, n) } type FieldseekerPointlocationModSlice []FieldseekerPointlocationMod func (mods FieldseekerPointlocationModSlice) Apply(ctx context.Context, n *FieldseekerPointlocationTemplate) { for _, f := range mods { f.Apply(ctx, n) } } // FieldseekerPointlocationTemplate is an object representing the database table. // all columns are optional and should be set by mods type FieldseekerPointlocationTemplate struct { Objectid func() int64 Name func() null.Val[string] Zone func() null.Val[string] Habitat func() null.Val[string] Priority func() null.Val[string] Usetype func() null.Val[string] Active func() null.Val[int16] Description func() null.Val[string] Accessdesc func() null.Val[string] Comments func() null.Val[string] Symbology func() null.Val[string] Externalid func() null.Val[string] Nextactiondatescheduled func() null.Val[time.Time] Larvinspectinterval func() null.Val[int16] Zone2 func() null.Val[string] Locationnumber func() null.Val[int32] Globalid func() uuid.UUID Stype func() null.Val[string] Lastinspectdate func() null.Val[time.Time] Lastinspectbreeding func() null.Val[string] Lastinspectavglarvae func() null.Val[float64] Lastinspectavgpupae func() null.Val[float64] Lastinspectlstages func() null.Val[string] Lastinspectactiontaken func() null.Val[string] Lastinspectfieldspecies func() null.Val[string] Lasttreatdate func() null.Val[time.Time] Lasttreatproduct func() null.Val[string] Lasttreatqty func() null.Val[float64] Lasttreatqtyunit func() null.Val[string] Lastinspectactivity func() null.Val[string] Lasttreatactivity func() null.Val[string] Lastinspectconditions func() null.Val[string] Waterorigin func() null.Val[string] X func() null.Val[float64] Y func() null.Val[float64] Assignedtech func() null.Val[string] Creationdate func() null.Val[time.Time] Creator func() null.Val[string] Editdate func() null.Val[time.Time] Editor func() null.Val[string] Jurisdiction func() null.Val[string] DeactivateReason func() null.Val[string] Scalarpriority func() null.Val[int32] Sourcestatus func() null.Val[string] Geometry func() types.JSON[json.RawMessage] Geospatial func() null.Val[string] Version func() int32 OrganizationID func() int32 H3cell func() null.Val[string] r fieldseekerPointlocationR f *Factory alreadyPersisted bool } type fieldseekerPointlocationR struct { Organization *fieldseekerPointlocationROrganizationR } type fieldseekerPointlocationROrganizationR struct { o *OrganizationTemplate } // Apply mods to the FieldseekerPointlocationTemplate func (o *FieldseekerPointlocationTemplate) Apply(ctx context.Context, mods ...FieldseekerPointlocationMod) { for _, mod := range mods { mod.Apply(ctx, o) } } // setModelRels creates and sets the relationships on *models.FieldseekerPointlocation // according to the relationships in the template. Nothing is inserted into the db func (t FieldseekerPointlocationTemplate) setModelRels(o *models.FieldseekerPointlocation) { if t.r.Organization != nil { rel := t.r.Organization.o.Build() rel.R.Pointlocations = append(rel.R.Pointlocations, o) o.OrganizationID = rel.ID // h2 o.R.Organization = rel } } // BuildSetter returns an *models.FieldseekerPointlocationSetter // this does nothing with the relationship templates func (o FieldseekerPointlocationTemplate) BuildSetter() *models.FieldseekerPointlocationSetter { m := &models.FieldseekerPointlocationSetter{} if o.Objectid != nil { val := o.Objectid() m.Objectid = omit.From(val) } if o.Name != nil { val := o.Name() m.Name = omitnull.FromNull(val) } if o.Zone != nil { val := o.Zone() m.Zone = omitnull.FromNull(val) } if o.Habitat != nil { val := o.Habitat() m.Habitat = omitnull.FromNull(val) } if o.Priority != nil { val := o.Priority() m.Priority = omitnull.FromNull(val) } if o.Usetype != nil { val := o.Usetype() m.Usetype = omitnull.FromNull(val) } if o.Active != nil { val := o.Active() m.Active = omitnull.FromNull(val) } if o.Description != nil { val := o.Description() m.Description = omitnull.FromNull(val) } if o.Accessdesc != nil { val := o.Accessdesc() m.Accessdesc = omitnull.FromNull(val) } if o.Comments != nil { val := o.Comments() m.Comments = omitnull.FromNull(val) } if o.Symbology != nil { val := o.Symbology() m.Symbology = omitnull.FromNull(val) } if o.Externalid != nil { val := o.Externalid() m.Externalid = omitnull.FromNull(val) } if o.Nextactiondatescheduled != nil { val := o.Nextactiondatescheduled() m.Nextactiondatescheduled = omitnull.FromNull(val) } if o.Larvinspectinterval != nil { val := o.Larvinspectinterval() m.Larvinspectinterval = omitnull.FromNull(val) } if o.Zone2 != nil { val := o.Zone2() m.Zone2 = omitnull.FromNull(val) } if o.Locationnumber != nil { val := o.Locationnumber() m.Locationnumber = omitnull.FromNull(val) } if o.Globalid != nil { val := o.Globalid() m.Globalid = omit.From(val) } if o.Stype != nil { val := o.Stype() m.Stype = omitnull.FromNull(val) } if o.Lastinspectdate != nil { val := o.Lastinspectdate() m.Lastinspectdate = omitnull.FromNull(val) } if o.Lastinspectbreeding != nil { val := o.Lastinspectbreeding() m.Lastinspectbreeding = omitnull.FromNull(val) } if o.Lastinspectavglarvae != nil { val := o.Lastinspectavglarvae() m.Lastinspectavglarvae = omitnull.FromNull(val) } if o.Lastinspectavgpupae != nil { val := o.Lastinspectavgpupae() m.Lastinspectavgpupae = omitnull.FromNull(val) } if o.Lastinspectlstages != nil { val := o.Lastinspectlstages() m.Lastinspectlstages = omitnull.FromNull(val) } if o.Lastinspectactiontaken != nil { val := o.Lastinspectactiontaken() m.Lastinspectactiontaken = omitnull.FromNull(val) } if o.Lastinspectfieldspecies != nil { val := o.Lastinspectfieldspecies() m.Lastinspectfieldspecies = omitnull.FromNull(val) } if o.Lasttreatdate != nil { val := o.Lasttreatdate() m.Lasttreatdate = omitnull.FromNull(val) } if o.Lasttreatproduct != nil { val := o.Lasttreatproduct() m.Lasttreatproduct = omitnull.FromNull(val) } if o.Lasttreatqty != nil { val := o.Lasttreatqty() m.Lasttreatqty = omitnull.FromNull(val) } if o.Lasttreatqtyunit != nil { val := o.Lasttreatqtyunit() m.Lasttreatqtyunit = omitnull.FromNull(val) } if o.Lastinspectactivity != nil { val := o.Lastinspectactivity() m.Lastinspectactivity = omitnull.FromNull(val) } if o.Lasttreatactivity != nil { val := o.Lasttreatactivity() m.Lasttreatactivity = omitnull.FromNull(val) } if o.Lastinspectconditions != nil { val := o.Lastinspectconditions() m.Lastinspectconditions = omitnull.FromNull(val) } if o.Waterorigin != nil { val := o.Waterorigin() m.Waterorigin = omitnull.FromNull(val) } if o.X != nil { val := o.X() m.X = omitnull.FromNull(val) } if o.Y != nil { val := o.Y() m.Y = omitnull.FromNull(val) } if o.Assignedtech != nil { val := o.Assignedtech() m.Assignedtech = omitnull.FromNull(val) } if o.Creationdate != nil { val := o.Creationdate() m.Creationdate = omitnull.FromNull(val) } if o.Creator != nil { val := o.Creator() m.Creator = omitnull.FromNull(val) } if o.Editdate != nil { val := o.Editdate() m.Editdate = omitnull.FromNull(val) } if o.Editor != nil { val := o.Editor() m.Editor = omitnull.FromNull(val) } if o.Jurisdiction != nil { val := o.Jurisdiction() m.Jurisdiction = omitnull.FromNull(val) } if o.DeactivateReason != nil { val := o.DeactivateReason() m.DeactivateReason = omitnull.FromNull(val) } if o.Scalarpriority != nil { val := o.Scalarpriority() m.Scalarpriority = omitnull.FromNull(val) } if o.Sourcestatus != nil { val := o.Sourcestatus() m.Sourcestatus = omitnull.FromNull(val) } if o.Geometry != nil { val := o.Geometry() m.Geometry = omit.From(val) } if o.Geospatial != nil { val := o.Geospatial() m.Geospatial = omitnull.FromNull(val) } if o.Version != nil { val := o.Version() m.Version = omit.From(val) } if o.OrganizationID != nil { val := o.OrganizationID() m.OrganizationID = omit.From(val) } return m } // BuildManySetter returns an []*models.FieldseekerPointlocationSetter // this does nothing with the relationship templates func (o FieldseekerPointlocationTemplate) BuildManySetter(number int) []*models.FieldseekerPointlocationSetter { m := make([]*models.FieldseekerPointlocationSetter, number) for i := range m { m[i] = o.BuildSetter() } return m } // Build returns an *models.FieldseekerPointlocation // Related objects are also created and placed in the .R field // NOTE: Objects are not inserted into the database. Use FieldseekerPointlocationTemplate.Create func (o FieldseekerPointlocationTemplate) Build() *models.FieldseekerPointlocation { m := &models.FieldseekerPointlocation{} if o.Objectid != nil { m.Objectid = o.Objectid() } if o.Name != nil { m.Name = o.Name() } if o.Zone != nil { m.Zone = o.Zone() } if o.Habitat != nil { m.Habitat = o.Habitat() } if o.Priority != nil { m.Priority = o.Priority() } if o.Usetype != nil { m.Usetype = o.Usetype() } if o.Active != nil { m.Active = o.Active() } if o.Description != nil { m.Description = o.Description() } if o.Accessdesc != nil { m.Accessdesc = o.Accessdesc() } if o.Comments != nil { m.Comments = o.Comments() } if o.Symbology != nil { m.Symbology = o.Symbology() } if o.Externalid != nil { m.Externalid = o.Externalid() } if o.Nextactiondatescheduled != nil { m.Nextactiondatescheduled = o.Nextactiondatescheduled() } if o.Larvinspectinterval != nil { m.Larvinspectinterval = o.Larvinspectinterval() } if o.Zone2 != nil { m.Zone2 = o.Zone2() } if o.Locationnumber != nil { m.Locationnumber = o.Locationnumber() } if o.Globalid != nil { m.Globalid = o.Globalid() } if o.Stype != nil { m.Stype = o.Stype() } if o.Lastinspectdate != nil { m.Lastinspectdate = o.Lastinspectdate() } if o.Lastinspectbreeding != nil { m.Lastinspectbreeding = o.Lastinspectbreeding() } if o.Lastinspectavglarvae != nil { m.Lastinspectavglarvae = o.Lastinspectavglarvae() } if o.Lastinspectavgpupae != nil { m.Lastinspectavgpupae = o.Lastinspectavgpupae() } if o.Lastinspectlstages != nil { m.Lastinspectlstages = o.Lastinspectlstages() } if o.Lastinspectactiontaken != nil { m.Lastinspectactiontaken = o.Lastinspectactiontaken() } if o.Lastinspectfieldspecies != nil { m.Lastinspectfieldspecies = o.Lastinspectfieldspecies() } if o.Lasttreatdate != nil { m.Lasttreatdate = o.Lasttreatdate() } if o.Lasttreatproduct != nil { m.Lasttreatproduct = o.Lasttreatproduct() } if o.Lasttreatqty != nil { m.Lasttreatqty = o.Lasttreatqty() } if o.Lasttreatqtyunit != nil { m.Lasttreatqtyunit = o.Lasttreatqtyunit() } if o.Lastinspectactivity != nil { m.Lastinspectactivity = o.Lastinspectactivity() } if o.Lasttreatactivity != nil { m.Lasttreatactivity = o.Lasttreatactivity() } if o.Lastinspectconditions != nil { m.Lastinspectconditions = o.Lastinspectconditions() } if o.Waterorigin != nil { m.Waterorigin = o.Waterorigin() } if o.X != nil { m.X = o.X() } if o.Y != nil { m.Y = o.Y() } if o.Assignedtech != nil { m.Assignedtech = o.Assignedtech() } if o.Creationdate != nil { m.Creationdate = o.Creationdate() } if o.Creator != nil { m.Creator = o.Creator() } if o.Editdate != nil { m.Editdate = o.Editdate() } if o.Editor != nil { m.Editor = o.Editor() } if o.Jurisdiction != nil { m.Jurisdiction = o.Jurisdiction() } if o.DeactivateReason != nil { m.DeactivateReason = o.DeactivateReason() } if o.Scalarpriority != nil { m.Scalarpriority = o.Scalarpriority() } if o.Sourcestatus != nil { m.Sourcestatus = o.Sourcestatus() } if o.Geometry != nil { m.Geometry = o.Geometry() } if o.Geospatial != nil { m.Geospatial = o.Geospatial() } if o.Version != nil { m.Version = o.Version() } if o.OrganizationID != nil { m.OrganizationID = o.OrganizationID() } if o.H3cell != nil { m.H3cell = o.H3cell() } o.setModelRels(m) return m } // BuildMany returns an models.FieldseekerPointlocationSlice // Related objects are also created and placed in the .R field // NOTE: Objects are not inserted into the database. Use FieldseekerPointlocationTemplate.CreateMany func (o FieldseekerPointlocationTemplate) BuildMany(number int) models.FieldseekerPointlocationSlice { m := make(models.FieldseekerPointlocationSlice, number) for i := range m { m[i] = o.Build() } return m } func ensureCreatableFieldseekerPointlocation(m *models.FieldseekerPointlocationSetter) { if !(m.Globalid.IsValue()) { val := random_uuid_UUID(nil) m.Globalid = omit.From(val) } if !(m.Geometry.IsValue()) { val := random_types_JSON_json_RawMessage_(nil) m.Geometry = omit.From(val) } if !(m.OrganizationID.IsValue()) { val := random_int32(nil) m.OrganizationID = omit.From(val) } } // insertOptRels creates and inserts any optional the relationships on *models.FieldseekerPointlocation // according to the relationships in the template. // any required relationship should have already exist on the model func (o *FieldseekerPointlocationTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerPointlocation) error { var err error return err } // Create builds a fieldseekerPointlocation and inserts it into the database // Relations objects are also inserted and placed in the .R field func (o *FieldseekerPointlocationTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerPointlocation, error) { var err error opt := o.BuildSetter() ensureCreatableFieldseekerPointlocation(opt) if o.r.Organization == nil { FieldseekerPointlocationMods.WithNewOrganization().Apply(ctx, o) } var rel0 *models.Organization if o.r.Organization.o.alreadyPersisted { rel0 = o.r.Organization.o.Build() } else { rel0, err = o.r.Organization.o.Create(ctx, exec) if err != nil { return nil, err } } opt.OrganizationID = omit.From(rel0.ID) m, err := models.FieldseekerPointlocations.Insert(opt).One(ctx, exec) if err != nil { return nil, err } m.R.Organization = rel0 if err := o.insertOptRels(ctx, exec, m); err != nil { return nil, err } return m, err } // MustCreate builds a fieldseekerPointlocation and inserts it into the database // Relations objects are also inserted and placed in the .R field // panics if an error occurs func (o *FieldseekerPointlocationTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerPointlocation { m, err := o.Create(ctx, exec) if err != nil { panic(err) } return m } // CreateOrFail builds a fieldseekerPointlocation and inserts it into the database // Relations objects are also inserted and placed in the .R field // It calls `tb.Fatal(err)` on the test/benchmark if an error occurs func (o *FieldseekerPointlocationTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerPointlocation { tb.Helper() m, err := o.Create(ctx, exec) if err != nil { tb.Fatal(err) return nil } return m } // CreateMany builds multiple fieldseekerPointlocations and inserts them into the database // Relations objects are also inserted and placed in the .R field func (o FieldseekerPointlocationTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerPointlocationSlice, error) { var err error m := make(models.FieldseekerPointlocationSlice, number) for i := range m { m[i], err = o.Create(ctx, exec) if err != nil { return nil, err } } return m, nil } // MustCreateMany builds multiple fieldseekerPointlocations and inserts them into the database // Relations objects are also inserted and placed in the .R field // panics if an error occurs func (o FieldseekerPointlocationTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerPointlocationSlice { m, err := o.CreateMany(ctx, exec, number) if err != nil { panic(err) } return m } // CreateManyOrFail builds multiple fieldseekerPointlocations and inserts them into the database // Relations objects are also inserted and placed in the .R field // It calls `tb.Fatal(err)` on the test/benchmark if an error occurs func (o FieldseekerPointlocationTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerPointlocationSlice { tb.Helper() m, err := o.CreateMany(ctx, exec, number) if err != nil { tb.Fatal(err) return nil } return m } // FieldseekerPointlocation has methods that act as mods for the FieldseekerPointlocationTemplate var FieldseekerPointlocationMods fieldseekerPointlocationMods type fieldseekerPointlocationMods struct{} func (m fieldseekerPointlocationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModSlice{ FieldseekerPointlocationMods.RandomObjectid(f), FieldseekerPointlocationMods.RandomName(f), FieldseekerPointlocationMods.RandomZone(f), FieldseekerPointlocationMods.RandomHabitat(f), FieldseekerPointlocationMods.RandomPriority(f), FieldseekerPointlocationMods.RandomUsetype(f), FieldseekerPointlocationMods.RandomActive(f), FieldseekerPointlocationMods.RandomDescription(f), FieldseekerPointlocationMods.RandomAccessdesc(f), FieldseekerPointlocationMods.RandomComments(f), FieldseekerPointlocationMods.RandomSymbology(f), FieldseekerPointlocationMods.RandomExternalid(f), FieldseekerPointlocationMods.RandomNextactiondatescheduled(f), FieldseekerPointlocationMods.RandomLarvinspectinterval(f), FieldseekerPointlocationMods.RandomZone2(f), FieldseekerPointlocationMods.RandomLocationnumber(f), FieldseekerPointlocationMods.RandomGlobalid(f), FieldseekerPointlocationMods.RandomStype(f), FieldseekerPointlocationMods.RandomLastinspectdate(f), FieldseekerPointlocationMods.RandomLastinspectbreeding(f), FieldseekerPointlocationMods.RandomLastinspectavglarvae(f), FieldseekerPointlocationMods.RandomLastinspectavgpupae(f), FieldseekerPointlocationMods.RandomLastinspectlstages(f), FieldseekerPointlocationMods.RandomLastinspectactiontaken(f), FieldseekerPointlocationMods.RandomLastinspectfieldspecies(f), FieldseekerPointlocationMods.RandomLasttreatdate(f), FieldseekerPointlocationMods.RandomLasttreatproduct(f), FieldseekerPointlocationMods.RandomLasttreatqty(f), FieldseekerPointlocationMods.RandomLasttreatqtyunit(f), FieldseekerPointlocationMods.RandomLastinspectactivity(f), FieldseekerPointlocationMods.RandomLasttreatactivity(f), FieldseekerPointlocationMods.RandomLastinspectconditions(f), FieldseekerPointlocationMods.RandomWaterorigin(f), FieldseekerPointlocationMods.RandomX(f), FieldseekerPointlocationMods.RandomY(f), FieldseekerPointlocationMods.RandomAssignedtech(f), FieldseekerPointlocationMods.RandomCreationdate(f), FieldseekerPointlocationMods.RandomCreator(f), FieldseekerPointlocationMods.RandomEditdate(f), FieldseekerPointlocationMods.RandomEditor(f), FieldseekerPointlocationMods.RandomJurisdiction(f), FieldseekerPointlocationMods.RandomDeactivateReason(f), FieldseekerPointlocationMods.RandomScalarpriority(f), FieldseekerPointlocationMods.RandomSourcestatus(f), FieldseekerPointlocationMods.RandomGeometry(f), FieldseekerPointlocationMods.RandomGeospatial(f), FieldseekerPointlocationMods.RandomVersion(f), FieldseekerPointlocationMods.RandomOrganizationID(f), FieldseekerPointlocationMods.RandomH3cell(f), } } // Set the model columns to this value func (m fieldseekerPointlocationMods) Objectid(val int64) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Objectid = func() int64 { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) ObjectidFunc(f func() int64) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Objectid = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetObjectid() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Objectid = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used func (m fieldseekerPointlocationMods) RandomObjectid(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Objectid = func() int64 { return random_int64(f) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Name(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Name = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) NameFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Name = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetName() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Name = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomName(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Name = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomNameNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Name = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Zone(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) ZoneFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetZone() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomZone(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomZoneNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Habitat(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Habitat = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) HabitatFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Habitat = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetHabitat() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Habitat = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomHabitat(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Habitat = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomHabitatNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Habitat = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Priority(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Priority = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) PriorityFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Priority = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetPriority() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Priority = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomPriority(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Priority = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomPriorityNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Priority = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Usetype(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Usetype = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) UsetypeFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Usetype = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetUsetype() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Usetype = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomUsetype(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Usetype = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomUsetypeNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Usetype = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Active(val null.Val[int16]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Active = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) ActiveFunc(f func() null.Val[int16]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Active = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetActive() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Active = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomActive(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Active = func() null.Val[int16] { if f == nil { f = &defaultFaker } val := random_int16(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomActiveNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Active = func() null.Val[int16] { if f == nil { f = &defaultFaker } val := random_int16(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Description(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Description = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) DescriptionFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Description = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetDescription() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Description = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomDescription(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Description = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomDescriptionNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Description = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Accessdesc(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Accessdesc = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) AccessdescFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Accessdesc = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetAccessdesc() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Accessdesc = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomAccessdesc(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Accessdesc = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomAccessdescNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Accessdesc = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Comments(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Comments = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) CommentsFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Comments = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetComments() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Comments = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomComments(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Comments = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Comments = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Symbology(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Symbology = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) SymbologyFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Symbology = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetSymbology() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Symbology = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomSymbology(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Symbology = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "10") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomSymbologyNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Symbology = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "10") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Externalid(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Externalid = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) ExternalidFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Externalid = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetExternalid() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Externalid = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomExternalid(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Externalid = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomExternalidNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Externalid = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Nextactiondatescheduled(val null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Nextactiondatescheduled = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) NextactiondatescheduledFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Nextactiondatescheduled = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetNextactiondatescheduled() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Nextactiondatescheduled = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomNextactiondatescheduled(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Nextactiondatescheduled = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomNextactiondatescheduledNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Nextactiondatescheduled = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Larvinspectinterval(val null.Val[int16]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Larvinspectinterval = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LarvinspectintervalFunc(f func() null.Val[int16]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Larvinspectinterval = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLarvinspectinterval() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Larvinspectinterval = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLarvinspectinterval(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Larvinspectinterval = func() null.Val[int16] { if f == nil { f = &defaultFaker } val := random_int16(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLarvinspectintervalNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Larvinspectinterval = func() null.Val[int16] { if f == nil { f = &defaultFaker } val := random_int16(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Zone2(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone2 = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) Zone2Func(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone2 = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetZone2() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone2 = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomZone2(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone2 = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomZone2NotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Zone2 = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Locationnumber(val null.Val[int32]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Locationnumber = func() null.Val[int32] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LocationnumberFunc(f func() null.Val[int32]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Locationnumber = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLocationnumber() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Locationnumber = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLocationnumber(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Locationnumber = func() null.Val[int32] { if f == nil { f = &defaultFaker } val := random_int32(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLocationnumberNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Locationnumber = func() null.Val[int32] { if f == nil { f = &defaultFaker } val := random_int32(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Globalid(val uuid.UUID) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Globalid = func() uuid.UUID { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) GlobalidFunc(f func() uuid.UUID) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Globalid = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetGlobalid() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Globalid = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used func (m fieldseekerPointlocationMods) RandomGlobalid(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Globalid = func() uuid.UUID { return random_uuid_UUID(f) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Stype(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Stype = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) StypeFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Stype = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetStype() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Stype = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomStype(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Stype = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "3") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomStypeNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Stype = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "3") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectdate(val null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectdate = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectdate() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectdate = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectdate(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectdateNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectbreeding(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectbreeding = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectbreedingFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectbreeding = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectbreeding() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectbreeding = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectbreeding(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectbreeding = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectbreedingNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectbreeding = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectavglarvae(val null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavglarvae = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectavglarvaeFunc(f func() null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavglarvae = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectavglarvae() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavglarvae = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectavglarvae(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavglarvae = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectavglarvaeNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavglarvae = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectavgpupae(val null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavgpupae = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectavgpupaeFunc(f func() null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavgpupae = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectavgpupae() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavgpupae = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectavgpupae(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavgpupae = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectavgpupaeNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectavgpupae = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectlstages(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectlstages = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectlstagesFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectlstages = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectlstages() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectlstages = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectlstages(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectlstages = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectlstagesNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectlstages = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectactiontaken(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactiontaken = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectactiontakenFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactiontaken = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectactiontaken() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactiontaken = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectactiontaken(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactiontaken = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectactiontakenNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactiontaken = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectfieldspecies(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectfieldspecies = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectfieldspeciesFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectfieldspecies = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectfieldspecies() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectfieldspecies = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectfieldspecies(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectfieldspecies = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectfieldspeciesNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectfieldspecies = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lasttreatdate(val null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LasttreatdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatdate = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLasttreatdate() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatdate = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLasttreatdate(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLasttreatdateNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lasttreatproduct(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatproduct = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LasttreatproductFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatproduct = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLasttreatproduct() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatproduct = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLasttreatproduct(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatproduct = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLasttreatproductNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatproduct = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lasttreatqty(val null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqty = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LasttreatqtyFunc(f func() null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqty = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLasttreatqty() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqty = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLasttreatqty(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqty = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLasttreatqtyNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqty = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lasttreatqtyunit(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqtyunit = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LasttreatqtyunitFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqtyunit = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLasttreatqtyunit() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqtyunit = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLasttreatqtyunit(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqtyunit = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "10") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLasttreatqtyunitNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatqtyunit = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "10") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectactivity(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactivity = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectactivityFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactivity = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectactivity() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactivity = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectactivity(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactivity = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectactivityNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectactivity = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lasttreatactivity(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatactivity = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LasttreatactivityFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatactivity = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLasttreatactivity() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatactivity = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLasttreatactivity(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatactivity = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLasttreatactivityNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lasttreatactivity = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Lastinspectconditions(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectconditions = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) LastinspectconditionsFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectconditions = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetLastinspectconditions() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectconditions = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomLastinspectconditions(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectconditions = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomLastinspectconditionsNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Lastinspectconditions = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "250") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Waterorigin(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Waterorigin = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) WateroriginFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Waterorigin = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetWaterorigin() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Waterorigin = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomWaterorigin(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Waterorigin = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomWateroriginNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Waterorigin = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "50") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) X(val null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.X = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) XFunc(f func() null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.X = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetX() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.X = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomX(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.X = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomXNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.X = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Y(val null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Y = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) YFunc(f func() null.Val[float64]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Y = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetY() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Y = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomY(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Y = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomYNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Y = func() null.Val[float64] { if f == nil { f = &defaultFaker } val := random_float64(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Assignedtech(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Assignedtech = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) AssignedtechFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Assignedtech = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetAssignedtech() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Assignedtech = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomAssignedtech(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Assignedtech = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "256") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomAssignedtechNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Assignedtech = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "256") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Creationdate(val null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creationdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creationdate = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetCreationdate() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creationdate = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomCreationdate(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creationdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creationdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Creator(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creator = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) CreatorFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creator = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetCreator() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creator = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomCreator(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creator = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "128") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Creator = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "128") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Editdate(val null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editdate = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetEditdate() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editdate = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomEditdate(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editdate = func() null.Val[time.Time] { if f == nil { f = &defaultFaker } val := random_time_Time(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Editor(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editor = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) EditorFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editor = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetEditor() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editor = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomEditor(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editor = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "128") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomEditorNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Editor = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "128") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Jurisdiction(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Jurisdiction = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) JurisdictionFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Jurisdiction = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetJurisdiction() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Jurisdiction = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomJurisdiction(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Jurisdiction = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomJurisdictionNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Jurisdiction = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "25") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) DeactivateReason(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.DeactivateReason = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) DeactivateReasonFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.DeactivateReason = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetDeactivateReason() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.DeactivateReason = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomDeactivateReason(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.DeactivateReason = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "256") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomDeactivateReasonNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.DeactivateReason = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "256") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Scalarpriority(val null.Val[int32]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Scalarpriority = func() null.Val[int32] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) ScalarpriorityFunc(f func() null.Val[int32]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Scalarpriority = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetScalarpriority() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Scalarpriority = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomScalarpriority(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Scalarpriority = func() null.Val[int32] { if f == nil { f = &defaultFaker } val := random_int32(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomScalarpriorityNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Scalarpriority = func() null.Val[int32] { if f == nil { f = &defaultFaker } val := random_int32(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Sourcestatus(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Sourcestatus = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) SourcestatusFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Sourcestatus = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetSourcestatus() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Sourcestatus = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomSourcestatus(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Sourcestatus = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "255") return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomSourcestatusNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Sourcestatus = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "255") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geometry = func() types.JSON[json.RawMessage] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geometry = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetGeometry() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geometry = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used func (m fieldseekerPointlocationMods) RandomGeometry(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geometry = func() types.JSON[json.RawMessage] { return random_types_JSON_json_RawMessage_(f) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Geospatial(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geospatial = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) GeospatialFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geospatial = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetGeospatial() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geospatial = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomGeospatial(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geospatial = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Geospatial = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) Version(val int32) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Version = func() int32 { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) VersionFunc(f func() int32) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Version = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetVersion() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Version = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used func (m fieldseekerPointlocationMods) RandomVersion(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.Version = func() int32 { return random_int32(f) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) OrganizationID(val int32) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.OrganizationID = func() int32 { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) OrganizationIDFunc(f func() int32) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.OrganizationID = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetOrganizationID() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.OrganizationID = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used func (m fieldseekerPointlocationMods) RandomOrganizationID(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.OrganizationID = func() int32 { return random_int32(f) } }) } // Set the model columns to this value func (m fieldseekerPointlocationMods) H3cell(val null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.H3cell = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerPointlocationMods) H3cellFunc(f func() null.Val[string]) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.H3cell = f }) } // Clear any values for the column func (m fieldseekerPointlocationMods) UnsetH3cell() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.H3cell = nil }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is sometimes null func (m fieldseekerPointlocationMods) RandomH3cell(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.H3cell = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f) return null.From(val) } }) } // Generates a random value for the column using the given faker // if faker is nil, a default faker is used // The generated value is never null func (m fieldseekerPointlocationMods) RandomH3cellNotNull(f *faker.Faker) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) { o.H3cell = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f) return null.From(val) } }) } func (m fieldseekerPointlocationMods) WithParentsCascading() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) { if isDone, _ := fieldseekerPointlocationWithParentsCascadingCtx.Value(ctx); isDone { return } ctx = fieldseekerPointlocationWithParentsCascadingCtx.WithValue(ctx, true) { related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading()) m.WithOrganization(related).Apply(ctx, o) } }) } func (m fieldseekerPointlocationMods) WithOrganization(rel *OrganizationTemplate) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) { o.r.Organization = &fieldseekerPointlocationROrganizationR{ o: rel, } }) } func (m fieldseekerPointlocationMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) { related := o.f.NewOrganizationWithContext(ctx, mods...) m.WithOrganization(related).Apply(ctx, o) }) } func (m fieldseekerPointlocationMods) WithExistingOrganization(em *models.Organization) FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) { o.r.Organization = &fieldseekerPointlocationROrganizationR{ o: o.f.FromExistingOrganization(em), } }) } func (m fieldseekerPointlocationMods) WithoutOrganization() FieldseekerPointlocationMod { return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) { o.r.Organization = nil }) }