nidus-sync/db/factory/fieldseeker.qamosquitoinspection.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

4281 lines
154 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 FieldseekerQamosquitoinspectionMod interface {
Apply(context.Context, *FieldseekerQamosquitoinspectionTemplate)
}
type FieldseekerQamosquitoinspectionModFunc func(context.Context, *FieldseekerQamosquitoinspectionTemplate)
func (f FieldseekerQamosquitoinspectionModFunc) Apply(ctx context.Context, n *FieldseekerQamosquitoinspectionTemplate) {
f(ctx, n)
}
type FieldseekerQamosquitoinspectionModSlice []FieldseekerQamosquitoinspectionMod
func (mods FieldseekerQamosquitoinspectionModSlice) Apply(ctx context.Context, n *FieldseekerQamosquitoinspectionTemplate) {
for _, f := range mods {
f.Apply(ctx, n)
}
}
// FieldseekerQamosquitoinspectionTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerQamosquitoinspectionTemplate struct {
Objectid func() int64
Posdips func() null.Val[int16]
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]
Globalid func() uuid.UUID
Startdatetime func() null.Val[time.Time]
Enddatetime func() null.Val[time.Time]
Winddir func() null.Val[string]
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]
LR func() null.Val[int16]
Negdips func() null.Val[int16]
Totalacres func() null.Val[float64]
Acresbreeding func() null.Val[float64]
Fish func() null.Val[int16]
Sitetype func() null.Val[string]
Breedingpotential func() null.Val[string]
Movingwater func() null.Val[int16]
Nowaterever func() null.Val[int16]
Mosquitohabitat func() null.Val[string]
Habvalue1 func() null.Val[int16]
Habvalue1percent func() null.Val[int16]
Habvalue2 func() null.Val[int16]
Habvalue2percent func() null.Val[int16]
Potential func() null.Val[int16]
Larvaepresent func() null.Val[int16]
Larvaeinsidetreatedarea func() null.Val[int16]
Larvaeoutsidetreatedarea func() null.Val[int16]
Larvaereason func() null.Val[string]
Aquaticorganisms func() null.Val[string]
Vegetation func() null.Val[string]
Sourcereduction func() null.Val[string]
Waterpresent func() null.Val[int16]
Watermovement1 func() null.Val[string]
Watermovement1percent func() null.Val[int16]
Watermovement2 func() null.Val[string]
Watermovement2percent func() null.Val[int16]
Soilconditions func() null.Val[string]
Waterduration func() null.Val[string]
Watersource func() null.Val[string]
Waterconditions func() null.Val[string]
Adultactivity func() null.Val[int16]
Linelocid func() null.Val[uuid.UUID]
Pointlocid func() null.Val[uuid.UUID]
Polygonlocid func() null.Val[uuid.UUID]
CreatedUser func() null.Val[string]
CreatedDate func() null.Val[time.Time]
LastEditedUser func() null.Val[string]
LastEditedDate func() null.Val[time.Time]
Fieldtech func() null.Val[string]
Creationdate func() null.Val[time.Time]
Creator func() null.Val[string]
Editdate func() null.Val[time.Time]
Editor func() null.Val[string]
Geometry func() types.JSON[json.RawMessage]
Geospatial func() null.Val[string]
Version func() int32
OrganizationID func() int32
r fieldseekerQamosquitoinspectionR
f *Factory
alreadyPersisted bool
}
type fieldseekerQamosquitoinspectionR struct {
Organization *fieldseekerQamosquitoinspectionROrganizationR
}
type fieldseekerQamosquitoinspectionROrganizationR struct {
o *OrganizationTemplate
}
// Apply mods to the FieldseekerQamosquitoinspectionTemplate
func (o *FieldseekerQamosquitoinspectionTemplate) Apply(ctx context.Context, mods ...FieldseekerQamosquitoinspectionMod) {
for _, mod := range mods {
mod.Apply(ctx, o)
}
}
// setModelRels creates and sets the relationships on *models.FieldseekerQamosquitoinspection
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerQamosquitoinspectionTemplate) setModelRels(o *models.FieldseekerQamosquitoinspection) {
if t.r.Organization != nil {
rel := t.r.Organization.o.Build()
rel.R.Qamosquitoinspections = append(rel.R.Qamosquitoinspections, o)
o.OrganizationID = rel.ID // h2
o.R.Organization = rel
}
}
// BuildSetter returns an *models.FieldseekerQamosquitoinspectionSetter
// this does nothing with the relationship templates
func (o FieldseekerQamosquitoinspectionTemplate) BuildSetter() *models.FieldseekerQamosquitoinspectionSetter {
m := &models.FieldseekerQamosquitoinspectionSetter{}
if o.Objectid != nil {
val := o.Objectid()
m.Objectid = omit.From(val)
}
if o.Posdips != nil {
val := o.Posdips()
m.Posdips = 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.Globalid != nil {
val := o.Globalid()
m.Globalid = omit.From(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.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.LR != nil {
val := o.LR()
m.LR = omitnull.FromNull(val)
}
if o.Negdips != nil {
val := o.Negdips()
m.Negdips = omitnull.FromNull(val)
}
if o.Totalacres != nil {
val := o.Totalacres()
m.Totalacres = omitnull.FromNull(val)
}
if o.Acresbreeding != nil {
val := o.Acresbreeding()
m.Acresbreeding = omitnull.FromNull(val)
}
if o.Fish != nil {
val := o.Fish()
m.Fish = omitnull.FromNull(val)
}
if o.Sitetype != nil {
val := o.Sitetype()
m.Sitetype = omitnull.FromNull(val)
}
if o.Breedingpotential != nil {
val := o.Breedingpotential()
m.Breedingpotential = omitnull.FromNull(val)
}
if o.Movingwater != nil {
val := o.Movingwater()
m.Movingwater = omitnull.FromNull(val)
}
if o.Nowaterever != nil {
val := o.Nowaterever()
m.Nowaterever = omitnull.FromNull(val)
}
if o.Mosquitohabitat != nil {
val := o.Mosquitohabitat()
m.Mosquitohabitat = omitnull.FromNull(val)
}
if o.Habvalue1 != nil {
val := o.Habvalue1()
m.Habvalue1 = omitnull.FromNull(val)
}
if o.Habvalue1percent != nil {
val := o.Habvalue1percent()
m.Habvalue1percent = omitnull.FromNull(val)
}
if o.Habvalue2 != nil {
val := o.Habvalue2()
m.Habvalue2 = omitnull.FromNull(val)
}
if o.Habvalue2percent != nil {
val := o.Habvalue2percent()
m.Habvalue2percent = omitnull.FromNull(val)
}
if o.Potential != nil {
val := o.Potential()
m.Potential = omitnull.FromNull(val)
}
if o.Larvaepresent != nil {
val := o.Larvaepresent()
m.Larvaepresent = omitnull.FromNull(val)
}
if o.Larvaeinsidetreatedarea != nil {
val := o.Larvaeinsidetreatedarea()
m.Larvaeinsidetreatedarea = omitnull.FromNull(val)
}
if o.Larvaeoutsidetreatedarea != nil {
val := o.Larvaeoutsidetreatedarea()
m.Larvaeoutsidetreatedarea = omitnull.FromNull(val)
}
if o.Larvaereason != nil {
val := o.Larvaereason()
m.Larvaereason = omitnull.FromNull(val)
}
if o.Aquaticorganisms != nil {
val := o.Aquaticorganisms()
m.Aquaticorganisms = omitnull.FromNull(val)
}
if o.Vegetation != nil {
val := o.Vegetation()
m.Vegetation = omitnull.FromNull(val)
}
if o.Sourcereduction != nil {
val := o.Sourcereduction()
m.Sourcereduction = omitnull.FromNull(val)
}
if o.Waterpresent != nil {
val := o.Waterpresent()
m.Waterpresent = omitnull.FromNull(val)
}
if o.Watermovement1 != nil {
val := o.Watermovement1()
m.Watermovement1 = omitnull.FromNull(val)
}
if o.Watermovement1percent != nil {
val := o.Watermovement1percent()
m.Watermovement1percent = omitnull.FromNull(val)
}
if o.Watermovement2 != nil {
val := o.Watermovement2()
m.Watermovement2 = omitnull.FromNull(val)
}
if o.Watermovement2percent != nil {
val := o.Watermovement2percent()
m.Watermovement2percent = omitnull.FromNull(val)
}
if o.Soilconditions != nil {
val := o.Soilconditions()
m.Soilconditions = omitnull.FromNull(val)
}
if o.Waterduration != nil {
val := o.Waterduration()
m.Waterduration = omitnull.FromNull(val)
}
if o.Watersource != nil {
val := o.Watersource()
m.Watersource = omitnull.FromNull(val)
}
if o.Waterconditions != nil {
val := o.Waterconditions()
m.Waterconditions = omitnull.FromNull(val)
}
if o.Adultactivity != nil {
val := o.Adultactivity()
m.Adultactivity = 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.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.Fieldtech != nil {
val := o.Fieldtech()
m.Fieldtech = 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.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.FieldseekerQamosquitoinspectionSetter
// this does nothing with the relationship templates
func (o FieldseekerQamosquitoinspectionTemplate) BuildManySetter(number int) []*models.FieldseekerQamosquitoinspectionSetter {
m := make([]*models.FieldseekerQamosquitoinspectionSetter, number)
for i := range m {
m[i] = o.BuildSetter()
}
return m
}
// Build returns an *models.FieldseekerQamosquitoinspection
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerQamosquitoinspectionTemplate.Create
func (o FieldseekerQamosquitoinspectionTemplate) Build() *models.FieldseekerQamosquitoinspection {
m := &models.FieldseekerQamosquitoinspection{}
if o.Objectid != nil {
m.Objectid = o.Objectid()
}
if o.Posdips != nil {
m.Posdips = o.Posdips()
}
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.Globalid != nil {
m.Globalid = o.Globalid()
}
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.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.LR != nil {
m.LR = o.LR()
}
if o.Negdips != nil {
m.Negdips = o.Negdips()
}
if o.Totalacres != nil {
m.Totalacres = o.Totalacres()
}
if o.Acresbreeding != nil {
m.Acresbreeding = o.Acresbreeding()
}
if o.Fish != nil {
m.Fish = o.Fish()
}
if o.Sitetype != nil {
m.Sitetype = o.Sitetype()
}
if o.Breedingpotential != nil {
m.Breedingpotential = o.Breedingpotential()
}
if o.Movingwater != nil {
m.Movingwater = o.Movingwater()
}
if o.Nowaterever != nil {
m.Nowaterever = o.Nowaterever()
}
if o.Mosquitohabitat != nil {
m.Mosquitohabitat = o.Mosquitohabitat()
}
if o.Habvalue1 != nil {
m.Habvalue1 = o.Habvalue1()
}
if o.Habvalue1percent != nil {
m.Habvalue1percent = o.Habvalue1percent()
}
if o.Habvalue2 != nil {
m.Habvalue2 = o.Habvalue2()
}
if o.Habvalue2percent != nil {
m.Habvalue2percent = o.Habvalue2percent()
}
if o.Potential != nil {
m.Potential = o.Potential()
}
if o.Larvaepresent != nil {
m.Larvaepresent = o.Larvaepresent()
}
if o.Larvaeinsidetreatedarea != nil {
m.Larvaeinsidetreatedarea = o.Larvaeinsidetreatedarea()
}
if o.Larvaeoutsidetreatedarea != nil {
m.Larvaeoutsidetreatedarea = o.Larvaeoutsidetreatedarea()
}
if o.Larvaereason != nil {
m.Larvaereason = o.Larvaereason()
}
if o.Aquaticorganisms != nil {
m.Aquaticorganisms = o.Aquaticorganisms()
}
if o.Vegetation != nil {
m.Vegetation = o.Vegetation()
}
if o.Sourcereduction != nil {
m.Sourcereduction = o.Sourcereduction()
}
if o.Waterpresent != nil {
m.Waterpresent = o.Waterpresent()
}
if o.Watermovement1 != nil {
m.Watermovement1 = o.Watermovement1()
}
if o.Watermovement1percent != nil {
m.Watermovement1percent = o.Watermovement1percent()
}
if o.Watermovement2 != nil {
m.Watermovement2 = o.Watermovement2()
}
if o.Watermovement2percent != nil {
m.Watermovement2percent = o.Watermovement2percent()
}
if o.Soilconditions != nil {
m.Soilconditions = o.Soilconditions()
}
if o.Waterduration != nil {
m.Waterduration = o.Waterduration()
}
if o.Watersource != nil {
m.Watersource = o.Watersource()
}
if o.Waterconditions != nil {
m.Waterconditions = o.Waterconditions()
}
if o.Adultactivity != nil {
m.Adultactivity = o.Adultactivity()
}
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.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.Fieldtech != nil {
m.Fieldtech = o.Fieldtech()
}
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.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.FieldseekerQamosquitoinspectionSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerQamosquitoinspectionTemplate.CreateMany
func (o FieldseekerQamosquitoinspectionTemplate) BuildMany(number int) models.FieldseekerQamosquitoinspectionSlice {
m := make(models.FieldseekerQamosquitoinspectionSlice, number)
for i := range m {
m[i] = o.Build()
}
return m
}
func ensureCreatableFieldseekerQamosquitoinspection(m *models.FieldseekerQamosquitoinspectionSetter) {
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.FieldseekerQamosquitoinspection
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerQamosquitoinspectionTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerQamosquitoinspection) error {
var err error
return err
}
// Create builds a fieldseekerQamosquitoinspection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerQamosquitoinspectionTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerQamosquitoinspection, error) {
var err error
opt := o.BuildSetter()
ensureCreatableFieldseekerQamosquitoinspection(opt)
if o.r.Organization == nil {
FieldseekerQamosquitoinspectionMods.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.FieldseekerQamosquitoinspections.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 fieldseekerQamosquitoinspection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerQamosquitoinspectionTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerQamosquitoinspection {
m, err := o.Create(ctx, exec)
if err != nil {
panic(err)
}
return m
}
// CreateOrFail builds a fieldseekerQamosquitoinspection 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 *FieldseekerQamosquitoinspectionTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerQamosquitoinspection {
tb.Helper()
m, err := o.Create(ctx, exec)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// CreateMany builds multiple fieldseekerQamosquitoinspections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerQamosquitoinspectionTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerQamosquitoinspectionSlice, error) {
var err error
m := make(models.FieldseekerQamosquitoinspectionSlice, number)
for i := range m {
m[i], err = o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
return m, nil
}
// MustCreateMany builds multiple fieldseekerQamosquitoinspections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerQamosquitoinspectionTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerQamosquitoinspectionSlice {
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
panic(err)
}
return m
}
// CreateManyOrFail builds multiple fieldseekerQamosquitoinspections 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 FieldseekerQamosquitoinspectionTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerQamosquitoinspectionSlice {
tb.Helper()
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// FieldseekerQamosquitoinspection has methods that act as mods for the FieldseekerQamosquitoinspectionTemplate
var FieldseekerQamosquitoinspectionMods fieldseekerQamosquitoinspectionMods
type fieldseekerQamosquitoinspectionMods struct{}
func (m fieldseekerQamosquitoinspectionMods) RandomizeAllColumns(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModSlice{
FieldseekerQamosquitoinspectionMods.RandomObjectid(f),
FieldseekerQamosquitoinspectionMods.RandomPosdips(f),
FieldseekerQamosquitoinspectionMods.RandomActiontaken(f),
FieldseekerQamosquitoinspectionMods.RandomComments(f),
FieldseekerQamosquitoinspectionMods.RandomAvetemp(f),
FieldseekerQamosquitoinspectionMods.RandomWindspeed(f),
FieldseekerQamosquitoinspectionMods.RandomRaingauge(f),
FieldseekerQamosquitoinspectionMods.RandomGlobalid(f),
FieldseekerQamosquitoinspectionMods.RandomStartdatetime(f),
FieldseekerQamosquitoinspectionMods.RandomEnddatetime(f),
FieldseekerQamosquitoinspectionMods.RandomWinddir(f),
FieldseekerQamosquitoinspectionMods.RandomReviewed(f),
FieldseekerQamosquitoinspectionMods.RandomReviewedby(f),
FieldseekerQamosquitoinspectionMods.RandomRevieweddate(f),
FieldseekerQamosquitoinspectionMods.RandomLocationname(f),
FieldseekerQamosquitoinspectionMods.RandomZone(f),
FieldseekerQamosquitoinspectionMods.RandomRecordstatus(f),
FieldseekerQamosquitoinspectionMods.RandomZone2(f),
FieldseekerQamosquitoinspectionMods.RandomLR(f),
FieldseekerQamosquitoinspectionMods.RandomNegdips(f),
FieldseekerQamosquitoinspectionMods.RandomTotalacres(f),
FieldseekerQamosquitoinspectionMods.RandomAcresbreeding(f),
FieldseekerQamosquitoinspectionMods.RandomFish(f),
FieldseekerQamosquitoinspectionMods.RandomSitetype(f),
FieldseekerQamosquitoinspectionMods.RandomBreedingpotential(f),
FieldseekerQamosquitoinspectionMods.RandomMovingwater(f),
FieldseekerQamosquitoinspectionMods.RandomNowaterever(f),
FieldseekerQamosquitoinspectionMods.RandomMosquitohabitat(f),
FieldseekerQamosquitoinspectionMods.RandomHabvalue1(f),
FieldseekerQamosquitoinspectionMods.RandomHabvalue1percent(f),
FieldseekerQamosquitoinspectionMods.RandomHabvalue2(f),
FieldseekerQamosquitoinspectionMods.RandomHabvalue2percent(f),
FieldseekerQamosquitoinspectionMods.RandomPotential(f),
FieldseekerQamosquitoinspectionMods.RandomLarvaepresent(f),
FieldseekerQamosquitoinspectionMods.RandomLarvaeinsidetreatedarea(f),
FieldseekerQamosquitoinspectionMods.RandomLarvaeoutsidetreatedarea(f),
FieldseekerQamosquitoinspectionMods.RandomLarvaereason(f),
FieldseekerQamosquitoinspectionMods.RandomAquaticorganisms(f),
FieldseekerQamosquitoinspectionMods.RandomVegetation(f),
FieldseekerQamosquitoinspectionMods.RandomSourcereduction(f),
FieldseekerQamosquitoinspectionMods.RandomWaterpresent(f),
FieldseekerQamosquitoinspectionMods.RandomWatermovement1(f),
FieldseekerQamosquitoinspectionMods.RandomWatermovement1percent(f),
FieldseekerQamosquitoinspectionMods.RandomWatermovement2(f),
FieldseekerQamosquitoinspectionMods.RandomWatermovement2percent(f),
FieldseekerQamosquitoinspectionMods.RandomSoilconditions(f),
FieldseekerQamosquitoinspectionMods.RandomWaterduration(f),
FieldseekerQamosquitoinspectionMods.RandomWatersource(f),
FieldseekerQamosquitoinspectionMods.RandomWaterconditions(f),
FieldseekerQamosquitoinspectionMods.RandomAdultactivity(f),
FieldseekerQamosquitoinspectionMods.RandomLinelocid(f),
FieldseekerQamosquitoinspectionMods.RandomPointlocid(f),
FieldseekerQamosquitoinspectionMods.RandomPolygonlocid(f),
FieldseekerQamosquitoinspectionMods.RandomCreatedUser(f),
FieldseekerQamosquitoinspectionMods.RandomCreatedDate(f),
FieldseekerQamosquitoinspectionMods.RandomLastEditedUser(f),
FieldseekerQamosquitoinspectionMods.RandomLastEditedDate(f),
FieldseekerQamosquitoinspectionMods.RandomFieldtech(f),
FieldseekerQamosquitoinspectionMods.RandomCreationdate(f),
FieldseekerQamosquitoinspectionMods.RandomCreator(f),
FieldseekerQamosquitoinspectionMods.RandomEditdate(f),
FieldseekerQamosquitoinspectionMods.RandomEditor(f),
FieldseekerQamosquitoinspectionMods.RandomGeometry(f),
FieldseekerQamosquitoinspectionMods.RandomGeospatial(f),
FieldseekerQamosquitoinspectionMods.RandomVersion(f),
FieldseekerQamosquitoinspectionMods.RandomOrganizationID(f),
}
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Objectid(val int64) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Objectid = func() int64 { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) ObjectidFunc(f func() int64) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Objectid = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetObjectid() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomObjectid(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Objectid = func() int64 {
return random_int64(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Posdips(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Posdips = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) PosdipsFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Posdips = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetPosdips() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPosdips(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPosdipsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Actiontaken(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Actiontaken = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) ActiontakenFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Actiontaken = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetActiontaken() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomActiontaken(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Actiontaken = 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 fieldseekerQamosquitoinspectionMods) RandomActiontakenNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Actiontaken = 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 fieldseekerQamosquitoinspectionMods) Comments(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Comments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) CommentsFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Comments = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetComments() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomComments(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Avetemp(val null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Avetemp = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) AvetempFunc(f func() null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Avetemp = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetAvetemp() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomAvetemp(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomAvetempNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Windspeed(val null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Windspeed = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WindspeedFunc(f func() null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Windspeed = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWindspeed() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomWindspeed(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomWindspeedNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Raingauge(val null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Raingauge = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) RaingaugeFunc(f func() null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Raingauge = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetRaingauge() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRaingauge(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRaingaugeNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Globalid(val uuid.UUID) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Globalid = func() uuid.UUID { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) GlobalidFunc(f func() uuid.UUID) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Globalid = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetGlobalid() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomGlobalid(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Globalid = func() uuid.UUID {
return random_uuid_UUID(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Startdatetime(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Startdatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Startdatetime = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetStartdatetime() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomStartdatetime(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Enddatetime(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Enddatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Enddatetime = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetEnddatetime() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEnddatetime(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Winddir(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Winddir = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WinddirFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Winddir = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWinddir() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomWinddir(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomWinddirNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Reviewed(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Reviewed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Reviewed = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetReviewed() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomReviewed(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Reviewedby(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Reviewedby = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Reviewedby = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetReviewedby() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomReviewedby(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Revieweddate(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Revieweddate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Revieweddate = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetRevieweddate() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRevieweddate(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Locationname(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Locationname = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LocationnameFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Locationname = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLocationname() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLocationname(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Zone(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Zone = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) ZoneFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Zone = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetZone() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomZone(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomZoneNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Recordstatus(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Recordstatus = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Recordstatus = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetRecordstatus() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRecordstatus(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Zone2(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Zone2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Zone2Func(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Zone2 = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetZone2() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomZone2(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomZone2NotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) LR(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LR = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LRFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LR = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLR() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LR = 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 fieldseekerQamosquitoinspectionMods) RandomLR(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LR = 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 fieldseekerQamosquitoinspectionMods) RandomLRNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LR = 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 fieldseekerQamosquitoinspectionMods) Negdips(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Negdips = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) NegdipsFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Negdips = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetNegdips() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Negdips = 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 fieldseekerQamosquitoinspectionMods) RandomNegdips(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Negdips = 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 fieldseekerQamosquitoinspectionMods) RandomNegdipsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Negdips = 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 fieldseekerQamosquitoinspectionMods) Totalacres(val null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Totalacres = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) TotalacresFunc(f func() null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Totalacres = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetTotalacres() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Totalacres = 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 fieldseekerQamosquitoinspectionMods) RandomTotalacres(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Totalacres = 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 fieldseekerQamosquitoinspectionMods) RandomTotalacresNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Totalacres = 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 fieldseekerQamosquitoinspectionMods) Acresbreeding(val null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Acresbreeding = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) AcresbreedingFunc(f func() null.Val[float64]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Acresbreeding = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetAcresbreeding() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Acresbreeding = 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 fieldseekerQamosquitoinspectionMods) RandomAcresbreeding(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Acresbreeding = 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 fieldseekerQamosquitoinspectionMods) RandomAcresbreedingNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Acresbreeding = 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 fieldseekerQamosquitoinspectionMods) Fish(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fish = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) FishFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fish = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetFish() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fish = 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 fieldseekerQamosquitoinspectionMods) RandomFish(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fish = 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 fieldseekerQamosquitoinspectionMods) RandomFishNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fish = 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 fieldseekerQamosquitoinspectionMods) Sitetype(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sitetype = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) SitetypeFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sitetype = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetSitetype() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sitetype = 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 fieldseekerQamosquitoinspectionMods) RandomSitetype(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sitetype = 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 fieldseekerQamosquitoinspectionMods) RandomSitetypeNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sitetype = 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 fieldseekerQamosquitoinspectionMods) Breedingpotential(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Breedingpotential = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) BreedingpotentialFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Breedingpotential = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetBreedingpotential() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Breedingpotential = 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 fieldseekerQamosquitoinspectionMods) RandomBreedingpotential(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Breedingpotential = 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 fieldseekerQamosquitoinspectionMods) RandomBreedingpotentialNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Breedingpotential = 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 fieldseekerQamosquitoinspectionMods) Movingwater(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Movingwater = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) MovingwaterFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Movingwater = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetMovingwater() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Movingwater = 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 fieldseekerQamosquitoinspectionMods) RandomMovingwater(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Movingwater = 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 fieldseekerQamosquitoinspectionMods) RandomMovingwaterNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Movingwater = 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 fieldseekerQamosquitoinspectionMods) Nowaterever(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Nowaterever = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) NowatereverFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Nowaterever = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetNowaterever() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Nowaterever = 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 fieldseekerQamosquitoinspectionMods) RandomNowaterever(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Nowaterever = 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 fieldseekerQamosquitoinspectionMods) RandomNowatereverNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Nowaterever = 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 fieldseekerQamosquitoinspectionMods) Mosquitohabitat(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Mosquitohabitat = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) MosquitohabitatFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Mosquitohabitat = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetMosquitohabitat() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Mosquitohabitat = 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 fieldseekerQamosquitoinspectionMods) RandomMosquitohabitat(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Mosquitohabitat = 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 fieldseekerQamosquitoinspectionMods) RandomMosquitohabitatNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Mosquitohabitat = 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 fieldseekerQamosquitoinspectionMods) Habvalue1(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1 = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Habvalue1Func(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1 = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetHabvalue1() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1 = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue1(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1 = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue1NotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1 = 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 fieldseekerQamosquitoinspectionMods) Habvalue1percent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1percent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Habvalue1percentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1percent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetHabvalue1percent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1percent = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue1percent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1percent = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue1percentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue1percent = 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 fieldseekerQamosquitoinspectionMods) Habvalue2(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2 = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Habvalue2Func(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2 = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetHabvalue2() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2 = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue2(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2 = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue2NotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2 = 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 fieldseekerQamosquitoinspectionMods) Habvalue2percent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2percent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Habvalue2percentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2percent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetHabvalue2percent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2percent = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue2percent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2percent = 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 fieldseekerQamosquitoinspectionMods) RandomHabvalue2percentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Habvalue2percent = 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 fieldseekerQamosquitoinspectionMods) Potential(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Potential = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) PotentialFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Potential = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetPotential() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Potential = 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 fieldseekerQamosquitoinspectionMods) RandomPotential(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Potential = 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 fieldseekerQamosquitoinspectionMods) RandomPotentialNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Potential = 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 fieldseekerQamosquitoinspectionMods) Larvaepresent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaepresent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LarvaepresentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaepresent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLarvaepresent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLarvaepresent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLarvaepresentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Larvaeinsidetreatedarea(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeinsidetreatedarea = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LarvaeinsidetreatedareaFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeinsidetreatedarea = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLarvaeinsidetreatedarea() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeinsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaeinsidetreatedarea(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeinsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaeinsidetreatedareaNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeinsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) Larvaeoutsidetreatedarea(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeoutsidetreatedarea = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LarvaeoutsidetreatedareaFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeoutsidetreatedarea = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLarvaeoutsidetreatedarea() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeoutsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaeoutsidetreatedarea(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeoutsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaeoutsidetreatedareaNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaeoutsidetreatedarea = 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 fieldseekerQamosquitoinspectionMods) Larvaereason(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaereason = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LarvaereasonFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaereason = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLarvaereason() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaereason = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaereason(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaereason = 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 fieldseekerQamosquitoinspectionMods) RandomLarvaereasonNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Larvaereason = 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 fieldseekerQamosquitoinspectionMods) Aquaticorganisms(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Aquaticorganisms = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) AquaticorganismsFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Aquaticorganisms = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetAquaticorganisms() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Aquaticorganisms = 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 fieldseekerQamosquitoinspectionMods) RandomAquaticorganisms(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Aquaticorganisms = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "500")
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 fieldseekerQamosquitoinspectionMods) RandomAquaticorganismsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Aquaticorganisms = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "500")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Vegetation(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Vegetation = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) VegetationFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Vegetation = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetVegetation() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Vegetation = 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 fieldseekerQamosquitoinspectionMods) RandomVegetation(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Vegetation = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "500")
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 fieldseekerQamosquitoinspectionMods) RandomVegetationNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Vegetation = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "500")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Sourcereduction(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sourcereduction = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) SourcereductionFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sourcereduction = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetSourcereduction() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sourcereduction = 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 fieldseekerQamosquitoinspectionMods) RandomSourcereduction(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sourcereduction = 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 fieldseekerQamosquitoinspectionMods) RandomSourcereductionNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Sourcereduction = 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 fieldseekerQamosquitoinspectionMods) Waterpresent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterpresent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WaterpresentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterpresent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWaterpresent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterpresent = 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 fieldseekerQamosquitoinspectionMods) RandomWaterpresent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterpresent = 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 fieldseekerQamosquitoinspectionMods) RandomWaterpresentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterpresent = 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 fieldseekerQamosquitoinspectionMods) Watermovement1(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Watermovement1Func(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1 = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWatermovement1() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1 = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement1(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1 = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement1NotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1 = 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 fieldseekerQamosquitoinspectionMods) Watermovement1percent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1percent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Watermovement1percentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1percent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWatermovement1percent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1percent = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement1percent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1percent = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement1percentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement1percent = 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 fieldseekerQamosquitoinspectionMods) Watermovement2(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Watermovement2Func(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2 = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWatermovement2() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2 = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement2(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2 = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement2NotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2 = 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 fieldseekerQamosquitoinspectionMods) Watermovement2percent(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2percent = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) Watermovement2percentFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2percent = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWatermovement2percent() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2percent = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement2percent(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2percent = 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 fieldseekerQamosquitoinspectionMods) RandomWatermovement2percentNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watermovement2percent = 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 fieldseekerQamosquitoinspectionMods) Soilconditions(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Soilconditions = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) SoilconditionsFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Soilconditions = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetSoilconditions() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Soilconditions = 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 fieldseekerQamosquitoinspectionMods) RandomSoilconditions(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Soilconditions = 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 fieldseekerQamosquitoinspectionMods) RandomSoilconditionsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Soilconditions = 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 fieldseekerQamosquitoinspectionMods) Waterduration(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterduration = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WaterdurationFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterduration = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWaterduration() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterduration = 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 fieldseekerQamosquitoinspectionMods) RandomWaterduration(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterduration = 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 fieldseekerQamosquitoinspectionMods) RandomWaterdurationNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterduration = 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 fieldseekerQamosquitoinspectionMods) Watersource(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watersource = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WatersourceFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watersource = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWatersource() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watersource = 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 fieldseekerQamosquitoinspectionMods) RandomWatersource(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watersource = 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 fieldseekerQamosquitoinspectionMods) RandomWatersourceNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Watersource = 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 fieldseekerQamosquitoinspectionMods) Waterconditions(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterconditions = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) WaterconditionsFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterconditions = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetWaterconditions() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterconditions = 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 fieldseekerQamosquitoinspectionMods) RandomWaterconditions(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterconditions = 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 fieldseekerQamosquitoinspectionMods) RandomWaterconditionsNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Waterconditions = 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 fieldseekerQamosquitoinspectionMods) Adultactivity(val null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Adultactivity = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) AdultactivityFunc(f func() null.Val[int16]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Adultactivity = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetAdultactivity() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Adultactivity = 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 fieldseekerQamosquitoinspectionMods) RandomAdultactivity(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Adultactivity = 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 fieldseekerQamosquitoinspectionMods) RandomAdultactivityNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Adultactivity = 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 fieldseekerQamosquitoinspectionMods) Linelocid(val null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Linelocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LinelocidFunc(f func() null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Linelocid = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLinelocid() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLinelocid(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLinelocidNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Pointlocid(val null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Pointlocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) PointlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Pointlocid = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetPointlocid() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPointlocid(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPointlocidNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Polygonlocid(val null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Polygonlocid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) PolygonlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Polygonlocid = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetPolygonlocid() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPolygonlocid(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomPolygonlocidNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) CreatedUser(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.CreatedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.CreatedUser = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetCreatedUser() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreatedUser(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) CreatedDate(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.CreatedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.CreatedDate = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetCreatedDate() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreatedDate(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) LastEditedUser(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LastEditedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LastEditedUser = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLastEditedUser() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLastEditedUser(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) LastEditedDate(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LastEditedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.LastEditedDate = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetLastEditedDate() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLastEditedDate(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Fieldtech(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fieldtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) FieldtechFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Fieldtech = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetFieldtech() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomFieldtech(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Creationdate(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Creationdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Creationdate = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetCreationdate() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreationdate(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Creator(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Creator = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) CreatorFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Creator = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetCreator() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreator(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Editdate(val null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Editdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Editdate = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetEditdate() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEditdate(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Editor(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Editor = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) EditorFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Editor = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetEditor() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEditor(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomEditorNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Geometry = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetGeometry() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomGeometry(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] {
return random_types_JSON_json_RawMessage_(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) Geospatial(val null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Geospatial = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) GeospatialFunc(f func() null.Val[string]) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Geospatial = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetGeospatial() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomGeospatial(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) Version(val int32) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Version = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) VersionFunc(f func() int32) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Version = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetVersion() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomVersion(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.Version = func() int32 {
return random_int32(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerQamosquitoinspectionMods) OrganizationID(val int32) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.OrganizationID = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerQamosquitoinspectionMods) OrganizationIDFunc(f func() int32) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.OrganizationID = f
})
}
// Clear any values for the column
func (m fieldseekerQamosquitoinspectionMods) UnsetOrganizationID() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
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 fieldseekerQamosquitoinspectionMods) RandomOrganizationID(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.OrganizationID = func() int32 {
return random_int32(f)
}
})
}
func (m fieldseekerQamosquitoinspectionMods) WithParentsCascading() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
if isDone, _ := fieldseekerQamosquitoinspectionWithParentsCascadingCtx.Value(ctx); isDone {
return
}
ctx = fieldseekerQamosquitoinspectionWithParentsCascadingCtx.WithValue(ctx, true)
{
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
m.WithOrganization(related).Apply(ctx, o)
}
})
}
func (m fieldseekerQamosquitoinspectionMods) WithOrganization(rel *OrganizationTemplate) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.r.Organization = &fieldseekerQamosquitoinspectionROrganizationR{
o: rel,
}
})
}
func (m fieldseekerQamosquitoinspectionMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
related := o.f.NewOrganizationWithContext(ctx, mods...)
m.WithOrganization(related).Apply(ctx, o)
})
}
func (m fieldseekerQamosquitoinspectionMods) WithExistingOrganization(em *models.Organization) FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.r.Organization = &fieldseekerQamosquitoinspectionROrganizationR{
o: o.f.FromExistingOrganization(em),
}
})
}
func (m fieldseekerQamosquitoinspectionMods) WithoutOrganization() FieldseekerQamosquitoinspectionMod {
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
o.r.Organization = nil
})
}