nidus-sync/db/factory/fieldseeker.mosquitoinspection.bob.go
Eli Ribble 1aefca2f5d Make GlobalID required for all Fieldseeker tables
I'm pretty sure it has to be there, and it allows me to clean up my
code.
2026-01-05 02:28:28 +00:00

3971 lines
138 KiB
Go

// 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 FieldseekerMosquitoinspectionMod interface {
Apply(context.Context, *FieldseekerMosquitoinspectionTemplate)
}
type FieldseekerMosquitoinspectionModFunc func(context.Context, *FieldseekerMosquitoinspectionTemplate)
func (f FieldseekerMosquitoinspectionModFunc) Apply(ctx context.Context, n *FieldseekerMosquitoinspectionTemplate) {
f(ctx, n)
}
type FieldseekerMosquitoinspectionModSlice []FieldseekerMosquitoinspectionMod
func (mods FieldseekerMosquitoinspectionModSlice) Apply(ctx context.Context, n *FieldseekerMosquitoinspectionTemplate) {
for _, f := range mods {
f.Apply(ctx, n)
}
}
// FieldseekerMosquitoinspectionTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerMosquitoinspectionTemplate struct {
Objectid func() int64
Numdips func() null.Val[int16]
Activity func() null.Val[string]
Breeding func() null.Val[string]
Totlarvae func() null.Val[int16]
Totpupae func() null.Val[int16]
Eggs func() null.Val[int16]
Posdips func() null.Val[int16]
Adultact func() null.Val[string]
Lstages func() null.Val[string]
Domstage func() null.Val[string]
Actiontaken func() null.Val[string]
Comments func() null.Val[string]
Avetemp func() null.Val[float64]
Windspeed func() null.Val[float64]
Raingauge func() null.Val[float64]
Startdatetime func() null.Val[time.Time]
Enddatetime func() null.Val[time.Time]
Winddir func() null.Val[string]
Avglarvae func() null.Val[float64]
Avgpupae func() null.Val[float64]
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]
Recordstatus func() null.Val[int16]
Zone2 func() null.Val[string]
Personalcontact func() null.Val[int16]
Tirecount func() null.Val[int16]
Cbcount func() null.Val[int16]
Containercount func() null.Val[int16]
Fieldspecies func() null.Val[string]
Globalid func() uuid.UUID
CreatedUser func() null.Val[string]
CreatedDate func() null.Val[time.Time]
LastEditedUser func() null.Val[string]
LastEditedDate func() null.Val[time.Time]
Linelocid func() null.Val[uuid.UUID]
Pointlocid func() null.Val[uuid.UUID]
Polygonlocid func() null.Val[uuid.UUID]
Srid func() null.Val[uuid.UUID]
Fieldtech func() null.Val[string]
Larvaepresent func() null.Val[int16]
Pupaepresent func() null.Val[int16]
Sdid func() null.Val[uuid.UUID]
Sitecond func() null.Val[string]
Positivecontainercount func() null.Val[int16]
Creationdate func() null.Val[time.Time]
Creator func() null.Val[string]
Editdate func() null.Val[time.Time]
Editor func() null.Val[string]
Jurisdiction func() null.Val[string]
Visualmonitoring func() null.Val[int16]
Vmcomments func() null.Val[string]
Adminaction func() null.Val[string]
Ptaid func() null.Val[uuid.UUID]
Geometry func() types.JSON[json.RawMessage]
Geospatial func() null.Val[string]
Version func() int32
OrganizationID func() int32
r fieldseekerMosquitoinspectionR
f *Factory
alreadyPersisted bool
}
type fieldseekerMosquitoinspectionR struct {
Organization *fieldseekerMosquitoinspectionROrganizationR
}
type fieldseekerMosquitoinspectionROrganizationR struct {
o *OrganizationTemplate
}
// Apply mods to the FieldseekerMosquitoinspectionTemplate
func (o *FieldseekerMosquitoinspectionTemplate) Apply(ctx context.Context, mods ...FieldseekerMosquitoinspectionMod) {
for _, mod := range mods {
mod.Apply(ctx, o)
}
}
// setModelRels creates and sets the relationships on *models.FieldseekerMosquitoinspection
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerMosquitoinspectionTemplate) setModelRels(o *models.FieldseekerMosquitoinspection) {
if t.r.Organization != nil {
rel := t.r.Organization.o.Build()
rel.R.Mosquitoinspections = append(rel.R.Mosquitoinspections, o)
o.OrganizationID = rel.ID // h2
o.R.Organization = rel
}
}
// BuildSetter returns an *models.FieldseekerMosquitoinspectionSetter
// this does nothing with the relationship templates
func (o FieldseekerMosquitoinspectionTemplate) BuildSetter() *models.FieldseekerMosquitoinspectionSetter {
m := &models.FieldseekerMosquitoinspectionSetter{}
if o.Objectid != nil {
val := o.Objectid()
m.Objectid = omit.From(val)
}
if o.Numdips != nil {
val := o.Numdips()
m.Numdips = omitnull.FromNull(val)
}
if o.Activity != nil {
val := o.Activity()
m.Activity = omitnull.FromNull(val)
}
if o.Breeding != nil {
val := o.Breeding()
m.Breeding = omitnull.FromNull(val)
}
if o.Totlarvae != nil {
val := o.Totlarvae()
m.Totlarvae = omitnull.FromNull(val)
}
if o.Totpupae != nil {
val := o.Totpupae()
m.Totpupae = omitnull.FromNull(val)
}
if o.Eggs != nil {
val := o.Eggs()
m.Eggs = omitnull.FromNull(val)
}
if o.Posdips != nil {
val := o.Posdips()
m.Posdips = omitnull.FromNull(val)
}
if o.Adultact != nil {
val := o.Adultact()
m.Adultact = omitnull.FromNull(val)
}
if o.Lstages != nil {
val := o.Lstages()
m.Lstages = omitnull.FromNull(val)
}
if o.Domstage != nil {
val := o.Domstage()
m.Domstage = omitnull.FromNull(val)
}
if o.Actiontaken != nil {
val := o.Actiontaken()
m.Actiontaken = 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.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.Winddir != nil {
val := o.Winddir()
m.Winddir = omitnull.FromNull(val)
}
if o.Avglarvae != nil {
val := o.Avglarvae()
m.Avglarvae = omitnull.FromNull(val)
}
if o.Avgpupae != nil {
val := o.Avgpupae()
m.Avgpupae = 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.Recordstatus != nil {
val := o.Recordstatus()
m.Recordstatus = omitnull.FromNull(val)
}
if o.Zone2 != nil {
val := o.Zone2()
m.Zone2 = omitnull.FromNull(val)
}
if o.Personalcontact != nil {
val := o.Personalcontact()
m.Personalcontact = 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.Fieldspecies != nil {
val := o.Fieldspecies()
m.Fieldspecies = omitnull.FromNull(val)
}
if o.Globalid != nil {
val := o.Globalid()
m.Globalid = omit.From(val)
}
if o.CreatedUser != nil {
val := o.CreatedUser()
m.CreatedUser = omitnull.FromNull(val)
}
if o.CreatedDate != nil {
val := o.CreatedDate()
m.CreatedDate = omitnull.FromNull(val)
}
if o.LastEditedUser != nil {
val := o.LastEditedUser()
m.LastEditedUser = omitnull.FromNull(val)
}
if o.LastEditedDate != nil {
val := o.LastEditedDate()
m.LastEditedDate = 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.Fieldtech != nil {
val := o.Fieldtech()
m.Fieldtech = omitnull.FromNull(val)
}
if o.Larvaepresent != nil {
val := o.Larvaepresent()
m.Larvaepresent = omitnull.FromNull(val)
}
if o.Pupaepresent != nil {
val := o.Pupaepresent()
m.Pupaepresent = omitnull.FromNull(val)
}
if o.Sdid != nil {
val := o.Sdid()
m.Sdid = omitnull.FromNull(val)
}
if o.Sitecond != nil {
val := o.Sitecond()
m.Sitecond = omitnull.FromNull(val)
}
if o.Positivecontainercount != nil {
val := o.Positivecontainercount()
m.Positivecontainercount = omitnull.FromNull(val)
}
if o.Creationdate != nil {
val := o.Creationdate()
m.Creationdate = omitnull.FromNull(val)
}
if o.Creator != nil {
val := o.Creator()
m.Creator = omitnull.FromNull(val)
}
if o.Editdate != nil {
val := o.Editdate()
m.Editdate = omitnull.FromNull(val)
}
if o.Editor != nil {
val := o.Editor()
m.Editor = omitnull.FromNull(val)
}
if o.Jurisdiction != nil {
val := o.Jurisdiction()
m.Jurisdiction = omitnull.FromNull(val)
}
if o.Visualmonitoring != nil {
val := o.Visualmonitoring()
m.Visualmonitoring = omitnull.FromNull(val)
}
if o.Vmcomments != nil {
val := o.Vmcomments()
m.Vmcomments = omitnull.FromNull(val)
}
if o.Adminaction != nil {
val := o.Adminaction()
m.Adminaction = omitnull.FromNull(val)
}
if o.Ptaid != nil {
val := o.Ptaid()
m.Ptaid = 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.FieldseekerMosquitoinspectionSetter
// this does nothing with the relationship templates
func (o FieldseekerMosquitoinspectionTemplate) BuildManySetter(number int) []*models.FieldseekerMosquitoinspectionSetter {
m := make([]*models.FieldseekerMosquitoinspectionSetter, number)
for i := range m {
m[i] = o.BuildSetter()
}
return m
}
// Build returns an *models.FieldseekerMosquitoinspection
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerMosquitoinspectionTemplate.Create
func (o FieldseekerMosquitoinspectionTemplate) Build() *models.FieldseekerMosquitoinspection {
m := &models.FieldseekerMosquitoinspection{}
if o.Objectid != nil {
m.Objectid = o.Objectid()
}
if o.Numdips != nil {
m.Numdips = o.Numdips()
}
if o.Activity != nil {
m.Activity = o.Activity()
}
if o.Breeding != nil {
m.Breeding = o.Breeding()
}
if o.Totlarvae != nil {
m.Totlarvae = o.Totlarvae()
}
if o.Totpupae != nil {
m.Totpupae = o.Totpupae()
}
if o.Eggs != nil {
m.Eggs = o.Eggs()
}
if o.Posdips != nil {
m.Posdips = o.Posdips()
}
if o.Adultact != nil {
m.Adultact = o.Adultact()
}
if o.Lstages != nil {
m.Lstages = o.Lstages()
}
if o.Domstage != nil {
m.Domstage = o.Domstage()
}
if o.Actiontaken != nil {
m.Actiontaken = o.Actiontaken()
}
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.Raingauge != nil {
m.Raingauge = o.Raingauge()
}
if o.Startdatetime != nil {
m.Startdatetime = o.Startdatetime()
}
if o.Enddatetime != nil {
m.Enddatetime = o.Enddatetime()
}
if o.Winddir != nil {
m.Winddir = o.Winddir()
}
if o.Avglarvae != nil {
m.Avglarvae = o.Avglarvae()
}
if o.Avgpupae != nil {
m.Avgpupae = o.Avgpupae()
}
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.Recordstatus != nil {
m.Recordstatus = o.Recordstatus()
}
if o.Zone2 != nil {
m.Zone2 = o.Zone2()
}
if o.Personalcontact != nil {
m.Personalcontact = o.Personalcontact()
}
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.Fieldspecies != nil {
m.Fieldspecies = o.Fieldspecies()
}
if o.Globalid != nil {
m.Globalid = o.Globalid()
}
if o.CreatedUser != nil {
m.CreatedUser = o.CreatedUser()
}
if o.CreatedDate != nil {
m.CreatedDate = o.CreatedDate()
}
if o.LastEditedUser != nil {
m.LastEditedUser = o.LastEditedUser()
}
if o.LastEditedDate != nil {
m.LastEditedDate = o.LastEditedDate()
}
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.Fieldtech != nil {
m.Fieldtech = o.Fieldtech()
}
if o.Larvaepresent != nil {
m.Larvaepresent = o.Larvaepresent()
}
if o.Pupaepresent != nil {
m.Pupaepresent = o.Pupaepresent()
}
if o.Sdid != nil {
m.Sdid = o.Sdid()
}
if o.Sitecond != nil {
m.Sitecond = o.Sitecond()
}
if o.Positivecontainercount != nil {
m.Positivecontainercount = o.Positivecontainercount()
}
if o.Creationdate != nil {
m.Creationdate = o.Creationdate()
}
if o.Creator != nil {
m.Creator = o.Creator()
}
if o.Editdate != nil {
m.Editdate = o.Editdate()
}
if o.Editor != nil {
m.Editor = o.Editor()
}
if o.Jurisdiction != nil {
m.Jurisdiction = o.Jurisdiction()
}
if o.Visualmonitoring != nil {
m.Visualmonitoring = o.Visualmonitoring()
}
if o.Vmcomments != nil {
m.Vmcomments = o.Vmcomments()
}
if o.Adminaction != nil {
m.Adminaction = o.Adminaction()
}
if o.Ptaid != nil {
m.Ptaid = o.Ptaid()
}
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()
}
o.setModelRels(m)
return m
}
// BuildMany returns an models.FieldseekerMosquitoinspectionSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerMosquitoinspectionTemplate.CreateMany
func (o FieldseekerMosquitoinspectionTemplate) BuildMany(number int) models.FieldseekerMosquitoinspectionSlice {
m := make(models.FieldseekerMosquitoinspectionSlice, number)
for i := range m {
m[i] = o.Build()
}
return m
}
func ensureCreatableFieldseekerMosquitoinspection(m *models.FieldseekerMosquitoinspectionSetter) {
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.FieldseekerMosquitoinspection
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerMosquitoinspectionTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerMosquitoinspection) error {
var err error
return err
}
// Create builds a fieldseekerMosquitoinspection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerMosquitoinspectionTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerMosquitoinspection, error) {
var err error
opt := o.BuildSetter()
ensureCreatableFieldseekerMosquitoinspection(opt)
if o.r.Organization == nil {
FieldseekerMosquitoinspectionMods.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.FieldseekerMosquitoinspections.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 fieldseekerMosquitoinspection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerMosquitoinspectionTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerMosquitoinspection {
m, err := o.Create(ctx, exec)
if err != nil {
panic(err)
}
return m
}
// CreateOrFail builds a fieldseekerMosquitoinspection 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 *FieldseekerMosquitoinspectionTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerMosquitoinspection {
tb.Helper()
m, err := o.Create(ctx, exec)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// CreateMany builds multiple fieldseekerMosquitoinspections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerMosquitoinspectionTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerMosquitoinspectionSlice, error) {
var err error
m := make(models.FieldseekerMosquitoinspectionSlice, number)
for i := range m {
m[i], err = o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
return m, nil
}
// MustCreateMany builds multiple fieldseekerMosquitoinspections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerMosquitoinspectionTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerMosquitoinspectionSlice {
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
panic(err)
}
return m
}
// CreateManyOrFail builds multiple fieldseekerMosquitoinspections 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 FieldseekerMosquitoinspectionTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerMosquitoinspectionSlice {
tb.Helper()
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// FieldseekerMosquitoinspection has methods that act as mods for the FieldseekerMosquitoinspectionTemplate
var FieldseekerMosquitoinspectionMods fieldseekerMosquitoinspectionMods
type fieldseekerMosquitoinspectionMods struct{}
func (m fieldseekerMosquitoinspectionMods) RandomizeAllColumns(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModSlice{
FieldseekerMosquitoinspectionMods.RandomObjectid(f),
FieldseekerMosquitoinspectionMods.RandomNumdips(f),
FieldseekerMosquitoinspectionMods.RandomActivity(f),
FieldseekerMosquitoinspectionMods.RandomBreeding(f),
FieldseekerMosquitoinspectionMods.RandomTotlarvae(f),
FieldseekerMosquitoinspectionMods.RandomTotpupae(f),
FieldseekerMosquitoinspectionMods.RandomEggs(f),
FieldseekerMosquitoinspectionMods.RandomPosdips(f),
FieldseekerMosquitoinspectionMods.RandomAdultact(f),
FieldseekerMosquitoinspectionMods.RandomLstages(f),
FieldseekerMosquitoinspectionMods.RandomDomstage(f),
FieldseekerMosquitoinspectionMods.RandomActiontaken(f),
FieldseekerMosquitoinspectionMods.RandomComments(f),
FieldseekerMosquitoinspectionMods.RandomAvetemp(f),
FieldseekerMosquitoinspectionMods.RandomWindspeed(f),
FieldseekerMosquitoinspectionMods.RandomRaingauge(f),
FieldseekerMosquitoinspectionMods.RandomStartdatetime(f),
FieldseekerMosquitoinspectionMods.RandomEnddatetime(f),
FieldseekerMosquitoinspectionMods.RandomWinddir(f),
FieldseekerMosquitoinspectionMods.RandomAvglarvae(f),
FieldseekerMosquitoinspectionMods.RandomAvgpupae(f),
FieldseekerMosquitoinspectionMods.RandomReviewed(f),
FieldseekerMosquitoinspectionMods.RandomReviewedby(f),
FieldseekerMosquitoinspectionMods.RandomRevieweddate(f),
FieldseekerMosquitoinspectionMods.RandomLocationname(f),
FieldseekerMosquitoinspectionMods.RandomZone(f),
FieldseekerMosquitoinspectionMods.RandomRecordstatus(f),
FieldseekerMosquitoinspectionMods.RandomZone2(f),
FieldseekerMosquitoinspectionMods.RandomPersonalcontact(f),
FieldseekerMosquitoinspectionMods.RandomTirecount(f),
FieldseekerMosquitoinspectionMods.RandomCbcount(f),
FieldseekerMosquitoinspectionMods.RandomContainercount(f),
FieldseekerMosquitoinspectionMods.RandomFieldspecies(f),
FieldseekerMosquitoinspectionMods.RandomGlobalid(f),
FieldseekerMosquitoinspectionMods.RandomCreatedUser(f),
FieldseekerMosquitoinspectionMods.RandomCreatedDate(f),
FieldseekerMosquitoinspectionMods.RandomLastEditedUser(f),
FieldseekerMosquitoinspectionMods.RandomLastEditedDate(f),
FieldseekerMosquitoinspectionMods.RandomLinelocid(f),
FieldseekerMosquitoinspectionMods.RandomPointlocid(f),
FieldseekerMosquitoinspectionMods.RandomPolygonlocid(f),
FieldseekerMosquitoinspectionMods.RandomSrid(f),
FieldseekerMosquitoinspectionMods.RandomFieldtech(f),
FieldseekerMosquitoinspectionMods.RandomLarvaepresent(f),
FieldseekerMosquitoinspectionMods.RandomPupaepresent(f),
FieldseekerMosquitoinspectionMods.RandomSdid(f),
FieldseekerMosquitoinspectionMods.RandomSitecond(f),
FieldseekerMosquitoinspectionMods.RandomPositivecontainercount(f),
FieldseekerMosquitoinspectionMods.RandomCreationdate(f),
FieldseekerMosquitoinspectionMods.RandomCreator(f),
FieldseekerMosquitoinspectionMods.RandomEditdate(f),
FieldseekerMosquitoinspectionMods.RandomEditor(f),
FieldseekerMosquitoinspectionMods.RandomJurisdiction(f),
FieldseekerMosquitoinspectionMods.RandomVisualmonitoring(f),
FieldseekerMosquitoinspectionMods.RandomVmcomments(f),
FieldseekerMosquitoinspectionMods.RandomAdminaction(f),
FieldseekerMosquitoinspectionMods.RandomPtaid(f),
FieldseekerMosquitoinspectionMods.RandomGeometry(f),
FieldseekerMosquitoinspectionMods.RandomGeospatial(f),
FieldseekerMosquitoinspectionMods.RandomVersion(f),
FieldseekerMosquitoinspectionMods.RandomOrganizationID(f),
}
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Objectid(val int64) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Objectid = func() int64 { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ObjectidFunc(f func() int64) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Objectid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetObjectid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomObjectid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Objectid = func() int64 {
return random_int64(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Numdips(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Numdips = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) NumdipsFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Numdips = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetNumdips() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Numdips = 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 fieldseekerMosquitoinspectionMods) RandomNumdips(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Numdips = 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 fieldseekerMosquitoinspectionMods) RandomNumdipsNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Numdips = 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 fieldseekerMosquitoinspectionMods) Activity(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Activity = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ActivityFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Activity = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetActivity() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomActivity(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomActivityNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Breeding(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Breeding = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) BreedingFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Breeding = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetBreeding() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Breeding = 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 fieldseekerMosquitoinspectionMods) RandomBreeding(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Breeding = 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 fieldseekerMosquitoinspectionMods) RandomBreedingNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Breeding = 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 fieldseekerMosquitoinspectionMods) Totlarvae(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totlarvae = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) TotlarvaeFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totlarvae = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetTotlarvae() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totlarvae = 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 fieldseekerMosquitoinspectionMods) RandomTotlarvae(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totlarvae = 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 fieldseekerMosquitoinspectionMods) RandomTotlarvaeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totlarvae = 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 fieldseekerMosquitoinspectionMods) Totpupae(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totpupae = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) TotpupaeFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totpupae = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetTotpupae() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totpupae = 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 fieldseekerMosquitoinspectionMods) RandomTotpupae(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totpupae = 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 fieldseekerMosquitoinspectionMods) RandomTotpupaeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Totpupae = 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 fieldseekerMosquitoinspectionMods) Eggs(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Eggs = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) EggsFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Eggs = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetEggs() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Eggs = 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 fieldseekerMosquitoinspectionMods) RandomEggs(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Eggs = 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 fieldseekerMosquitoinspectionMods) RandomEggsNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Eggs = 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 fieldseekerMosquitoinspectionMods) Posdips(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Posdips = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PosdipsFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Posdips = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPosdips() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Posdips = 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 fieldseekerMosquitoinspectionMods) RandomPosdips(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Posdips = 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 fieldseekerMosquitoinspectionMods) RandomPosdipsNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Posdips = 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 fieldseekerMosquitoinspectionMods) Adultact(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adultact = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) AdultactFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adultact = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetAdultact() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adultact = 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 fieldseekerMosquitoinspectionMods) RandomAdultact(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adultact = 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 fieldseekerMosquitoinspectionMods) RandomAdultactNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adultact = 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 fieldseekerMosquitoinspectionMods) Lstages(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Lstages = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LstagesFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Lstages = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLstages() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Lstages = 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 fieldseekerMosquitoinspectionMods) RandomLstages(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Lstages = 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 fieldseekerMosquitoinspectionMods) RandomLstagesNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Lstages = 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 fieldseekerMosquitoinspectionMods) Domstage(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Domstage = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) DomstageFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Domstage = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetDomstage() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Domstage = 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 fieldseekerMosquitoinspectionMods) RandomDomstage(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Domstage = 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 fieldseekerMosquitoinspectionMods) RandomDomstageNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Domstage = 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 fieldseekerMosquitoinspectionMods) Actiontaken(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Actiontaken = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ActiontakenFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Actiontaken = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetActiontaken() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Actiontaken = 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 fieldseekerMosquitoinspectionMods) RandomActiontaken(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Actiontaken = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "50")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerMosquitoinspectionMods) RandomActiontakenNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Actiontaken = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "50")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Comments(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Comments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CommentsFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Comments = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetComments() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomComments(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Avetemp(val null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avetemp = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) AvetempFunc(f func() null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avetemp = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetAvetemp() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomAvetemp(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomAvetempNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Windspeed(val null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Windspeed = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) WindspeedFunc(f func() null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Windspeed = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetWindspeed() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomWindspeed(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomWindspeedNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Raingauge(val null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Raingauge = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) RaingaugeFunc(f func() null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Raingauge = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetRaingauge() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRaingauge(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRaingaugeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Startdatetime(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Startdatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Startdatetime = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetStartdatetime() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomStartdatetime(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Enddatetime(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Enddatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Enddatetime = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetEnddatetime() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEnddatetime(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Winddir(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Winddir = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) WinddirFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Winddir = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetWinddir() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomWinddir(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomWinddirNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Avglarvae(val null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avglarvae = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) AvglarvaeFunc(f func() null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avglarvae = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetAvglarvae() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avglarvae = 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 fieldseekerMosquitoinspectionMods) RandomAvglarvae(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avglarvae = 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 fieldseekerMosquitoinspectionMods) RandomAvglarvaeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avglarvae = 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 fieldseekerMosquitoinspectionMods) Avgpupae(val null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avgpupae = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) AvgpupaeFunc(f func() null.Val[float64]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avgpupae = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetAvgpupae() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avgpupae = 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 fieldseekerMosquitoinspectionMods) RandomAvgpupae(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avgpupae = 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 fieldseekerMosquitoinspectionMods) RandomAvgpupaeNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Avgpupae = 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 fieldseekerMosquitoinspectionMods) Reviewed(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Reviewed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Reviewed = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetReviewed() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomReviewed(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Reviewedby(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Reviewedby = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Reviewedby = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetReviewedby() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomReviewedby(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Revieweddate(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Revieweddate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Revieweddate = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetRevieweddate() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRevieweddate(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Locationname(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Locationname = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LocationnameFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Locationname = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLocationname() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomLocationname(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Zone(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Zone = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ZoneFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Zone = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetZone() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomZone(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomZoneNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Recordstatus(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Recordstatus = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Recordstatus = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetRecordstatus() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRecordstatus(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Zone2(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Zone2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) Zone2Func(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Zone2 = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetZone2() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomZone2(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomZone2NotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Personalcontact(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Personalcontact = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PersonalcontactFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Personalcontact = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPersonalcontact() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Personalcontact = 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 fieldseekerMosquitoinspectionMods) RandomPersonalcontact(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Personalcontact = 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 fieldseekerMosquitoinspectionMods) RandomPersonalcontactNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Personalcontact = 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 fieldseekerMosquitoinspectionMods) Tirecount(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Tirecount = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) TirecountFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Tirecount = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetTirecount() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomTirecount(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomTirecountNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Cbcount(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Cbcount = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CbcountFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Cbcount = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetCbcount() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCbcount(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCbcountNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Containercount(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Containercount = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) ContainercountFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Containercount = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetContainercount() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomContainercount(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomContainercountNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Fieldspecies(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldspecies = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) FieldspeciesFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldspecies = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetFieldspecies() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldspecies = 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 fieldseekerMosquitoinspectionMods) RandomFieldspecies(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldspecies = 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 fieldseekerMosquitoinspectionMods) RandomFieldspeciesNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldspecies = 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 fieldseekerMosquitoinspectionMods) Globalid(val uuid.UUID) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Globalid = func() uuid.UUID { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) GlobalidFunc(f func() uuid.UUID) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Globalid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetGlobalid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomGlobalid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Globalid = func() uuid.UUID {
return random_uuid_UUID(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) CreatedUser(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedUser = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetCreatedUser() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedUser = 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 fieldseekerMosquitoinspectionMods) RandomCreatedUser(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerMosquitoinspectionMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) CreatedDate(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedDate = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetCreatedDate() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedDate = 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 fieldseekerMosquitoinspectionMods) RandomCreatedDate(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedDate = 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 fieldseekerMosquitoinspectionMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.CreatedDate = 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 fieldseekerMosquitoinspectionMods) LastEditedUser(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedUser = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLastEditedUser() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedUser = 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 fieldseekerMosquitoinspectionMods) RandomLastEditedUser(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerMosquitoinspectionMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) LastEditedDate(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedDate = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLastEditedDate() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedDate = 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 fieldseekerMosquitoinspectionMods) RandomLastEditedDate(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedDate = 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 fieldseekerMosquitoinspectionMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.LastEditedDate = 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 fieldseekerMosquitoinspectionMods) Linelocid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Linelocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LinelocidFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Linelocid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLinelocid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomLinelocid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomLinelocidNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Pointlocid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pointlocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PointlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pointlocid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPointlocid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPointlocid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPointlocidNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Polygonlocid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Polygonlocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PolygonlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Polygonlocid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPolygonlocid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPolygonlocid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPolygonlocidNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Srid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Srid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) SridFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Srid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetSrid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSrid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSridNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Fieldtech(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) FieldtechFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Fieldtech = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetFieldtech() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomFieldtech(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Larvaepresent(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Larvaepresent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) LarvaepresentFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Larvaepresent = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetLarvaepresent() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Larvaepresent = 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 fieldseekerMosquitoinspectionMods) RandomLarvaepresent(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Larvaepresent = 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 fieldseekerMosquitoinspectionMods) RandomLarvaepresentNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Larvaepresent = 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 fieldseekerMosquitoinspectionMods) Pupaepresent(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pupaepresent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PupaepresentFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pupaepresent = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPupaepresent() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pupaepresent = 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 fieldseekerMosquitoinspectionMods) RandomPupaepresent(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pupaepresent = 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 fieldseekerMosquitoinspectionMods) RandomPupaepresentNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Pupaepresent = 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 fieldseekerMosquitoinspectionMods) Sdid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Sdid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) SdidFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Sdid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetSdid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSdid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSdidNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Sitecond(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Sitecond = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) SitecondFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Sitecond = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetSitecond() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSitecond(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomSitecondNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Positivecontainercount(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Positivecontainercount = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PositivecontainercountFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Positivecontainercount = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPositivecontainercount() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Positivecontainercount = 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 fieldseekerMosquitoinspectionMods) RandomPositivecontainercount(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Positivecontainercount = 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 fieldseekerMosquitoinspectionMods) RandomPositivecontainercountNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Positivecontainercount = 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 fieldseekerMosquitoinspectionMods) Creationdate(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Creationdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Creationdate = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetCreationdate() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCreationdate(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Creator(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Creator = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) CreatorFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Creator = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetCreator() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCreator(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Editdate(val null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Editdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Editdate = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetEditdate() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEditdate(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Editor(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Editor = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) EditorFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Editor = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetEditor() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEditor(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomEditorNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Jurisdiction(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Jurisdiction = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) JurisdictionFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Jurisdiction = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetJurisdiction() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Jurisdiction = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerMosquitoinspectionMods) RandomJurisdiction(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Jurisdiction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerMosquitoinspectionMods) RandomJurisdictionNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Jurisdiction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Visualmonitoring(val null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Visualmonitoring = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) VisualmonitoringFunc(f func() null.Val[int16]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Visualmonitoring = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetVisualmonitoring() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Visualmonitoring = 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 fieldseekerMosquitoinspectionMods) RandomVisualmonitoring(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Visualmonitoring = 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 fieldseekerMosquitoinspectionMods) RandomVisualmonitoringNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Visualmonitoring = 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 fieldseekerMosquitoinspectionMods) Vmcomments(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Vmcomments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) VmcommentsFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Vmcomments = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetVmcomments() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Vmcomments = 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 fieldseekerMosquitoinspectionMods) RandomVmcomments(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Vmcomments = 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 fieldseekerMosquitoinspectionMods) RandomVmcommentsNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Vmcomments = 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 fieldseekerMosquitoinspectionMods) Adminaction(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adminaction = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) AdminactionFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adminaction = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetAdminaction() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adminaction = 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 fieldseekerMosquitoinspectionMods) RandomAdminaction(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adminaction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "256")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerMosquitoinspectionMods) RandomAdminactionNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Adminaction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "256")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Ptaid(val null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Ptaid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) PtaidFunc(f func() null.Val[uuid.UUID]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Ptaid = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetPtaid() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPtaid(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomPtaidNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Geometry = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetGeometry() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomGeometry(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] {
return random_types_JSON_json_RawMessage_(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) Geospatial(val null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Geospatial = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) GeospatialFunc(f func() null.Val[string]) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Geospatial = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetGeospatial() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomGeospatial(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) Version(val int32) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Version = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) VersionFunc(f func() int32) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Version = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetVersion() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomVersion(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.Version = func() int32 {
return random_int32(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerMosquitoinspectionMods) OrganizationID(val int32) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.OrganizationID = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerMosquitoinspectionMods) OrganizationIDFunc(f func() int32) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.OrganizationID = f
})
}
// Clear any values for the column
func (m fieldseekerMosquitoinspectionMods) UnsetOrganizationID() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
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 fieldseekerMosquitoinspectionMods) RandomOrganizationID(f *faker.Faker) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.OrganizationID = func() int32 {
return random_int32(f)
}
})
}
func (m fieldseekerMosquitoinspectionMods) WithParentsCascading() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
if isDone, _ := fieldseekerMosquitoinspectionWithParentsCascadingCtx.Value(ctx); isDone {
return
}
ctx = fieldseekerMosquitoinspectionWithParentsCascadingCtx.WithValue(ctx, true)
{
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
m.WithOrganization(related).Apply(ctx, o)
}
})
}
func (m fieldseekerMosquitoinspectionMods) WithOrganization(rel *OrganizationTemplate) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.r.Organization = &fieldseekerMosquitoinspectionROrganizationR{
o: rel,
}
})
}
func (m fieldseekerMosquitoinspectionMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
related := o.f.NewOrganizationWithContext(ctx, mods...)
m.WithOrganization(related).Apply(ctx, o)
})
}
func (m fieldseekerMosquitoinspectionMods) WithExistingOrganization(em *models.Organization) FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.r.Organization = &fieldseekerMosquitoinspectionROrganizationR{
o: o.f.FromExistingOrganization(em),
}
})
}
func (m fieldseekerMosquitoinspectionMods) WithoutOrganization() FieldseekerMosquitoinspectionMod {
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
o.r.Organization = nil
})
}