// 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 FieldseekerTreatmentMod interface { Apply(context.Context, *FieldseekerTreatmentTemplate) } type FieldseekerTreatmentModFunc func(context.Context, *FieldseekerTreatmentTemplate) func (f FieldseekerTreatmentModFunc) Apply(ctx context.Context, n *FieldseekerTreatmentTemplate) { f(ctx, n) } type FieldseekerTreatmentModSlice []FieldseekerTreatmentMod func (mods FieldseekerTreatmentModSlice) Apply(ctx context.Context, n *FieldseekerTreatmentTemplate) { for _, f := range mods { f.Apply(ctx, n) } } // FieldseekerTreatmentTemplate is an object representing the database table. // all columns are optional and should be set by mods type FieldseekerTreatmentTemplate struct { Objectid func() int64 Activity func() null.Val[string] Treatarea func() null.Val[float64] Areaunit func() null.Val[string] Product func() null.Val[string] Qty func() null.Val[float64] Qtyunit func() null.Val[string] Method func() null.Val[string] Equiptype func() null.Val[string] Comments func() null.Val[string] Avetemp func() null.Val[float64] Windspeed func() null.Val[float64] Winddir func() null.Val[string] Raingauge func() null.Val[float64] Startdatetime func() null.Val[time.Time] Enddatetime func() null.Val[time.Time] InspID func() null.Val[uuid.UUID] Reviewed func() null.Val[int16] Reviewedby func() null.Val[string] Revieweddate func() null.Val[time.Time] Locationname func() null.Val[string] Zone func() null.Val[string] Warningoverride func() null.Val[int16] Recordstatus func() null.Val[int16] Zone2 func() null.Val[string] Treatacres func() null.Val[float64] Tirecount func() null.Val[int16] Cbcount func() null.Val[int16] Containercount func() null.Val[int16] Globalid func() uuid.UUID Treatmentlength func() null.Val[float64] Treatmenthours func() null.Val[float64] Treatmentlengthunits func() null.Val[string] Linelocid func() null.Val[uuid.UUID] Pointlocid func() null.Val[uuid.UUID] Polygonlocid func() null.Val[uuid.UUID] Srid func() null.Val[uuid.UUID] Sdid func() null.Val[uuid.UUID] Barrierrouteid func() null.Val[uuid.UUID] Ulvrouteid func() null.Val[uuid.UUID] Fieldtech func() null.Val[string] Ptaid func() null.Val[uuid.UUID] Flowrate func() null.Val[float64] Habitat func() null.Val[string] Treathectares func() null.Val[float64] Invloc func() null.Val[string] TempSitecond func() null.Val[string] Sitecond func() null.Val[string] Totalcostprodcut func() null.Val[float64] Creationdate func() null.Val[time.Time] Creator func() null.Val[string] Editdate func() null.Val[time.Time] Editor func() null.Val[string] Targetspecies 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 fieldseekerTreatmentR f *Factory alreadyPersisted bool } type fieldseekerTreatmentR struct { Organization *fieldseekerTreatmentROrganizationR } type fieldseekerTreatmentROrganizationR struct { o *OrganizationTemplate } // Apply mods to the FieldseekerTreatmentTemplate func (o *FieldseekerTreatmentTemplate) Apply(ctx context.Context, mods ...FieldseekerTreatmentMod) { for _, mod := range mods { mod.Apply(ctx, o) } } // setModelRels creates and sets the relationships on *models.FieldseekerTreatment // according to the relationships in the template. Nothing is inserted into the db func (t FieldseekerTreatmentTemplate) setModelRels(o *models.FieldseekerTreatment) { if t.r.Organization != nil { rel := t.r.Organization.o.Build() rel.R.Treatments = append(rel.R.Treatments, o) o.OrganizationID = rel.ID // h2 o.R.Organization = rel } } // BuildSetter returns an *models.FieldseekerTreatmentSetter // this does nothing with the relationship templates func (o FieldseekerTreatmentTemplate) BuildSetter() *models.FieldseekerTreatmentSetter { m := &models.FieldseekerTreatmentSetter{} if o.Objectid != nil { val := o.Objectid() m.Objectid = omit.From(val) } if o.Activity != nil { val := o.Activity() m.Activity = omitnull.FromNull(val) } if o.Treatarea != nil { val := o.Treatarea() m.Treatarea = omitnull.FromNull(val) } if o.Areaunit != nil { val := o.Areaunit() m.Areaunit = omitnull.FromNull(val) } if o.Product != nil { val := o.Product() m.Product = omitnull.FromNull(val) } if o.Qty != nil { val := o.Qty() m.Qty = omitnull.FromNull(val) } if o.Qtyunit != nil { val := o.Qtyunit() m.Qtyunit = omitnull.FromNull(val) } if o.Method != nil { val := o.Method() m.Method = omitnull.FromNull(val) } if o.Equiptype != nil { val := o.Equiptype() m.Equiptype = omitnull.FromNull(val) } if o.Comments != nil { val := o.Comments() m.Comments = omitnull.FromNull(val) } if o.Avetemp != nil { val := o.Avetemp() m.Avetemp = omitnull.FromNull(val) } if o.Windspeed != nil { val := o.Windspeed() m.Windspeed = omitnull.FromNull(val) } if o.Winddir != nil { val := o.Winddir() m.Winddir = omitnull.FromNull(val) } if o.Raingauge != nil { val := o.Raingauge() m.Raingauge = omitnull.FromNull(val) } if o.Startdatetime != nil { val := o.Startdatetime() m.Startdatetime = omitnull.FromNull(val) } if o.Enddatetime != nil { val := o.Enddatetime() m.Enddatetime = omitnull.FromNull(val) } if o.InspID != nil { val := o.InspID() m.InspID = omitnull.FromNull(val) } if o.Reviewed != nil { val := o.Reviewed() m.Reviewed = omitnull.FromNull(val) } if o.Reviewedby != nil { val := o.Reviewedby() m.Reviewedby = omitnull.FromNull(val) } if o.Revieweddate != nil { val := o.Revieweddate() m.Revieweddate = omitnull.FromNull(val) } if o.Locationname != nil { val := o.Locationname() m.Locationname = omitnull.FromNull(val) } if o.Zone != nil { val := o.Zone() m.Zone = omitnull.FromNull(val) } if o.Warningoverride != nil { val := o.Warningoverride() m.Warningoverride = omitnull.FromNull(val) } if o.Recordstatus != nil { val := o.Recordstatus() m.Recordstatus = omitnull.FromNull(val) } if o.Zone2 != nil { val := o.Zone2() m.Zone2 = omitnull.FromNull(val) } if o.Treatacres != nil { val := o.Treatacres() m.Treatacres = omitnull.FromNull(val) } if o.Tirecount != nil { val := o.Tirecount() m.Tirecount = omitnull.FromNull(val) } if o.Cbcount != nil { val := o.Cbcount() m.Cbcount = omitnull.FromNull(val) } if o.Containercount != nil { val := o.Containercount() m.Containercount = omitnull.FromNull(val) } if o.Globalid != nil { val := o.Globalid() m.Globalid = omit.From(val) } if o.Treatmentlength != nil { val := o.Treatmentlength() m.Treatmentlength = omitnull.FromNull(val) } if o.Treatmenthours != nil { val := o.Treatmenthours() m.Treatmenthours = omitnull.FromNull(val) } if o.Treatmentlengthunits != nil { val := o.Treatmentlengthunits() m.Treatmentlengthunits = omitnull.FromNull(val) } if o.Linelocid != nil { val := o.Linelocid() m.Linelocid = omitnull.FromNull(val) } if o.Pointlocid != nil { val := o.Pointlocid() m.Pointlocid = omitnull.FromNull(val) } if o.Polygonlocid != nil { val := o.Polygonlocid() m.Polygonlocid = omitnull.FromNull(val) } if o.Srid != nil { val := o.Srid() m.Srid = omitnull.FromNull(val) } if o.Sdid != nil { val := o.Sdid() m.Sdid = omitnull.FromNull(val) } if o.Barrierrouteid != nil { val := o.Barrierrouteid() m.Barrierrouteid = omitnull.FromNull(val) } if o.Ulvrouteid != nil { val := o.Ulvrouteid() m.Ulvrouteid = omitnull.FromNull(val) } if o.Fieldtech != nil { val := o.Fieldtech() m.Fieldtech = omitnull.FromNull(val) } if o.Ptaid != nil { val := o.Ptaid() m.Ptaid = omitnull.FromNull(val) } if o.Flowrate != nil { val := o.Flowrate() m.Flowrate = omitnull.FromNull(val) } if o.Habitat != nil { val := o.Habitat() m.Habitat = omitnull.FromNull(val) } if o.Treathectares != nil { val := o.Treathectares() m.Treathectares = omitnull.FromNull(val) } if o.Invloc != nil { val := o.Invloc() m.Invloc = omitnull.FromNull(val) } if o.TempSitecond != nil { val := o.TempSitecond() m.TempSitecond = omitnull.FromNull(val) } if o.Sitecond != nil { val := o.Sitecond() m.Sitecond = omitnull.FromNull(val) } if o.Totalcostprodcut != nil { val := o.Totalcostprodcut() m.Totalcostprodcut = 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.Targetspecies != nil { val := o.Targetspecies() m.Targetspecies = 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.FieldseekerTreatmentSetter // this does nothing with the relationship templates func (o FieldseekerTreatmentTemplate) BuildManySetter(number int) []*models.FieldseekerTreatmentSetter { m := make([]*models.FieldseekerTreatmentSetter, number) for i := range m { m[i] = o.BuildSetter() } return m } // Build returns an *models.FieldseekerTreatment // Related objects are also created and placed in the .R field // NOTE: Objects are not inserted into the database. Use FieldseekerTreatmentTemplate.Create func (o FieldseekerTreatmentTemplate) Build() *models.FieldseekerTreatment { m := &models.FieldseekerTreatment{} if o.Objectid != nil { m.Objectid = o.Objectid() } if o.Activity != nil { m.Activity = o.Activity() } if o.Treatarea != nil { m.Treatarea = o.Treatarea() } if o.Areaunit != nil { m.Areaunit = o.Areaunit() } if o.Product != nil { m.Product = o.Product() } if o.Qty != nil { m.Qty = o.Qty() } if o.Qtyunit != nil { m.Qtyunit = o.Qtyunit() } if o.Method != nil { m.Method = o.Method() } if o.Equiptype != nil { m.Equiptype = o.Equiptype() } if o.Comments != nil { m.Comments = o.Comments() } if o.Avetemp != nil { m.Avetemp = o.Avetemp() } if o.Windspeed != nil { m.Windspeed = o.Windspeed() } if o.Winddir != nil { m.Winddir = o.Winddir() } if o.Raingauge != nil { m.Raingauge = o.Raingauge() } if o.Startdatetime != nil { m.Startdatetime = o.Startdatetime() } if o.Enddatetime != nil { m.Enddatetime = o.Enddatetime() } if o.InspID != nil { m.InspID = o.InspID() } if o.Reviewed != nil { m.Reviewed = o.Reviewed() } if o.Reviewedby != nil { m.Reviewedby = o.Reviewedby() } if o.Revieweddate != nil { m.Revieweddate = o.Revieweddate() } if o.Locationname != nil { m.Locationname = o.Locationname() } if o.Zone != nil { m.Zone = o.Zone() } if o.Warningoverride != nil { m.Warningoverride = o.Warningoverride() } if o.Recordstatus != nil { m.Recordstatus = o.Recordstatus() } if o.Zone2 != nil { m.Zone2 = o.Zone2() } if o.Treatacres != nil { m.Treatacres = o.Treatacres() } if o.Tirecount != nil { m.Tirecount = o.Tirecount() } if o.Cbcount != nil { m.Cbcount = o.Cbcount() } if o.Containercount != nil { m.Containercount = o.Containercount() } if o.Globalid != nil { m.Globalid = o.Globalid() } if o.Treatmentlength != nil { m.Treatmentlength = o.Treatmentlength() } if o.Treatmenthours != nil { m.Treatmenthours = o.Treatmenthours() } if o.Treatmentlengthunits != nil { m.Treatmentlengthunits = o.Treatmentlengthunits() } if o.Linelocid != nil { m.Linelocid = o.Linelocid() } if o.Pointlocid != nil { m.Pointlocid = o.Pointlocid() } if o.Polygonlocid != nil { m.Polygonlocid = o.Polygonlocid() } if o.Srid != nil { m.Srid = o.Srid() } if o.Sdid != nil { m.Sdid = o.Sdid() } if o.Barrierrouteid != nil { m.Barrierrouteid = o.Barrierrouteid() } if o.Ulvrouteid != nil { m.Ulvrouteid = o.Ulvrouteid() } if o.Fieldtech != nil { m.Fieldtech = o.Fieldtech() } if o.Ptaid != nil { m.Ptaid = o.Ptaid() } if o.Flowrate != nil { m.Flowrate = o.Flowrate() } if o.Habitat != nil { m.Habitat = o.Habitat() } if o.Treathectares != nil { m.Treathectares = o.Treathectares() } if o.Invloc != nil { m.Invloc = o.Invloc() } if o.TempSitecond != nil { m.TempSitecond = o.TempSitecond() } if o.Sitecond != nil { m.Sitecond = o.Sitecond() } if o.Totalcostprodcut != nil { m.Totalcostprodcut = o.Totalcostprodcut() } 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.Targetspecies != nil { m.Targetspecies = o.Targetspecies() } 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.FieldseekerTreatmentSlice // Related objects are also created and placed in the .R field // NOTE: Objects are not inserted into the database. Use FieldseekerTreatmentTemplate.CreateMany func (o FieldseekerTreatmentTemplate) BuildMany(number int) models.FieldseekerTreatmentSlice { m := make(models.FieldseekerTreatmentSlice, number) for i := range m { m[i] = o.Build() } return m } func ensureCreatableFieldseekerTreatment(m *models.FieldseekerTreatmentSetter) { 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.FieldseekerTreatment // according to the relationships in the template. // any required relationship should have already exist on the model func (o *FieldseekerTreatmentTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerTreatment) error { var err error return err } // Create builds a fieldseekerTreatment and inserts it into the database // Relations objects are also inserted and placed in the .R field func (o *FieldseekerTreatmentTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerTreatment, error) { var err error opt := o.BuildSetter() ensureCreatableFieldseekerTreatment(opt) if o.r.Organization == nil { FieldseekerTreatmentMods.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.FieldseekerTreatments.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 fieldseekerTreatment and inserts it into the database // Relations objects are also inserted and placed in the .R field // panics if an error occurs func (o *FieldseekerTreatmentTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerTreatment { m, err := o.Create(ctx, exec) if err != nil { panic(err) } return m } // CreateOrFail builds a fieldseekerTreatment 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 *FieldseekerTreatmentTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerTreatment { tb.Helper() m, err := o.Create(ctx, exec) if err != nil { tb.Fatal(err) return nil } return m } // CreateMany builds multiple fieldseekerTreatments and inserts them into the database // Relations objects are also inserted and placed in the .R field func (o FieldseekerTreatmentTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerTreatmentSlice, error) { var err error m := make(models.FieldseekerTreatmentSlice, number) for i := range m { m[i], err = o.Create(ctx, exec) if err != nil { return nil, err } } return m, nil } // MustCreateMany builds multiple fieldseekerTreatments and inserts them into the database // Relations objects are also inserted and placed in the .R field // panics if an error occurs func (o FieldseekerTreatmentTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerTreatmentSlice { m, err := o.CreateMany(ctx, exec, number) if err != nil { panic(err) } return m } // CreateManyOrFail builds multiple fieldseekerTreatments 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 FieldseekerTreatmentTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerTreatmentSlice { tb.Helper() m, err := o.CreateMany(ctx, exec, number) if err != nil { tb.Fatal(err) return nil } return m } // FieldseekerTreatment has methods that act as mods for the FieldseekerTreatmentTemplate var FieldseekerTreatmentMods fieldseekerTreatmentMods type fieldseekerTreatmentMods struct{} func (m fieldseekerTreatmentMods) RandomizeAllColumns(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModSlice{ FieldseekerTreatmentMods.RandomObjectid(f), FieldseekerTreatmentMods.RandomActivity(f), FieldseekerTreatmentMods.RandomTreatarea(f), FieldseekerTreatmentMods.RandomAreaunit(f), FieldseekerTreatmentMods.RandomProduct(f), FieldseekerTreatmentMods.RandomQty(f), FieldseekerTreatmentMods.RandomQtyunit(f), FieldseekerTreatmentMods.RandomMethod(f), FieldseekerTreatmentMods.RandomEquiptype(f), FieldseekerTreatmentMods.RandomComments(f), FieldseekerTreatmentMods.RandomAvetemp(f), FieldseekerTreatmentMods.RandomWindspeed(f), FieldseekerTreatmentMods.RandomWinddir(f), FieldseekerTreatmentMods.RandomRaingauge(f), FieldseekerTreatmentMods.RandomStartdatetime(f), FieldseekerTreatmentMods.RandomEnddatetime(f), FieldseekerTreatmentMods.RandomInspID(f), FieldseekerTreatmentMods.RandomReviewed(f), FieldseekerTreatmentMods.RandomReviewedby(f), FieldseekerTreatmentMods.RandomRevieweddate(f), FieldseekerTreatmentMods.RandomLocationname(f), FieldseekerTreatmentMods.RandomZone(f), FieldseekerTreatmentMods.RandomWarningoverride(f), FieldseekerTreatmentMods.RandomRecordstatus(f), FieldseekerTreatmentMods.RandomZone2(f), FieldseekerTreatmentMods.RandomTreatacres(f), FieldseekerTreatmentMods.RandomTirecount(f), FieldseekerTreatmentMods.RandomCbcount(f), FieldseekerTreatmentMods.RandomContainercount(f), FieldseekerTreatmentMods.RandomGlobalid(f), FieldseekerTreatmentMods.RandomTreatmentlength(f), FieldseekerTreatmentMods.RandomTreatmenthours(f), FieldseekerTreatmentMods.RandomTreatmentlengthunits(f), FieldseekerTreatmentMods.RandomLinelocid(f), FieldseekerTreatmentMods.RandomPointlocid(f), FieldseekerTreatmentMods.RandomPolygonlocid(f), FieldseekerTreatmentMods.RandomSrid(f), FieldseekerTreatmentMods.RandomSdid(f), FieldseekerTreatmentMods.RandomBarrierrouteid(f), FieldseekerTreatmentMods.RandomUlvrouteid(f), FieldseekerTreatmentMods.RandomFieldtech(f), FieldseekerTreatmentMods.RandomPtaid(f), FieldseekerTreatmentMods.RandomFlowrate(f), FieldseekerTreatmentMods.RandomHabitat(f), FieldseekerTreatmentMods.RandomTreathectares(f), FieldseekerTreatmentMods.RandomInvloc(f), FieldseekerTreatmentMods.RandomTempSitecond(f), FieldseekerTreatmentMods.RandomSitecond(f), FieldseekerTreatmentMods.RandomTotalcostprodcut(f), FieldseekerTreatmentMods.RandomCreationdate(f), FieldseekerTreatmentMods.RandomCreator(f), FieldseekerTreatmentMods.RandomEditdate(f), FieldseekerTreatmentMods.RandomEditor(f), FieldseekerTreatmentMods.RandomTargetspecies(f), FieldseekerTreatmentMods.RandomGeometry(f), FieldseekerTreatmentMods.RandomGeospatial(f), FieldseekerTreatmentMods.RandomVersion(f), FieldseekerTreatmentMods.RandomOrganizationID(f), FieldseekerTreatmentMods.RandomH3cell(f), } } // Set the model columns to this value func (m fieldseekerTreatmentMods) Objectid(val int64) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Objectid = func() int64 { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ObjectidFunc(f func() int64) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Objectid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetObjectid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomObjectid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Objectid = func() int64 { return random_int64(f) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Activity(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Activity = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ActivityFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Activity = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetActivity() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Activity = 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 fieldseekerTreatmentMods) RandomActivity(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Activity = 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 fieldseekerTreatmentMods) RandomActivityNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Activity = 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 fieldseekerTreatmentMods) Treatarea(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatarea = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreatareaFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatarea = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreatarea() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatarea = 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 fieldseekerTreatmentMods) RandomTreatarea(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatarea = 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 fieldseekerTreatmentMods) RandomTreatareaNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatarea = 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 fieldseekerTreatmentMods) Areaunit(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Areaunit = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) AreaunitFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Areaunit = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetAreaunit() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Areaunit = 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 fieldseekerTreatmentMods) RandomAreaunit(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Areaunit = 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 fieldseekerTreatmentMods) RandomAreaunitNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Areaunit = 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 fieldseekerTreatmentMods) Product(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Product = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ProductFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Product = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetProduct() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Product = 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 fieldseekerTreatmentMods) RandomProduct(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Product = 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 fieldseekerTreatmentMods) RandomProductNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Product = 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 fieldseekerTreatmentMods) Qty(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qty = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) QtyFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qty = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetQty() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qty = 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 fieldseekerTreatmentMods) RandomQty(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qty = 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 fieldseekerTreatmentMods) RandomQtyNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qty = 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 fieldseekerTreatmentMods) Qtyunit(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qtyunit = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) QtyunitFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qtyunit = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetQtyunit() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qtyunit = 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 fieldseekerTreatmentMods) RandomQtyunit(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qtyunit = 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 fieldseekerTreatmentMods) RandomQtyunitNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Qtyunit = 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 fieldseekerTreatmentMods) Method(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Method = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) MethodFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Method = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetMethod() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Method = 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 fieldseekerTreatmentMods) RandomMethod(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Method = 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 fieldseekerTreatmentMods) RandomMethodNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Method = 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 fieldseekerTreatmentMods) Equiptype(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Equiptype = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) EquiptypeFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Equiptype = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetEquiptype() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Equiptype = 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 fieldseekerTreatmentMods) RandomEquiptype(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Equiptype = 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 fieldseekerTreatmentMods) RandomEquiptypeNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Equiptype = 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 fieldseekerTreatmentMods) Comments(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Comments = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) CommentsFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Comments = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetComments() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomComments(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Avetemp(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Avetemp = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) AvetempFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Avetemp = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetAvetemp() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Avetemp = 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 fieldseekerTreatmentMods) RandomAvetemp(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Avetemp = 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 fieldseekerTreatmentMods) RandomAvetempNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Avetemp = 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 fieldseekerTreatmentMods) Windspeed(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Windspeed = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) WindspeedFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Windspeed = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetWindspeed() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Windspeed = 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 fieldseekerTreatmentMods) RandomWindspeed(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Windspeed = 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 fieldseekerTreatmentMods) RandomWindspeedNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Windspeed = 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 fieldseekerTreatmentMods) Winddir(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Winddir = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) WinddirFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Winddir = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetWinddir() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Winddir = 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 fieldseekerTreatmentMods) RandomWinddir(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Winddir = 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 fieldseekerTreatmentMods) RandomWinddirNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Winddir = 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 fieldseekerTreatmentMods) Raingauge(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Raingauge = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) RaingaugeFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Raingauge = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetRaingauge() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Raingauge = 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 fieldseekerTreatmentMods) RandomRaingauge(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Raingauge = 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 fieldseekerTreatmentMods) RandomRaingaugeNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Raingauge = 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 fieldseekerTreatmentMods) Startdatetime(val null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Startdatetime = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Startdatetime = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetStartdatetime() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Startdatetime = 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 fieldseekerTreatmentMods) RandomStartdatetime(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Startdatetime = 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 fieldseekerTreatmentMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Startdatetime = 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 fieldseekerTreatmentMods) Enddatetime(val null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Enddatetime = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Enddatetime = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetEnddatetime() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Enddatetime = 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 fieldseekerTreatmentMods) RandomEnddatetime(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Enddatetime = 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 fieldseekerTreatmentMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Enddatetime = 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 fieldseekerTreatmentMods) InspID(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.InspID = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) InspIDFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.InspID = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetInspID() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.InspID = 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 fieldseekerTreatmentMods) RandomInspID(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.InspID = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomInspIDNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.InspID = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Reviewed(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewed = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewed = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetReviewed() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewed = 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 fieldseekerTreatmentMods) RandomReviewed(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewed = 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 fieldseekerTreatmentMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewed = 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 fieldseekerTreatmentMods) Reviewedby(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewedby = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewedby = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetReviewedby() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewedby = 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 fieldseekerTreatmentMods) RandomReviewedby(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewedby = 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 fieldseekerTreatmentMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Reviewedby = 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 fieldseekerTreatmentMods) Revieweddate(val null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Revieweddate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Revieweddate = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetRevieweddate() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Revieweddate = 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 fieldseekerTreatmentMods) RandomRevieweddate(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Revieweddate = 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 fieldseekerTreatmentMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Revieweddate = 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 fieldseekerTreatmentMods) Locationname(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Locationname = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) LocationnameFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Locationname = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetLocationname() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Locationname = 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 fieldseekerTreatmentMods) RandomLocationname(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Locationname = 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 fieldseekerTreatmentMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Locationname = 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 fieldseekerTreatmentMods) Zone(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Zone = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ZoneFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Zone = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetZone() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomZone(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomZoneNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Warningoverride(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Warningoverride = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) WarningoverrideFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Warningoverride = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetWarningoverride() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Warningoverride = 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 fieldseekerTreatmentMods) RandomWarningoverride(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Warningoverride = 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 fieldseekerTreatmentMods) RandomWarningoverrideNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Warningoverride = 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 fieldseekerTreatmentMods) Recordstatus(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Recordstatus = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Recordstatus = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetRecordstatus() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Recordstatus = 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 fieldseekerTreatmentMods) RandomRecordstatus(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Recordstatus = 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 fieldseekerTreatmentMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Recordstatus = 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 fieldseekerTreatmentMods) Zone2(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Zone2 = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) Zone2Func(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Zone2 = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetZone2() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomZone2(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomZone2NotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Treatacres(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatacres = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreatacresFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatacres = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreatacres() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatacres = 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 fieldseekerTreatmentMods) RandomTreatacres(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatacres = 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 fieldseekerTreatmentMods) RandomTreatacresNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatacres = 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 fieldseekerTreatmentMods) Tirecount(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Tirecount = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TirecountFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Tirecount = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTirecount() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Tirecount = 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 fieldseekerTreatmentMods) RandomTirecount(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Tirecount = 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 fieldseekerTreatmentMods) RandomTirecountNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Tirecount = 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 fieldseekerTreatmentMods) Cbcount(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Cbcount = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) CbcountFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Cbcount = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetCbcount() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Cbcount = 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 fieldseekerTreatmentMods) RandomCbcount(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Cbcount = 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 fieldseekerTreatmentMods) RandomCbcountNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Cbcount = 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 fieldseekerTreatmentMods) Containercount(val null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Containercount = func() null.Val[int16] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) ContainercountFunc(f func() null.Val[int16]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Containercount = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetContainercount() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Containercount = 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 fieldseekerTreatmentMods) RandomContainercount(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Containercount = 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 fieldseekerTreatmentMods) RandomContainercountNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Containercount = 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 fieldseekerTreatmentMods) Globalid(val uuid.UUID) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Globalid = func() uuid.UUID { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) GlobalidFunc(f func() uuid.UUID) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Globalid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetGlobalid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomGlobalid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Globalid = func() uuid.UUID { return random_uuid_UUID(f) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Treatmentlength(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlength = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreatmentlengthFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlength = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreatmentlength() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlength = 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 fieldseekerTreatmentMods) RandomTreatmentlength(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlength = 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 fieldseekerTreatmentMods) RandomTreatmentlengthNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlength = 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 fieldseekerTreatmentMods) Treatmenthours(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmenthours = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreatmenthoursFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmenthours = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreatmenthours() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmenthours = 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 fieldseekerTreatmentMods) RandomTreatmenthours(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmenthours = 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 fieldseekerTreatmentMods) RandomTreatmenthoursNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmenthours = 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 fieldseekerTreatmentMods) Treatmentlengthunits(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlengthunits = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreatmentlengthunitsFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlengthunits = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreatmentlengthunits() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlengthunits = 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 fieldseekerTreatmentMods) RandomTreatmentlengthunits(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlengthunits = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "5") 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 fieldseekerTreatmentMods) RandomTreatmentlengthunitsNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treatmentlengthunits = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f, "5") return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Linelocid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Linelocid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) LinelocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Linelocid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetLinelocid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Linelocid = 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 fieldseekerTreatmentMods) RandomLinelocid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Linelocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomLinelocidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Linelocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Pointlocid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Pointlocid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) PointlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Pointlocid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetPointlocid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Pointlocid = 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 fieldseekerTreatmentMods) RandomPointlocid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Pointlocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomPointlocidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Pointlocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Polygonlocid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Polygonlocid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) PolygonlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Polygonlocid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetPolygonlocid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Polygonlocid = 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 fieldseekerTreatmentMods) RandomPolygonlocid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Polygonlocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomPolygonlocidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Polygonlocid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Srid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Srid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) SridFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Srid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetSrid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Srid = 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 fieldseekerTreatmentMods) RandomSrid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Srid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomSridNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Srid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Sdid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sdid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) SdidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sdid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetSdid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sdid = 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 fieldseekerTreatmentMods) RandomSdid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sdid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomSdidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sdid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Barrierrouteid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Barrierrouteid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) BarrierrouteidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Barrierrouteid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetBarrierrouteid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Barrierrouteid = 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 fieldseekerTreatmentMods) RandomBarrierrouteid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Barrierrouteid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomBarrierrouteidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Barrierrouteid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Ulvrouteid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ulvrouteid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) UlvrouteidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ulvrouteid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetUlvrouteid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ulvrouteid = 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 fieldseekerTreatmentMods) RandomUlvrouteid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ulvrouteid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomUlvrouteidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ulvrouteid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Fieldtech(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Fieldtech = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) FieldtechFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Fieldtech = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetFieldtech() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Fieldtech = 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 fieldseekerTreatmentMods) RandomFieldtech(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Fieldtech = 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 fieldseekerTreatmentMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Fieldtech = 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 fieldseekerTreatmentMods) Ptaid(val null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ptaid = func() null.Val[uuid.UUID] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) PtaidFunc(f func() null.Val[uuid.UUID]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ptaid = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetPtaid() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ptaid = 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 fieldseekerTreatmentMods) RandomPtaid(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ptaid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(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 fieldseekerTreatmentMods) RandomPtaidNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Ptaid = func() null.Val[uuid.UUID] { if f == nil { f = &defaultFaker } val := random_uuid_UUID(f) return null.From(val) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Flowrate(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Flowrate = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) FlowrateFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Flowrate = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetFlowrate() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Flowrate = 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 fieldseekerTreatmentMods) RandomFlowrate(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Flowrate = 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 fieldseekerTreatmentMods) RandomFlowrateNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Flowrate = 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 fieldseekerTreatmentMods) Habitat(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Habitat = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) HabitatFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Habitat = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetHabitat() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomHabitat(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Habitat = 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 fieldseekerTreatmentMods) RandomHabitatNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Habitat = 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 fieldseekerTreatmentMods) Treathectares(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treathectares = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TreathectaresFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treathectares = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTreathectares() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treathectares = 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 fieldseekerTreatmentMods) RandomTreathectares(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treathectares = 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 fieldseekerTreatmentMods) RandomTreathectaresNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Treathectares = 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 fieldseekerTreatmentMods) Invloc(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Invloc = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) InvlocFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Invloc = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetInvloc() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Invloc = 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 fieldseekerTreatmentMods) RandomInvloc(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Invloc = 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 fieldseekerTreatmentMods) RandomInvlocNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Invloc = 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 fieldseekerTreatmentMods) TempSitecond(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.TempSitecond = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TempSitecondFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.TempSitecond = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTempSitecond() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.TempSitecond = 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 fieldseekerTreatmentMods) RandomTempSitecond(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.TempSitecond = 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 fieldseekerTreatmentMods) RandomTempSitecondNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.TempSitecond = 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 fieldseekerTreatmentMods) Sitecond(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sitecond = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) SitecondFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sitecond = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetSitecond() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sitecond = 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 fieldseekerTreatmentMods) RandomSitecond(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sitecond = 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 fieldseekerTreatmentMods) RandomSitecondNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Sitecond = 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 fieldseekerTreatmentMods) Totalcostprodcut(val null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Totalcostprodcut = func() null.Val[float64] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TotalcostprodcutFunc(f func() null.Val[float64]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Totalcostprodcut = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTotalcostprodcut() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Totalcostprodcut = 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 fieldseekerTreatmentMods) RandomTotalcostprodcut(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Totalcostprodcut = 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 fieldseekerTreatmentMods) RandomTotalcostprodcutNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Totalcostprodcut = 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 fieldseekerTreatmentMods) Creationdate(val null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Creationdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Creationdate = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetCreationdate() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomCreationdate(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Creator(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Creator = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) CreatorFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Creator = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetCreator() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomCreator(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Editdate(val null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Editdate = func() null.Val[time.Time] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Editdate = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetEditdate() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomEditdate(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Editor(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Editor = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) EditorFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Editor = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetEditor() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomEditor(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomEditorNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Targetspecies(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Targetspecies = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) TargetspeciesFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Targetspecies = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetTargetspecies() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Targetspecies = 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 fieldseekerTreatmentMods) RandomTargetspecies(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Targetspecies = 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 fieldseekerTreatmentMods) RandomTargetspeciesNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Targetspecies = 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 fieldseekerTreatmentMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Geometry = func() types.JSON[json.RawMessage] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Geometry = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetGeometry() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomGeometry(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Geometry = func() types.JSON[json.RawMessage] { return random_types_JSON_json_RawMessage_(f) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) Geospatial(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Geospatial = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) GeospatialFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Geospatial = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetGeospatial() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomGeospatial(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) Version(val int32) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Version = func() int32 { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) VersionFunc(f func() int32) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Version = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetVersion() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomVersion(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.Version = func() int32 { return random_int32(f) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) OrganizationID(val int32) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.OrganizationID = func() int32 { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) OrganizationIDFunc(f func() int32) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.OrganizationID = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetOrganizationID() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomOrganizationID(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.OrganizationID = func() int32 { return random_int32(f) } }) } // Set the model columns to this value func (m fieldseekerTreatmentMods) H3cell(val null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.H3cell = func() null.Val[string] { return val } }) } // Set the Column from the function func (m fieldseekerTreatmentMods) H3cellFunc(f func() null.Val[string]) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.H3cell = f }) } // Clear any values for the column func (m fieldseekerTreatmentMods) UnsetH3cell() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomH3cell(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { 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 fieldseekerTreatmentMods) RandomH3cellNotNull(f *faker.Faker) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) { o.H3cell = func() null.Val[string] { if f == nil { f = &defaultFaker } val := random_string(f) return null.From(val) } }) } func (m fieldseekerTreatmentMods) WithParentsCascading() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) { if isDone, _ := fieldseekerTreatmentWithParentsCascadingCtx.Value(ctx); isDone { return } ctx = fieldseekerTreatmentWithParentsCascadingCtx.WithValue(ctx, true) { related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading()) m.WithOrganization(related).Apply(ctx, o) } }) } func (m fieldseekerTreatmentMods) WithOrganization(rel *OrganizationTemplate) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) { o.r.Organization = &fieldseekerTreatmentROrganizationR{ o: rel, } }) } func (m fieldseekerTreatmentMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) { related := o.f.NewOrganizationWithContext(ctx, mods...) m.WithOrganization(related).Apply(ctx, o) }) } func (m fieldseekerTreatmentMods) WithExistingOrganization(em *models.Organization) FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) { o.r.Organization = &fieldseekerTreatmentROrganizationR{ o: o.f.FromExistingOrganization(em), } }) } func (m fieldseekerTreatmentMods) WithoutOrganization() FieldseekerTreatmentMod { return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) { o.r.Organization = nil }) }