2025-11-07 08:34:32 +00:00
|
|
|
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
|
|
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
|
|
|
|
|
|
package factory
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"testing"
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
models "github.com/Gleipnir-Technology/nidus-sync/models"
|
|
|
|
|
"github.com/aarondl/opt/null"
|
|
|
|
|
"github.com/aarondl/opt/omit"
|
|
|
|
|
"github.com/aarondl/opt/omitnull"
|
|
|
|
|
"github.com/jaswdr/faker/v2"
|
|
|
|
|
"github.com/stephenafamo/bob"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type FSQamosquitoinspectionMod interface {
|
|
|
|
|
Apply(context.Context, *FSQamosquitoinspectionTemplate)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FSQamosquitoinspectionModFunc func(context.Context, *FSQamosquitoinspectionTemplate)
|
|
|
|
|
|
|
|
|
|
func (f FSQamosquitoinspectionModFunc) Apply(ctx context.Context, n *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
f(ctx, n)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FSQamosquitoinspectionModSlice []FSQamosquitoinspectionMod
|
|
|
|
|
|
|
|
|
|
func (mods FSQamosquitoinspectionModSlice) Apply(ctx context.Context, n *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
for _, f := range mods {
|
|
|
|
|
f.Apply(ctx, n)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FSQamosquitoinspectionTemplate is an object representing the database table.
|
|
|
|
|
// all columns are optional and should be set by mods
|
|
|
|
|
type FSQamosquitoinspectionTemplate struct {
|
2025-11-07 09:30:31 +00:00
|
|
|
OrganizationID func() int32
|
2025-11-07 08:34:32 +00:00
|
|
|
Acresbreeding func() null.Val[float64]
|
|
|
|
|
Actiontaken func() null.Val[string]
|
|
|
|
|
Adultactivity func() null.Val[int16]
|
|
|
|
|
Aquaticorganisms func() null.Val[string]
|
|
|
|
|
Avetemp func() null.Val[float64]
|
|
|
|
|
Breedingpotential func() null.Val[string]
|
|
|
|
|
Comments func() null.Val[string]
|
|
|
|
|
Creationdate func() null.Val[int64]
|
|
|
|
|
Creator func() null.Val[string]
|
|
|
|
|
Enddatetime func() null.Val[int64]
|
|
|
|
|
Editdate func() null.Val[int64]
|
|
|
|
|
Editor func() null.Val[string]
|
|
|
|
|
Fieldtech func() null.Val[string]
|
|
|
|
|
Fish func() null.Val[int16]
|
2025-11-13 23:48:41 +00:00
|
|
|
Globalid func() string
|
2025-11-07 08:34:32 +00:00
|
|
|
Habvalue1 func() null.Val[int16]
|
|
|
|
|
Habvalue1percent func() null.Val[int16]
|
|
|
|
|
Habvalue2 func() null.Val[int16]
|
|
|
|
|
Habvalue2percent func() null.Val[int16]
|
|
|
|
|
Larvaeinsidetreatedarea func() null.Val[int16]
|
|
|
|
|
Larvaeoutsidetreatedarea func() null.Val[int16]
|
|
|
|
|
Larvaepresent func() null.Val[int16]
|
|
|
|
|
Larvaereason func() null.Val[string]
|
|
|
|
|
Linelocid func() null.Val[string]
|
|
|
|
|
Locationname func() null.Val[string]
|
|
|
|
|
LR func() null.Val[int16]
|
|
|
|
|
Mosquitohabitat func() null.Val[string]
|
|
|
|
|
Movingwater func() null.Val[int16]
|
|
|
|
|
Negdips func() null.Val[int16]
|
|
|
|
|
Nowaterever func() null.Val[int16]
|
|
|
|
|
Objectid func() int32
|
|
|
|
|
Pointlocid func() null.Val[string]
|
|
|
|
|
Polygonlocid func() null.Val[string]
|
|
|
|
|
Posdips func() null.Val[int16]
|
|
|
|
|
Potential func() null.Val[int16]
|
|
|
|
|
Raingauge func() null.Val[float64]
|
|
|
|
|
Recordstatus func() null.Val[int16]
|
|
|
|
|
Reviewed func() null.Val[int16]
|
|
|
|
|
Reviewedby func() null.Val[string]
|
|
|
|
|
Revieweddate func() null.Val[int64]
|
|
|
|
|
Sitetype func() null.Val[string]
|
|
|
|
|
Soilconditions func() null.Val[string]
|
|
|
|
|
Sourcereduction func() null.Val[string]
|
|
|
|
|
Startdatetime func() null.Val[int64]
|
|
|
|
|
Totalacres func() null.Val[float64]
|
|
|
|
|
Vegetation func() null.Val[string]
|
|
|
|
|
Waterconditions func() null.Val[string]
|
|
|
|
|
Waterduration func() null.Val[string]
|
|
|
|
|
Watermovement1 func() null.Val[string]
|
|
|
|
|
Watermovement1percent func() null.Val[int16]
|
|
|
|
|
Watermovement2 func() null.Val[string]
|
|
|
|
|
Watermovement2percent func() null.Val[int16]
|
|
|
|
|
Waterpresent func() null.Val[int16]
|
|
|
|
|
Watersource func() null.Val[string]
|
|
|
|
|
Winddir func() null.Val[string]
|
|
|
|
|
Windspeed func() null.Val[float64]
|
|
|
|
|
Zone func() null.Val[string]
|
|
|
|
|
Zone2 func() null.Val[string]
|
|
|
|
|
CreatedDate func() null.Val[int64]
|
|
|
|
|
CreatedUser func() null.Val[string]
|
|
|
|
|
GeometryX func() null.Val[float64]
|
|
|
|
|
GeometryY func() null.Val[float64]
|
|
|
|
|
LastEditedDate func() null.Val[int64]
|
|
|
|
|
LastEditedUser func() null.Val[string]
|
|
|
|
|
Updated func() time.Time
|
|
|
|
|
|
|
|
|
|
r fsQamosquitoinspectionR
|
|
|
|
|
f *Factory
|
|
|
|
|
|
|
|
|
|
alreadyPersisted bool
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fsQamosquitoinspectionR struct {
|
|
|
|
|
Organization *fsQamosquitoinspectionROrganizationR
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type fsQamosquitoinspectionROrganizationR struct {
|
|
|
|
|
o *OrganizationTemplate
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Apply mods to the FSQamosquitoinspectionTemplate
|
|
|
|
|
func (o *FSQamosquitoinspectionTemplate) Apply(ctx context.Context, mods ...FSQamosquitoinspectionMod) {
|
|
|
|
|
for _, mod := range mods {
|
|
|
|
|
mod.Apply(ctx, o)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// setModelRels creates and sets the relationships on *models.FSQamosquitoinspection
|
|
|
|
|
// according to the relationships in the template. Nothing is inserted into the db
|
|
|
|
|
func (t FSQamosquitoinspectionTemplate) setModelRels(o *models.FSQamosquitoinspection) {
|
|
|
|
|
if t.r.Organization != nil {
|
|
|
|
|
rel := t.r.Organization.o.Build()
|
|
|
|
|
rel.R.FSQamosquitoinspections = append(rel.R.FSQamosquitoinspections, o)
|
2025-11-07 09:30:31 +00:00
|
|
|
o.OrganizationID = rel.ID // h2
|
2025-11-07 08:34:32 +00:00
|
|
|
o.R.Organization = rel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BuildSetter returns an *models.FSQamosquitoinspectionSetter
|
|
|
|
|
// this does nothing with the relationship templates
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) BuildSetter() *models.FSQamosquitoinspectionSetter {
|
|
|
|
|
m := &models.FSQamosquitoinspectionSetter{}
|
|
|
|
|
|
|
|
|
|
if o.OrganizationID != nil {
|
|
|
|
|
val := o.OrganizationID()
|
2025-11-07 09:30:31 +00:00
|
|
|
m.OrganizationID = omit.From(val)
|
2025-11-07 08:34:32 +00:00
|
|
|
}
|
|
|
|
|
if o.Acresbreeding != nil {
|
|
|
|
|
val := o.Acresbreeding()
|
|
|
|
|
m.Acresbreeding = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Actiontaken != nil {
|
|
|
|
|
val := o.Actiontaken()
|
|
|
|
|
m.Actiontaken = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Adultactivity != nil {
|
|
|
|
|
val := o.Adultactivity()
|
|
|
|
|
m.Adultactivity = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Aquaticorganisms != nil {
|
|
|
|
|
val := o.Aquaticorganisms()
|
|
|
|
|
m.Aquaticorganisms = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Avetemp != nil {
|
|
|
|
|
val := o.Avetemp()
|
|
|
|
|
m.Avetemp = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Breedingpotential != nil {
|
|
|
|
|
val := o.Breedingpotential()
|
|
|
|
|
m.Breedingpotential = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Comments != nil {
|
|
|
|
|
val := o.Comments()
|
|
|
|
|
m.Comments = 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.Enddatetime != nil {
|
|
|
|
|
val := o.Enddatetime()
|
|
|
|
|
m.Enddatetime = 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.Fieldtech != nil {
|
|
|
|
|
val := o.Fieldtech()
|
|
|
|
|
m.Fieldtech = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Fish != nil {
|
|
|
|
|
val := o.Fish()
|
|
|
|
|
m.Fish = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Globalid != nil {
|
|
|
|
|
val := o.Globalid()
|
2025-11-13 23:48:41 +00:00
|
|
|
m.Globalid = omit.From(val)
|
2025-11-07 08:34:32 +00:00
|
|
|
}
|
|
|
|
|
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.Larvaeinsidetreatedarea != nil {
|
|
|
|
|
val := o.Larvaeinsidetreatedarea()
|
|
|
|
|
m.Larvaeinsidetreatedarea = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaeoutsidetreatedarea != nil {
|
|
|
|
|
val := o.Larvaeoutsidetreatedarea()
|
|
|
|
|
m.Larvaeoutsidetreatedarea = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaepresent != nil {
|
|
|
|
|
val := o.Larvaepresent()
|
|
|
|
|
m.Larvaepresent = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaereason != nil {
|
|
|
|
|
val := o.Larvaereason()
|
|
|
|
|
m.Larvaereason = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Linelocid != nil {
|
|
|
|
|
val := o.Linelocid()
|
|
|
|
|
m.Linelocid = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Locationname != nil {
|
|
|
|
|
val := o.Locationname()
|
|
|
|
|
m.Locationname = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.LR != nil {
|
|
|
|
|
val := o.LR()
|
|
|
|
|
m.LR = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Mosquitohabitat != nil {
|
|
|
|
|
val := o.Mosquitohabitat()
|
|
|
|
|
m.Mosquitohabitat = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Movingwater != nil {
|
|
|
|
|
val := o.Movingwater()
|
|
|
|
|
m.Movingwater = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Negdips != nil {
|
|
|
|
|
val := o.Negdips()
|
|
|
|
|
m.Negdips = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Nowaterever != nil {
|
|
|
|
|
val := o.Nowaterever()
|
|
|
|
|
m.Nowaterever = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Objectid != nil {
|
|
|
|
|
val := o.Objectid()
|
|
|
|
|
m.Objectid = omit.From(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.Posdips != nil {
|
|
|
|
|
val := o.Posdips()
|
|
|
|
|
m.Posdips = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Potential != nil {
|
|
|
|
|
val := o.Potential()
|
|
|
|
|
m.Potential = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Raingauge != nil {
|
|
|
|
|
val := o.Raingauge()
|
|
|
|
|
m.Raingauge = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Recordstatus != nil {
|
|
|
|
|
val := o.Recordstatus()
|
|
|
|
|
m.Recordstatus = 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.Sitetype != nil {
|
|
|
|
|
val := o.Sitetype()
|
|
|
|
|
m.Sitetype = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Soilconditions != nil {
|
|
|
|
|
val := o.Soilconditions()
|
|
|
|
|
m.Soilconditions = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Sourcereduction != nil {
|
|
|
|
|
val := o.Sourcereduction()
|
|
|
|
|
m.Sourcereduction = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Startdatetime != nil {
|
|
|
|
|
val := o.Startdatetime()
|
|
|
|
|
m.Startdatetime = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Totalacres != nil {
|
|
|
|
|
val := o.Totalacres()
|
|
|
|
|
m.Totalacres = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Vegetation != nil {
|
|
|
|
|
val := o.Vegetation()
|
|
|
|
|
m.Vegetation = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Waterconditions != nil {
|
|
|
|
|
val := o.Waterconditions()
|
|
|
|
|
m.Waterconditions = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Waterduration != nil {
|
|
|
|
|
val := o.Waterduration()
|
|
|
|
|
m.Waterduration = 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.Waterpresent != nil {
|
|
|
|
|
val := o.Waterpresent()
|
|
|
|
|
m.Waterpresent = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Watersource != nil {
|
|
|
|
|
val := o.Watersource()
|
|
|
|
|
m.Watersource = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Winddir != nil {
|
|
|
|
|
val := o.Winddir()
|
|
|
|
|
m.Winddir = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Windspeed != nil {
|
|
|
|
|
val := o.Windspeed()
|
|
|
|
|
m.Windspeed = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Zone != nil {
|
|
|
|
|
val := o.Zone()
|
|
|
|
|
m.Zone = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Zone2 != nil {
|
|
|
|
|
val := o.Zone2()
|
|
|
|
|
m.Zone2 = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.CreatedDate != nil {
|
|
|
|
|
val := o.CreatedDate()
|
|
|
|
|
m.CreatedDate = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.CreatedUser != nil {
|
|
|
|
|
val := o.CreatedUser()
|
|
|
|
|
m.CreatedUser = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.GeometryX != nil {
|
|
|
|
|
val := o.GeometryX()
|
|
|
|
|
m.GeometryX = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.GeometryY != nil {
|
|
|
|
|
val := o.GeometryY()
|
|
|
|
|
m.GeometryY = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.LastEditedDate != nil {
|
|
|
|
|
val := o.LastEditedDate()
|
|
|
|
|
m.LastEditedDate = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.LastEditedUser != nil {
|
|
|
|
|
val := o.LastEditedUser()
|
|
|
|
|
m.LastEditedUser = omitnull.FromNull(val)
|
|
|
|
|
}
|
|
|
|
|
if o.Updated != nil {
|
|
|
|
|
val := o.Updated()
|
|
|
|
|
m.Updated = omit.From(val)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BuildManySetter returns an []*models.FSQamosquitoinspectionSetter
|
|
|
|
|
// this does nothing with the relationship templates
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) BuildManySetter(number int) []*models.FSQamosquitoinspectionSetter {
|
|
|
|
|
m := make([]*models.FSQamosquitoinspectionSetter, number)
|
|
|
|
|
|
|
|
|
|
for i := range m {
|
|
|
|
|
m[i] = o.BuildSetter()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Build returns an *models.FSQamosquitoinspection
|
|
|
|
|
// Related objects are also created and placed in the .R field
|
|
|
|
|
// NOTE: Objects are not inserted into the database. Use FSQamosquitoinspectionTemplate.Create
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) Build() *models.FSQamosquitoinspection {
|
|
|
|
|
m := &models.FSQamosquitoinspection{}
|
|
|
|
|
|
|
|
|
|
if o.OrganizationID != nil {
|
|
|
|
|
m.OrganizationID = o.OrganizationID()
|
|
|
|
|
}
|
|
|
|
|
if o.Acresbreeding != nil {
|
|
|
|
|
m.Acresbreeding = o.Acresbreeding()
|
|
|
|
|
}
|
|
|
|
|
if o.Actiontaken != nil {
|
|
|
|
|
m.Actiontaken = o.Actiontaken()
|
|
|
|
|
}
|
|
|
|
|
if o.Adultactivity != nil {
|
|
|
|
|
m.Adultactivity = o.Adultactivity()
|
|
|
|
|
}
|
|
|
|
|
if o.Aquaticorganisms != nil {
|
|
|
|
|
m.Aquaticorganisms = o.Aquaticorganisms()
|
|
|
|
|
}
|
|
|
|
|
if o.Avetemp != nil {
|
|
|
|
|
m.Avetemp = o.Avetemp()
|
|
|
|
|
}
|
|
|
|
|
if o.Breedingpotential != nil {
|
|
|
|
|
m.Breedingpotential = o.Breedingpotential()
|
|
|
|
|
}
|
|
|
|
|
if o.Comments != nil {
|
|
|
|
|
m.Comments = o.Comments()
|
|
|
|
|
}
|
|
|
|
|
if o.Creationdate != nil {
|
|
|
|
|
m.Creationdate = o.Creationdate()
|
|
|
|
|
}
|
|
|
|
|
if o.Creator != nil {
|
|
|
|
|
m.Creator = o.Creator()
|
|
|
|
|
}
|
|
|
|
|
if o.Enddatetime != nil {
|
|
|
|
|
m.Enddatetime = o.Enddatetime()
|
|
|
|
|
}
|
|
|
|
|
if o.Editdate != nil {
|
|
|
|
|
m.Editdate = o.Editdate()
|
|
|
|
|
}
|
|
|
|
|
if o.Editor != nil {
|
|
|
|
|
m.Editor = o.Editor()
|
|
|
|
|
}
|
|
|
|
|
if o.Fieldtech != nil {
|
|
|
|
|
m.Fieldtech = o.Fieldtech()
|
|
|
|
|
}
|
|
|
|
|
if o.Fish != nil {
|
|
|
|
|
m.Fish = o.Fish()
|
|
|
|
|
}
|
|
|
|
|
if o.Globalid != nil {
|
|
|
|
|
m.Globalid = o.Globalid()
|
|
|
|
|
}
|
|
|
|
|
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.Larvaeinsidetreatedarea != nil {
|
|
|
|
|
m.Larvaeinsidetreatedarea = o.Larvaeinsidetreatedarea()
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaeoutsidetreatedarea != nil {
|
|
|
|
|
m.Larvaeoutsidetreatedarea = o.Larvaeoutsidetreatedarea()
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaepresent != nil {
|
|
|
|
|
m.Larvaepresent = o.Larvaepresent()
|
|
|
|
|
}
|
|
|
|
|
if o.Larvaereason != nil {
|
|
|
|
|
m.Larvaereason = o.Larvaereason()
|
|
|
|
|
}
|
|
|
|
|
if o.Linelocid != nil {
|
|
|
|
|
m.Linelocid = o.Linelocid()
|
|
|
|
|
}
|
|
|
|
|
if o.Locationname != nil {
|
|
|
|
|
m.Locationname = o.Locationname()
|
|
|
|
|
}
|
|
|
|
|
if o.LR != nil {
|
|
|
|
|
m.LR = o.LR()
|
|
|
|
|
}
|
|
|
|
|
if o.Mosquitohabitat != nil {
|
|
|
|
|
m.Mosquitohabitat = o.Mosquitohabitat()
|
|
|
|
|
}
|
|
|
|
|
if o.Movingwater != nil {
|
|
|
|
|
m.Movingwater = o.Movingwater()
|
|
|
|
|
}
|
|
|
|
|
if o.Negdips != nil {
|
|
|
|
|
m.Negdips = o.Negdips()
|
|
|
|
|
}
|
|
|
|
|
if o.Nowaterever != nil {
|
|
|
|
|
m.Nowaterever = o.Nowaterever()
|
|
|
|
|
}
|
|
|
|
|
if o.Objectid != nil {
|
|
|
|
|
m.Objectid = o.Objectid()
|
|
|
|
|
}
|
|
|
|
|
if o.Pointlocid != nil {
|
|
|
|
|
m.Pointlocid = o.Pointlocid()
|
|
|
|
|
}
|
|
|
|
|
if o.Polygonlocid != nil {
|
|
|
|
|
m.Polygonlocid = o.Polygonlocid()
|
|
|
|
|
}
|
|
|
|
|
if o.Posdips != nil {
|
|
|
|
|
m.Posdips = o.Posdips()
|
|
|
|
|
}
|
|
|
|
|
if o.Potential != nil {
|
|
|
|
|
m.Potential = o.Potential()
|
|
|
|
|
}
|
|
|
|
|
if o.Raingauge != nil {
|
|
|
|
|
m.Raingauge = o.Raingauge()
|
|
|
|
|
}
|
|
|
|
|
if o.Recordstatus != nil {
|
|
|
|
|
m.Recordstatus = o.Recordstatus()
|
|
|
|
|
}
|
|
|
|
|
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.Sitetype != nil {
|
|
|
|
|
m.Sitetype = o.Sitetype()
|
|
|
|
|
}
|
|
|
|
|
if o.Soilconditions != nil {
|
|
|
|
|
m.Soilconditions = o.Soilconditions()
|
|
|
|
|
}
|
|
|
|
|
if o.Sourcereduction != nil {
|
|
|
|
|
m.Sourcereduction = o.Sourcereduction()
|
|
|
|
|
}
|
|
|
|
|
if o.Startdatetime != nil {
|
|
|
|
|
m.Startdatetime = o.Startdatetime()
|
|
|
|
|
}
|
|
|
|
|
if o.Totalacres != nil {
|
|
|
|
|
m.Totalacres = o.Totalacres()
|
|
|
|
|
}
|
|
|
|
|
if o.Vegetation != nil {
|
|
|
|
|
m.Vegetation = o.Vegetation()
|
|
|
|
|
}
|
|
|
|
|
if o.Waterconditions != nil {
|
|
|
|
|
m.Waterconditions = o.Waterconditions()
|
|
|
|
|
}
|
|
|
|
|
if o.Waterduration != nil {
|
|
|
|
|
m.Waterduration = o.Waterduration()
|
|
|
|
|
}
|
|
|
|
|
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.Waterpresent != nil {
|
|
|
|
|
m.Waterpresent = o.Waterpresent()
|
|
|
|
|
}
|
|
|
|
|
if o.Watersource != nil {
|
|
|
|
|
m.Watersource = o.Watersource()
|
|
|
|
|
}
|
|
|
|
|
if o.Winddir != nil {
|
|
|
|
|
m.Winddir = o.Winddir()
|
|
|
|
|
}
|
|
|
|
|
if o.Windspeed != nil {
|
|
|
|
|
m.Windspeed = o.Windspeed()
|
|
|
|
|
}
|
|
|
|
|
if o.Zone != nil {
|
|
|
|
|
m.Zone = o.Zone()
|
|
|
|
|
}
|
|
|
|
|
if o.Zone2 != nil {
|
|
|
|
|
m.Zone2 = o.Zone2()
|
|
|
|
|
}
|
|
|
|
|
if o.CreatedDate != nil {
|
|
|
|
|
m.CreatedDate = o.CreatedDate()
|
|
|
|
|
}
|
|
|
|
|
if o.CreatedUser != nil {
|
|
|
|
|
m.CreatedUser = o.CreatedUser()
|
|
|
|
|
}
|
|
|
|
|
if o.GeometryX != nil {
|
|
|
|
|
m.GeometryX = o.GeometryX()
|
|
|
|
|
}
|
|
|
|
|
if o.GeometryY != nil {
|
|
|
|
|
m.GeometryY = o.GeometryY()
|
|
|
|
|
}
|
|
|
|
|
if o.LastEditedDate != nil {
|
|
|
|
|
m.LastEditedDate = o.LastEditedDate()
|
|
|
|
|
}
|
|
|
|
|
if o.LastEditedUser != nil {
|
|
|
|
|
m.LastEditedUser = o.LastEditedUser()
|
|
|
|
|
}
|
|
|
|
|
if o.Updated != nil {
|
|
|
|
|
m.Updated = o.Updated()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
o.setModelRels(m)
|
|
|
|
|
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// BuildMany returns an models.FSQamosquitoinspectionSlice
|
|
|
|
|
// Related objects are also created and placed in the .R field
|
|
|
|
|
// NOTE: Objects are not inserted into the database. Use FSQamosquitoinspectionTemplate.CreateMany
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) BuildMany(number int) models.FSQamosquitoinspectionSlice {
|
|
|
|
|
m := make(models.FSQamosquitoinspectionSlice, number)
|
|
|
|
|
|
|
|
|
|
for i := range m {
|
|
|
|
|
m[i] = o.Build()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func ensureCreatableFSQamosquitoinspection(m *models.FSQamosquitoinspectionSetter) {
|
2025-11-07 09:30:31 +00:00
|
|
|
if !(m.OrganizationID.IsValue()) {
|
|
|
|
|
val := random_int32(nil)
|
|
|
|
|
m.OrganizationID = omit.From(val)
|
|
|
|
|
}
|
2025-11-13 23:48:41 +00:00
|
|
|
if !(m.Globalid.IsValue()) {
|
|
|
|
|
val := random_string(nil)
|
|
|
|
|
m.Globalid = omit.From(val)
|
|
|
|
|
}
|
2025-11-07 08:34:32 +00:00
|
|
|
if !(m.Objectid.IsValue()) {
|
|
|
|
|
val := random_int32(nil)
|
|
|
|
|
m.Objectid = omit.From(val)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// insertOptRels creates and inserts any optional the relationships on *models.FSQamosquitoinspection
|
|
|
|
|
// according to the relationships in the template.
|
|
|
|
|
// any required relationship should have already exist on the model
|
|
|
|
|
func (o *FSQamosquitoinspectionTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FSQamosquitoinspection) error {
|
|
|
|
|
var err error
|
|
|
|
|
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Create builds a fsQamosquitoinspection and inserts it into the database
|
|
|
|
|
// Relations objects are also inserted and placed in the .R field
|
|
|
|
|
func (o *FSQamosquitoinspectionTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FSQamosquitoinspection, error) {
|
|
|
|
|
var err error
|
|
|
|
|
opt := o.BuildSetter()
|
|
|
|
|
ensureCreatableFSQamosquitoinspection(opt)
|
|
|
|
|
|
2025-11-07 09:30:31 +00:00
|
|
|
if o.r.Organization == nil {
|
|
|
|
|
FSQamosquitoinspectionMods.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)
|
|
|
|
|
|
2025-11-07 08:34:32 +00:00
|
|
|
m, err := models.FSQamosquitoinspections.Insert(opt).One(ctx, exec)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
|
2025-11-07 09:30:31 +00:00
|
|
|
m.R.Organization = rel0
|
|
|
|
|
|
2025-11-07 08:34:32 +00:00
|
|
|
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return m, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MustCreate builds a fsQamosquitoinspection and inserts it into the database
|
|
|
|
|
// Relations objects are also inserted and placed in the .R field
|
|
|
|
|
// panics if an error occurs
|
|
|
|
|
func (o *FSQamosquitoinspectionTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FSQamosquitoinspection {
|
|
|
|
|
m, err := o.Create(ctx, exec)
|
|
|
|
|
if err != nil {
|
|
|
|
|
panic(err)
|
|
|
|
|
}
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CreateOrFail builds a fsQamosquitoinspection 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 *FSQamosquitoinspectionTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FSQamosquitoinspection {
|
|
|
|
|
tb.Helper()
|
|
|
|
|
m, err := o.Create(ctx, exec)
|
|
|
|
|
if err != nil {
|
|
|
|
|
tb.Fatal(err)
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CreateMany builds multiple fsQamosquitoinspections and inserts them into the database
|
|
|
|
|
// Relations objects are also inserted and placed in the .R field
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FSQamosquitoinspectionSlice, error) {
|
|
|
|
|
var err error
|
|
|
|
|
m := make(models.FSQamosquitoinspectionSlice, number)
|
|
|
|
|
|
|
|
|
|
for i := range m {
|
|
|
|
|
m[i], err = o.Create(ctx, exec)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return m, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// MustCreateMany builds multiple fsQamosquitoinspections and inserts them into the database
|
|
|
|
|
// Relations objects are also inserted and placed in the .R field
|
|
|
|
|
// panics if an error occurs
|
|
|
|
|
func (o FSQamosquitoinspectionTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FSQamosquitoinspectionSlice {
|
|
|
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
|
|
|
if err != nil {
|
|
|
|
|
panic(err)
|
|
|
|
|
}
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// CreateManyOrFail builds multiple fsQamosquitoinspections 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 FSQamosquitoinspectionTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FSQamosquitoinspectionSlice {
|
|
|
|
|
tb.Helper()
|
|
|
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
|
|
|
if err != nil {
|
|
|
|
|
tb.Fatal(err)
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
return m
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// FSQamosquitoinspection has methods that act as mods for the FSQamosquitoinspectionTemplate
|
|
|
|
|
var FSQamosquitoinspectionMods fsQamosquitoinspectionMods
|
|
|
|
|
|
|
|
|
|
type fsQamosquitoinspectionMods struct{}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) RandomizeAllColumns(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModSlice{
|
|
|
|
|
FSQamosquitoinspectionMods.RandomOrganizationID(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomAcresbreeding(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomActiontaken(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomAdultactivity(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomAquaticorganisms(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomAvetemp(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomBreedingpotential(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomComments(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomCreationdate(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomCreator(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomEnddatetime(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomEditdate(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomEditor(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomFieldtech(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomFish(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomGlobalid(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomHabvalue1(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomHabvalue1percent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomHabvalue2(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomHabvalue2percent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLarvaeinsidetreatedarea(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLarvaeoutsidetreatedarea(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLarvaepresent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLarvaereason(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLinelocid(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLocationname(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLR(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomMosquitohabitat(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomMovingwater(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomNegdips(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomNowaterever(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomObjectid(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomPointlocid(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomPolygonlocid(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomPosdips(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomPotential(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomRaingauge(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomRecordstatus(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomReviewed(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomReviewedby(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomRevieweddate(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomSitetype(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomSoilconditions(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomSourcereduction(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomStartdatetime(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomTotalacres(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomVegetation(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWaterconditions(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWaterduration(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWatermovement1(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWatermovement1percent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWatermovement2(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWatermovement2percent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWaterpresent(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWatersource(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWinddir(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomWindspeed(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomZone(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomZone2(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomCreatedDate(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomCreatedUser(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomGeometryX(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomGeometryY(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLastEditedDate(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomLastEditedUser(f),
|
|
|
|
|
FSQamosquitoinspectionMods.RandomUpdated(f),
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
2025-11-07 09:30:31 +00:00
|
|
|
func (m fsQamosquitoinspectionMods) OrganizationID(val int32) FSQamosquitoinspectionMod {
|
2025-11-07 08:34:32 +00:00
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
2025-11-07 09:30:31 +00:00
|
|
|
o.OrganizationID = func() int32 { return val }
|
2025-11-07 08:34:32 +00:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
2025-11-07 09:30:31 +00:00
|
|
|
func (m fsQamosquitoinspectionMods) OrganizationIDFunc(f func() int32) FSQamosquitoinspectionMod {
|
2025-11-07 08:34:32 +00:00
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.OrganizationID = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetOrganizationID() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomOrganizationID(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
2025-11-07 09:30:31 +00:00
|
|
|
o.OrganizationID = func() int32 {
|
|
|
|
|
return random_int32(f)
|
2025-11-07 08:34:32 +00:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Acresbreeding(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Acresbreeding = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) AcresbreedingFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Acresbreeding = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetAcresbreeding() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAcresbreeding(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAcresbreedingNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Actiontaken(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Actiontaken = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) ActiontakenFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Actiontaken = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetActiontaken() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomActiontaken(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Actiontaken = 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 fsQamosquitoinspectionMods) RandomActiontakenNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Actiontaken = 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 fsQamosquitoinspectionMods) Adultactivity(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Adultactivity = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) AdultactivityFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Adultactivity = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetAdultactivity() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAdultactivity(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAdultactivityNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Aquaticorganisms(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Aquaticorganisms = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) AquaticorganismsFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Aquaticorganisms = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetAquaticorganisms() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAquaticorganisms(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Aquaticorganisms = 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 fsQamosquitoinspectionMods) RandomAquaticorganismsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Aquaticorganisms = 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 fsQamosquitoinspectionMods) Avetemp(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Avetemp = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) AvetempFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Avetemp = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetAvetemp() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAvetemp(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomAvetempNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Breedingpotential(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Breedingpotential = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) BreedingpotentialFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Breedingpotential = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetBreedingpotential() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomBreedingpotential(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Breedingpotential = 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 fsQamosquitoinspectionMods) RandomBreedingpotentialNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Breedingpotential = 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 fsQamosquitoinspectionMods) Comments(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Comments = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CommentsFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Comments = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetComments() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomComments(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Comments = 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 fsQamosquitoinspectionMods) RandomCommentsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Comments = 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 fsQamosquitoinspectionMods) Creationdate(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creationdate = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CreationdateFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creationdate = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetCreationdate() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomCreationdate(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creationdate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomCreationdateNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creationdate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Creator(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creator = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CreatorFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creator = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetCreator() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomCreator(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creator = 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 fsQamosquitoinspectionMods) RandomCreatorNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Creator = 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 fsQamosquitoinspectionMods) Enddatetime(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Enddatetime = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) EnddatetimeFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Enddatetime = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetEnddatetime() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomEnddatetime(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Enddatetime = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomEnddatetimeNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Enddatetime = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Editdate(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editdate = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) EditdateFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editdate = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetEditdate() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomEditdate(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editdate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomEditdateNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editdate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Editor(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editor = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) EditorFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editor = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetEditor() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomEditor(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editor = 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 fsQamosquitoinspectionMods) RandomEditorNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Editor = 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 fsQamosquitoinspectionMods) Fieldtech(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fieldtech = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) FieldtechFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fieldtech = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetFieldtech() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomFieldtech(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fieldtech = 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 fsQamosquitoinspectionMods) RandomFieldtechNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fieldtech = 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 fsQamosquitoinspectionMods) Fish(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fish = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) FishFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Fish = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetFish() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomFish(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomFishNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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
|
2025-11-13 23:48:41 +00:00
|
|
|
func (m fsQamosquitoinspectionMods) Globalid(val string) FSQamosquitoinspectionMod {
|
2025-11-07 08:34:32 +00:00
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
2025-11-13 23:48:41 +00:00
|
|
|
o.Globalid = func() string { return val }
|
2025-11-07 08:34:32 +00:00
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
2025-11-13 23:48:41 +00:00
|
|
|
func (m fsQamosquitoinspectionMods) GlobalidFunc(f func() string) FSQamosquitoinspectionMod {
|
2025-11-07 08:34:32 +00:00
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Globalid = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetGlobalid() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomGlobalid(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
2025-11-13 23:48:41 +00:00
|
|
|
o.Globalid = func() string {
|
|
|
|
|
return random_string(f)
|
2025-11-07 08:34:32 +00:00
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Habvalue1(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue1 = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Habvalue1Func(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue1 = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetHabvalue1() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue1(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue1NotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Habvalue1percent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue1percent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Habvalue1percentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue1percent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetHabvalue1percent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue1percent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue1percentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Habvalue2(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue2 = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Habvalue2Func(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue2 = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetHabvalue2() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue2(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue2NotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Habvalue2percent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue2percent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Habvalue2percentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Habvalue2percent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetHabvalue2percent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue2percent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomHabvalue2percentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Larvaeinsidetreatedarea(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaeinsidetreatedarea = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LarvaeinsidetreatedareaFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaeinsidetreatedarea = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLarvaeinsidetreatedarea() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaeinsidetreatedarea(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaeinsidetreatedareaNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Larvaeoutsidetreatedarea(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaeoutsidetreatedarea = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LarvaeoutsidetreatedareaFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaeoutsidetreatedarea = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLarvaeoutsidetreatedarea() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaeoutsidetreatedarea(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaeoutsidetreatedareaNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Larvaepresent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaepresent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LarvaepresentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaepresent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLarvaepresent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaepresent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaepresentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Larvaereason(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaereason = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LarvaereasonFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaereason = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLarvaereason() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLarvaereason(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaereason = 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 fsQamosquitoinspectionMods) RandomLarvaereasonNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Larvaereason = 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 fsQamosquitoinspectionMods) Linelocid(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Linelocid = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LinelocidFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Linelocid = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLinelocid() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLinelocid(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Linelocid = 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 fsQamosquitoinspectionMods) RandomLinelocidNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Linelocid = 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 fsQamosquitoinspectionMods) Locationname(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Locationname = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LocationnameFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Locationname = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLocationname() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLocationname(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Locationname = 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 fsQamosquitoinspectionMods) RandomLocationnameNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Locationname = 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 fsQamosquitoinspectionMods) LR(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LR = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LRFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LR = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLR() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLR(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLRNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Mosquitohabitat(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Mosquitohabitat = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) MosquitohabitatFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Mosquitohabitat = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetMosquitohabitat() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomMosquitohabitat(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Mosquitohabitat = 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 fsQamosquitoinspectionMods) RandomMosquitohabitatNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Mosquitohabitat = 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 fsQamosquitoinspectionMods) Movingwater(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Movingwater = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) MovingwaterFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Movingwater = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetMovingwater() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomMovingwater(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomMovingwaterNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Negdips(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Negdips = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) NegdipsFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Negdips = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetNegdips() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomNegdips(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomNegdipsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Nowaterever(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Nowaterever = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) NowatereverFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Nowaterever = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetNowaterever() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomNowaterever(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomNowatereverNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Objectid(val int32) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Objectid = func() int32 { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) ObjectidFunc(f func() int32) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Objectid = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetObjectid() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomObjectid(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Objectid = func() int32 {
|
|
|
|
|
return random_int32(f)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Pointlocid(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Pointlocid = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) PointlocidFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Pointlocid = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetPointlocid() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPointlocid(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Pointlocid = 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 fsQamosquitoinspectionMods) RandomPointlocidNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Pointlocid = 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 fsQamosquitoinspectionMods) Polygonlocid(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Polygonlocid = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) PolygonlocidFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Polygonlocid = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetPolygonlocid() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPolygonlocid(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Polygonlocid = 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 fsQamosquitoinspectionMods) RandomPolygonlocidNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Polygonlocid = 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 fsQamosquitoinspectionMods) Posdips(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Posdips = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) PosdipsFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Posdips = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetPosdips() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPosdips(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPosdipsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Potential(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Potential = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) PotentialFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Potential = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetPotential() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPotential(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomPotentialNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Raingauge(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Raingauge = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) RaingaugeFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Raingauge = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetRaingauge() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomRaingauge(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomRaingaugeNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Recordstatus(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Recordstatus = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) RecordstatusFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Recordstatus = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetRecordstatus() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomRecordstatus(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomRecordstatusNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Reviewed(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewed = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) ReviewedFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewed = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetReviewed() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomReviewed(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomReviewedNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Reviewedby(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewedby = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) ReviewedbyFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewedby = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetReviewedby() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomReviewedby(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewedby = 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 fsQamosquitoinspectionMods) RandomReviewedbyNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Reviewedby = 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 fsQamosquitoinspectionMods) Revieweddate(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Revieweddate = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) RevieweddateFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Revieweddate = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetRevieweddate() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomRevieweddate(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Revieweddate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomRevieweddateNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Revieweddate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Sitetype(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sitetype = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) SitetypeFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sitetype = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetSitetype() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomSitetype(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sitetype = 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 fsQamosquitoinspectionMods) RandomSitetypeNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sitetype = 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 fsQamosquitoinspectionMods) Soilconditions(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Soilconditions = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) SoilconditionsFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Soilconditions = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetSoilconditions() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomSoilconditions(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Soilconditions = 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 fsQamosquitoinspectionMods) RandomSoilconditionsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Soilconditions = 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 fsQamosquitoinspectionMods) Sourcereduction(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sourcereduction = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) SourcereductionFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sourcereduction = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetSourcereduction() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomSourcereduction(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sourcereduction = 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 fsQamosquitoinspectionMods) RandomSourcereductionNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Sourcereduction = 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 fsQamosquitoinspectionMods) Startdatetime(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Startdatetime = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) StartdatetimeFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Startdatetime = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetStartdatetime() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomStartdatetime(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Startdatetime = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomStartdatetimeNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Startdatetime = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Totalacres(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Totalacres = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) TotalacresFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Totalacres = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetTotalacres() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomTotalacres(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomTotalacresNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Vegetation(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Vegetation = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) VegetationFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Vegetation = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetVegetation() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomVegetation(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Vegetation = 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 fsQamosquitoinspectionMods) RandomVegetationNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Vegetation = 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 fsQamosquitoinspectionMods) Waterconditions(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterconditions = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WaterconditionsFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterconditions = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWaterconditions() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWaterconditions(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterconditions = 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 fsQamosquitoinspectionMods) RandomWaterconditionsNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterconditions = 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 fsQamosquitoinspectionMods) Waterduration(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterduration = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WaterdurationFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterduration = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWaterduration() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWaterduration(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterduration = 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 fsQamosquitoinspectionMods) RandomWaterdurationNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterduration = 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 fsQamosquitoinspectionMods) Watermovement1(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1 = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Watermovement1Func(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1 = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWatermovement1() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement1(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1 = 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 fsQamosquitoinspectionMods) RandomWatermovement1NotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1 = 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 fsQamosquitoinspectionMods) Watermovement1percent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1percent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Watermovement1percentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement1percent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWatermovement1percent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement1percent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement1percentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Watermovement2(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2 = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Watermovement2Func(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2 = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWatermovement2() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement2(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2 = 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 fsQamosquitoinspectionMods) RandomWatermovement2NotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2 = 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 fsQamosquitoinspectionMods) Watermovement2percent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2percent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Watermovement2percentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watermovement2percent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWatermovement2percent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement2percent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatermovement2percentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Waterpresent(val null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterpresent = func() null.Val[int16] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WaterpresentFunc(f func() null.Val[int16]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Waterpresent = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWaterpresent() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWaterpresent(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWaterpresentNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Watersource(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watersource = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WatersourceFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watersource = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWatersource() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWatersource(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watersource = 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 fsQamosquitoinspectionMods) RandomWatersourceNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Watersource = 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 fsQamosquitoinspectionMods) Winddir(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Winddir = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WinddirFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Winddir = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWinddir() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWinddir(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Winddir = 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 fsQamosquitoinspectionMods) RandomWinddirNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Winddir = 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 fsQamosquitoinspectionMods) Windspeed(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Windspeed = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WindspeedFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Windspeed = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetWindspeed() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWindspeed(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomWindspeedNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) Zone(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) ZoneFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetZone() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomZone(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone = 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 fsQamosquitoinspectionMods) RandomZoneNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone = 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 fsQamosquitoinspectionMods) Zone2(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone2 = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) Zone2Func(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone2 = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetZone2() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomZone2(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone2 = 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 fsQamosquitoinspectionMods) RandomZone2NotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Zone2 = 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 fsQamosquitoinspectionMods) CreatedDate(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedDate = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CreatedDateFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedDate = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetCreatedDate() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomCreatedDate(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedDate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomCreatedDateNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedDate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CreatedUser(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedUser = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) CreatedUserFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedUser = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetCreatedUser() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomCreatedUser(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedUser = 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 fsQamosquitoinspectionMods) RandomCreatedUserNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.CreatedUser = 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 fsQamosquitoinspectionMods) GeometryX(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryX = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) GeometryXFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryX = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetGeometryX() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryX = 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 fsQamosquitoinspectionMods) RandomGeometryX(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryX = 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 fsQamosquitoinspectionMods) RandomGeometryXNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryX = 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 fsQamosquitoinspectionMods) GeometryY(val null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryY = func() null.Val[float64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) GeometryYFunc(f func() null.Val[float64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryY = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetGeometryY() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryY = 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 fsQamosquitoinspectionMods) RandomGeometryY(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryY = 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 fsQamosquitoinspectionMods) RandomGeometryYNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.GeometryY = 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 fsQamosquitoinspectionMods) LastEditedDate(val null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedDate = func() null.Val[int64] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LastEditedDateFunc(f func() null.Val[int64]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedDate = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLastEditedDate() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLastEditedDate(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedDate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(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 fsQamosquitoinspectionMods) RandomLastEditedDateNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedDate = func() null.Val[int64] {
|
|
|
|
|
if f == nil {
|
|
|
|
|
f = &defaultFaker
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
val := random_int64(f)
|
|
|
|
|
return null.From(val)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the model columns to this value
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LastEditedUser(val null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedUser = func() null.Val[string] { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) LastEditedUserFunc(f func() null.Val[string]) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedUser = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetLastEditedUser() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
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 fsQamosquitoinspectionMods) RandomLastEditedUser(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedUser = 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 fsQamosquitoinspectionMods) RandomLastEditedUserNotNull(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.LastEditedUser = 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 fsQamosquitoinspectionMods) Updated(val time.Time) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Updated = func() time.Time { return val }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Set the Column from the function
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UpdatedFunc(f func() time.Time) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Updated = f
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Clear any values for the column
|
|
|
|
|
func (m fsQamosquitoinspectionMods) UnsetUpdated() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Updated = nil
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Generates a random value for the column using the given faker
|
|
|
|
|
// if faker is nil, a default faker is used
|
|
|
|
|
func (m fsQamosquitoinspectionMods) RandomUpdated(f *faker.Faker) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(_ context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.Updated = func() time.Time {
|
|
|
|
|
return random_time_Time(f)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WithParentsCascading() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(ctx context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
if isDone, _ := fsQamosquitoinspectionWithParentsCascadingCtx.Value(ctx); isDone {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
ctx = fsQamosquitoinspectionWithParentsCascadingCtx.WithValue(ctx, true)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
|
|
|
|
|
m.WithOrganization(related).Apply(ctx, o)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WithOrganization(rel *OrganizationTemplate) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(ctx context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.r.Organization = &fsQamosquitoinspectionROrganizationR{
|
|
|
|
|
o: rel,
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WithNewOrganization(mods ...OrganizationMod) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(ctx context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
related := o.f.NewOrganizationWithContext(ctx, mods...)
|
|
|
|
|
|
|
|
|
|
m.WithOrganization(related).Apply(ctx, o)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WithExistingOrganization(em *models.Organization) FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(ctx context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.r.Organization = &fsQamosquitoinspectionROrganizationR{
|
|
|
|
|
o: o.f.FromExistingOrganization(em),
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m fsQamosquitoinspectionMods) WithoutOrganization() FSQamosquitoinspectionMod {
|
|
|
|
|
return FSQamosquitoinspectionModFunc(func(ctx context.Context, o *FSQamosquitoinspectionTemplate) {
|
|
|
|
|
o.r.Organization = nil
|
|
|
|
|
})
|
|
|
|
|
}
|