nidus-sync/factory/fs_treatment.bob.go
Eli Ribble e48abb09c0
Go to h3 v4, Add initial h3 aggregation work
This calculates the summary information of data in h3 nodes and puts it
in the database for fast lookup.
2025-11-13 23:49:12 +00:00

3804 lines
108 KiB
Go

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