This is an intermediate step between shifting from the old fs_* prefixed table names to an entire fieldseeker schema. At this point we have both, and we aren't doing much with the new schema but compiling.
2930 lines
102 KiB
Go
2930 lines
102 KiB
Go
// Code generated by BobGen psql v0.42.0. 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"
|
|
|
|
enums "github.com/Gleipnir-Technology/nidus-sync/db/enums"
|
|
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
|
"github.com/aarondl/opt/null"
|
|
"github.com/aarondl/opt/omit"
|
|
"github.com/aarondl/opt/omitnull"
|
|
"github.com/gofrs/uuid/v5"
|
|
"github.com/jaswdr/faker/v2"
|
|
"github.com/stephenafamo/bob"
|
|
)
|
|
|
|
type FieldseekerPointlocationMod interface {
|
|
Apply(context.Context, *FieldseekerPointlocationTemplate)
|
|
}
|
|
|
|
type FieldseekerPointlocationModFunc func(context.Context, *FieldseekerPointlocationTemplate)
|
|
|
|
func (f FieldseekerPointlocationModFunc) Apply(ctx context.Context, n *FieldseekerPointlocationTemplate) {
|
|
f(ctx, n)
|
|
}
|
|
|
|
type FieldseekerPointlocationModSlice []FieldseekerPointlocationMod
|
|
|
|
func (mods FieldseekerPointlocationModSlice) Apply(ctx context.Context, n *FieldseekerPointlocationTemplate) {
|
|
for _, f := range mods {
|
|
f.Apply(ctx, n)
|
|
}
|
|
}
|
|
|
|
// FieldseekerPointlocationTemplate is an object representing the database table.
|
|
// all columns are optional and should be set by mods
|
|
type FieldseekerPointlocationTemplate struct {
|
|
Objectid func() int64
|
|
Name func() null.Val[string]
|
|
Zone func() null.Val[string]
|
|
Habitat func() null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e]
|
|
Priority func() null.Val[enums.FieldseekerPointlocationLocationpriorityEnum]
|
|
Usetype func() null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86]
|
|
Active func() null.Val[enums.FieldseekerPointlocationNotinuitFEnum]
|
|
Description func() null.Val[string]
|
|
Accessdesc func() null.Val[string]
|
|
Comments func() null.Val[string]
|
|
Symbology func() null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum]
|
|
Externalid func() null.Val[string]
|
|
Nextactiondatescheduled func() null.Val[time.Time]
|
|
Larvinspectinterval func() null.Val[int16]
|
|
Zone2 func() null.Val[string]
|
|
Locationnumber func() null.Val[int32]
|
|
Globalid func() null.Val[uuid.UUID]
|
|
Stype func() null.Val[string]
|
|
Lastinspectdate func() null.Val[time.Time]
|
|
Lastinspectbreeding func() null.Val[string]
|
|
Lastinspectavglarvae func() null.Val[float64]
|
|
Lastinspectavgpupae func() null.Val[float64]
|
|
Lastinspectlstages func() null.Val[string]
|
|
Lastinspectactiontaken func() null.Val[string]
|
|
Lastinspectfieldspecies func() null.Val[string]
|
|
Lasttreatdate func() null.Val[time.Time]
|
|
Lasttreatproduct func() null.Val[string]
|
|
Lasttreatqty func() null.Val[float64]
|
|
Lasttreatqtyunit func() null.Val[string]
|
|
Lastinspectactivity func() null.Val[string]
|
|
Lasttreatactivity func() null.Val[string]
|
|
Lastinspectconditions func() null.Val[string]
|
|
Waterorigin func() null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899]
|
|
X func() null.Val[float64]
|
|
Y func() null.Val[float64]
|
|
Assignedtech func() null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B]
|
|
Creationdate func() null.Val[time.Time]
|
|
Creator func() null.Val[string]
|
|
Editdate func() null.Val[time.Time]
|
|
Editor func() null.Val[string]
|
|
Jurisdiction func() null.Val[string]
|
|
DeactivateReason func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489]
|
|
Scalarpriority func() null.Val[int32]
|
|
Sourcestatus func() null.Val[string]
|
|
|
|
f *Factory
|
|
|
|
alreadyPersisted bool
|
|
}
|
|
|
|
// Apply mods to the FieldseekerPointlocationTemplate
|
|
func (o *FieldseekerPointlocationTemplate) Apply(ctx context.Context, mods ...FieldseekerPointlocationMod) {
|
|
for _, mod := range mods {
|
|
mod.Apply(ctx, o)
|
|
}
|
|
}
|
|
|
|
// setModelRels creates and sets the relationships on *models.FieldseekerPointlocation
|
|
// according to the relationships in the template. Nothing is inserted into the db
|
|
func (t FieldseekerPointlocationTemplate) setModelRels(o *models.FieldseekerPointlocation) {}
|
|
|
|
// BuildSetter returns an *models.FieldseekerPointlocationSetter
|
|
// this does nothing with the relationship templates
|
|
func (o FieldseekerPointlocationTemplate) BuildSetter() *models.FieldseekerPointlocationSetter {
|
|
m := &models.FieldseekerPointlocationSetter{}
|
|
|
|
if o.Objectid != nil {
|
|
val := o.Objectid()
|
|
m.Objectid = omit.From(val)
|
|
}
|
|
if o.Name != nil {
|
|
val := o.Name()
|
|
m.Name = omitnull.FromNull(val)
|
|
}
|
|
if o.Zone != nil {
|
|
val := o.Zone()
|
|
m.Zone = omitnull.FromNull(val)
|
|
}
|
|
if o.Habitat != nil {
|
|
val := o.Habitat()
|
|
m.Habitat = omitnull.FromNull(val)
|
|
}
|
|
if o.Priority != nil {
|
|
val := o.Priority()
|
|
m.Priority = omitnull.FromNull(val)
|
|
}
|
|
if o.Usetype != nil {
|
|
val := o.Usetype()
|
|
m.Usetype = omitnull.FromNull(val)
|
|
}
|
|
if o.Active != nil {
|
|
val := o.Active()
|
|
m.Active = omitnull.FromNull(val)
|
|
}
|
|
if o.Description != nil {
|
|
val := o.Description()
|
|
m.Description = omitnull.FromNull(val)
|
|
}
|
|
if o.Accessdesc != nil {
|
|
val := o.Accessdesc()
|
|
m.Accessdesc = omitnull.FromNull(val)
|
|
}
|
|
if o.Comments != nil {
|
|
val := o.Comments()
|
|
m.Comments = omitnull.FromNull(val)
|
|
}
|
|
if o.Symbology != nil {
|
|
val := o.Symbology()
|
|
m.Symbology = omitnull.FromNull(val)
|
|
}
|
|
if o.Externalid != nil {
|
|
val := o.Externalid()
|
|
m.Externalid = omitnull.FromNull(val)
|
|
}
|
|
if o.Nextactiondatescheduled != nil {
|
|
val := o.Nextactiondatescheduled()
|
|
m.Nextactiondatescheduled = omitnull.FromNull(val)
|
|
}
|
|
if o.Larvinspectinterval != nil {
|
|
val := o.Larvinspectinterval()
|
|
m.Larvinspectinterval = omitnull.FromNull(val)
|
|
}
|
|
if o.Zone2 != nil {
|
|
val := o.Zone2()
|
|
m.Zone2 = omitnull.FromNull(val)
|
|
}
|
|
if o.Locationnumber != nil {
|
|
val := o.Locationnumber()
|
|
m.Locationnumber = omitnull.FromNull(val)
|
|
}
|
|
if o.Globalid != nil {
|
|
val := o.Globalid()
|
|
m.Globalid = omitnull.FromNull(val)
|
|
}
|
|
if o.Stype != nil {
|
|
val := o.Stype()
|
|
m.Stype = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectdate != nil {
|
|
val := o.Lastinspectdate()
|
|
m.Lastinspectdate = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectbreeding != nil {
|
|
val := o.Lastinspectbreeding()
|
|
m.Lastinspectbreeding = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectavglarvae != nil {
|
|
val := o.Lastinspectavglarvae()
|
|
m.Lastinspectavglarvae = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectavgpupae != nil {
|
|
val := o.Lastinspectavgpupae()
|
|
m.Lastinspectavgpupae = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectlstages != nil {
|
|
val := o.Lastinspectlstages()
|
|
m.Lastinspectlstages = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectactiontaken != nil {
|
|
val := o.Lastinspectactiontaken()
|
|
m.Lastinspectactiontaken = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectfieldspecies != nil {
|
|
val := o.Lastinspectfieldspecies()
|
|
m.Lastinspectfieldspecies = omitnull.FromNull(val)
|
|
}
|
|
if o.Lasttreatdate != nil {
|
|
val := o.Lasttreatdate()
|
|
m.Lasttreatdate = omitnull.FromNull(val)
|
|
}
|
|
if o.Lasttreatproduct != nil {
|
|
val := o.Lasttreatproduct()
|
|
m.Lasttreatproduct = omitnull.FromNull(val)
|
|
}
|
|
if o.Lasttreatqty != nil {
|
|
val := o.Lasttreatqty()
|
|
m.Lasttreatqty = omitnull.FromNull(val)
|
|
}
|
|
if o.Lasttreatqtyunit != nil {
|
|
val := o.Lasttreatqtyunit()
|
|
m.Lasttreatqtyunit = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectactivity != nil {
|
|
val := o.Lastinspectactivity()
|
|
m.Lastinspectactivity = omitnull.FromNull(val)
|
|
}
|
|
if o.Lasttreatactivity != nil {
|
|
val := o.Lasttreatactivity()
|
|
m.Lasttreatactivity = omitnull.FromNull(val)
|
|
}
|
|
if o.Lastinspectconditions != nil {
|
|
val := o.Lastinspectconditions()
|
|
m.Lastinspectconditions = omitnull.FromNull(val)
|
|
}
|
|
if o.Waterorigin != nil {
|
|
val := o.Waterorigin()
|
|
m.Waterorigin = omitnull.FromNull(val)
|
|
}
|
|
if o.X != nil {
|
|
val := o.X()
|
|
m.X = omitnull.FromNull(val)
|
|
}
|
|
if o.Y != nil {
|
|
val := o.Y()
|
|
m.Y = omitnull.FromNull(val)
|
|
}
|
|
if o.Assignedtech != nil {
|
|
val := o.Assignedtech()
|
|
m.Assignedtech = omitnull.FromNull(val)
|
|
}
|
|
if o.Creationdate != nil {
|
|
val := o.Creationdate()
|
|
m.Creationdate = omitnull.FromNull(val)
|
|
}
|
|
if o.Creator != nil {
|
|
val := o.Creator()
|
|
m.Creator = omitnull.FromNull(val)
|
|
}
|
|
if o.Editdate != nil {
|
|
val := o.Editdate()
|
|
m.Editdate = omitnull.FromNull(val)
|
|
}
|
|
if o.Editor != nil {
|
|
val := o.Editor()
|
|
m.Editor = omitnull.FromNull(val)
|
|
}
|
|
if o.Jurisdiction != nil {
|
|
val := o.Jurisdiction()
|
|
m.Jurisdiction = omitnull.FromNull(val)
|
|
}
|
|
if o.DeactivateReason != nil {
|
|
val := o.DeactivateReason()
|
|
m.DeactivateReason = omitnull.FromNull(val)
|
|
}
|
|
if o.Scalarpriority != nil {
|
|
val := o.Scalarpriority()
|
|
m.Scalarpriority = omitnull.FromNull(val)
|
|
}
|
|
if o.Sourcestatus != nil {
|
|
val := o.Sourcestatus()
|
|
m.Sourcestatus = omitnull.FromNull(val)
|
|
}
|
|
|
|
return m
|
|
}
|
|
|
|
// BuildManySetter returns an []*models.FieldseekerPointlocationSetter
|
|
// this does nothing with the relationship templates
|
|
func (o FieldseekerPointlocationTemplate) BuildManySetter(number int) []*models.FieldseekerPointlocationSetter {
|
|
m := make([]*models.FieldseekerPointlocationSetter, number)
|
|
|
|
for i := range m {
|
|
m[i] = o.BuildSetter()
|
|
}
|
|
|
|
return m
|
|
}
|
|
|
|
// Build returns an *models.FieldseekerPointlocation
|
|
// Related objects are also created and placed in the .R field
|
|
// NOTE: Objects are not inserted into the database. Use FieldseekerPointlocationTemplate.Create
|
|
func (o FieldseekerPointlocationTemplate) Build() *models.FieldseekerPointlocation {
|
|
m := &models.FieldseekerPointlocation{}
|
|
|
|
if o.Objectid != nil {
|
|
m.Objectid = o.Objectid()
|
|
}
|
|
if o.Name != nil {
|
|
m.Name = o.Name()
|
|
}
|
|
if o.Zone != nil {
|
|
m.Zone = o.Zone()
|
|
}
|
|
if o.Habitat != nil {
|
|
m.Habitat = o.Habitat()
|
|
}
|
|
if o.Priority != nil {
|
|
m.Priority = o.Priority()
|
|
}
|
|
if o.Usetype != nil {
|
|
m.Usetype = o.Usetype()
|
|
}
|
|
if o.Active != nil {
|
|
m.Active = o.Active()
|
|
}
|
|
if o.Description != nil {
|
|
m.Description = o.Description()
|
|
}
|
|
if o.Accessdesc != nil {
|
|
m.Accessdesc = o.Accessdesc()
|
|
}
|
|
if o.Comments != nil {
|
|
m.Comments = o.Comments()
|
|
}
|
|
if o.Symbology != nil {
|
|
m.Symbology = o.Symbology()
|
|
}
|
|
if o.Externalid != nil {
|
|
m.Externalid = o.Externalid()
|
|
}
|
|
if o.Nextactiondatescheduled != nil {
|
|
m.Nextactiondatescheduled = o.Nextactiondatescheduled()
|
|
}
|
|
if o.Larvinspectinterval != nil {
|
|
m.Larvinspectinterval = o.Larvinspectinterval()
|
|
}
|
|
if o.Zone2 != nil {
|
|
m.Zone2 = o.Zone2()
|
|
}
|
|
if o.Locationnumber != nil {
|
|
m.Locationnumber = o.Locationnumber()
|
|
}
|
|
if o.Globalid != nil {
|
|
m.Globalid = o.Globalid()
|
|
}
|
|
if o.Stype != nil {
|
|
m.Stype = o.Stype()
|
|
}
|
|
if o.Lastinspectdate != nil {
|
|
m.Lastinspectdate = o.Lastinspectdate()
|
|
}
|
|
if o.Lastinspectbreeding != nil {
|
|
m.Lastinspectbreeding = o.Lastinspectbreeding()
|
|
}
|
|
if o.Lastinspectavglarvae != nil {
|
|
m.Lastinspectavglarvae = o.Lastinspectavglarvae()
|
|
}
|
|
if o.Lastinspectavgpupae != nil {
|
|
m.Lastinspectavgpupae = o.Lastinspectavgpupae()
|
|
}
|
|
if o.Lastinspectlstages != nil {
|
|
m.Lastinspectlstages = o.Lastinspectlstages()
|
|
}
|
|
if o.Lastinspectactiontaken != nil {
|
|
m.Lastinspectactiontaken = o.Lastinspectactiontaken()
|
|
}
|
|
if o.Lastinspectfieldspecies != nil {
|
|
m.Lastinspectfieldspecies = o.Lastinspectfieldspecies()
|
|
}
|
|
if o.Lasttreatdate != nil {
|
|
m.Lasttreatdate = o.Lasttreatdate()
|
|
}
|
|
if o.Lasttreatproduct != nil {
|
|
m.Lasttreatproduct = o.Lasttreatproduct()
|
|
}
|
|
if o.Lasttreatqty != nil {
|
|
m.Lasttreatqty = o.Lasttreatqty()
|
|
}
|
|
if o.Lasttreatqtyunit != nil {
|
|
m.Lasttreatqtyunit = o.Lasttreatqtyunit()
|
|
}
|
|
if o.Lastinspectactivity != nil {
|
|
m.Lastinspectactivity = o.Lastinspectactivity()
|
|
}
|
|
if o.Lasttreatactivity != nil {
|
|
m.Lasttreatactivity = o.Lasttreatactivity()
|
|
}
|
|
if o.Lastinspectconditions != nil {
|
|
m.Lastinspectconditions = o.Lastinspectconditions()
|
|
}
|
|
if o.Waterorigin != nil {
|
|
m.Waterorigin = o.Waterorigin()
|
|
}
|
|
if o.X != nil {
|
|
m.X = o.X()
|
|
}
|
|
if o.Y != nil {
|
|
m.Y = o.Y()
|
|
}
|
|
if o.Assignedtech != nil {
|
|
m.Assignedtech = o.Assignedtech()
|
|
}
|
|
if o.Creationdate != nil {
|
|
m.Creationdate = o.Creationdate()
|
|
}
|
|
if o.Creator != nil {
|
|
m.Creator = o.Creator()
|
|
}
|
|
if o.Editdate != nil {
|
|
m.Editdate = o.Editdate()
|
|
}
|
|
if o.Editor != nil {
|
|
m.Editor = o.Editor()
|
|
}
|
|
if o.Jurisdiction != nil {
|
|
m.Jurisdiction = o.Jurisdiction()
|
|
}
|
|
if o.DeactivateReason != nil {
|
|
m.DeactivateReason = o.DeactivateReason()
|
|
}
|
|
if o.Scalarpriority != nil {
|
|
m.Scalarpriority = o.Scalarpriority()
|
|
}
|
|
if o.Sourcestatus != nil {
|
|
m.Sourcestatus = o.Sourcestatus()
|
|
}
|
|
|
|
o.setModelRels(m)
|
|
|
|
return m
|
|
}
|
|
|
|
// BuildMany returns an models.FieldseekerPointlocationSlice
|
|
// Related objects are also created and placed in the .R field
|
|
// NOTE: Objects are not inserted into the database. Use FieldseekerPointlocationTemplate.CreateMany
|
|
func (o FieldseekerPointlocationTemplate) BuildMany(number int) models.FieldseekerPointlocationSlice {
|
|
m := make(models.FieldseekerPointlocationSlice, number)
|
|
|
|
for i := range m {
|
|
m[i] = o.Build()
|
|
}
|
|
|
|
return m
|
|
}
|
|
|
|
func ensureCreatableFieldseekerPointlocation(m *models.FieldseekerPointlocationSetter) {
|
|
}
|
|
|
|
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerPointlocation
|
|
// according to the relationships in the template.
|
|
// any required relationship should have already exist on the model
|
|
func (o *FieldseekerPointlocationTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerPointlocation) error {
|
|
var err error
|
|
|
|
return err
|
|
}
|
|
|
|
// Create builds a fieldseekerPointlocation and inserts it into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
func (o *FieldseekerPointlocationTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerPointlocation, error) {
|
|
var err error
|
|
opt := o.BuildSetter()
|
|
ensureCreatableFieldseekerPointlocation(opt)
|
|
|
|
m, err := models.FieldseekerPointlocations.Insert(opt).One(ctx, exec)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, err
|
|
}
|
|
|
|
// MustCreate builds a fieldseekerPointlocation and inserts it into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
// panics if an error occurs
|
|
func (o *FieldseekerPointlocationTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerPointlocation {
|
|
m, err := o.Create(ctx, exec)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateOrFail builds a fieldseekerPointlocation 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 *FieldseekerPointlocationTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerPointlocation {
|
|
tb.Helper()
|
|
m, err := o.Create(ctx, exec)
|
|
if err != nil {
|
|
tb.Fatal(err)
|
|
return nil
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateMany builds multiple fieldseekerPointlocations and inserts them into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
func (o FieldseekerPointlocationTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerPointlocationSlice, error) {
|
|
var err error
|
|
m := make(models.FieldseekerPointlocationSlice, number)
|
|
|
|
for i := range m {
|
|
m[i], err = o.Create(ctx, exec)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
return m, nil
|
|
}
|
|
|
|
// MustCreateMany builds multiple fieldseekerPointlocations and inserts them into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
// panics if an error occurs
|
|
func (o FieldseekerPointlocationTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerPointlocationSlice {
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateManyOrFail builds multiple fieldseekerPointlocations 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 FieldseekerPointlocationTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerPointlocationSlice {
|
|
tb.Helper()
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
if err != nil {
|
|
tb.Fatal(err)
|
|
return nil
|
|
}
|
|
return m
|
|
}
|
|
|
|
// FieldseekerPointlocation has methods that act as mods for the FieldseekerPointlocationTemplate
|
|
var FieldseekerPointlocationMods fieldseekerPointlocationMods
|
|
|
|
type fieldseekerPointlocationMods struct{}
|
|
|
|
func (m fieldseekerPointlocationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModSlice{
|
|
FieldseekerPointlocationMods.RandomObjectid(f),
|
|
FieldseekerPointlocationMods.RandomName(f),
|
|
FieldseekerPointlocationMods.RandomZone(f),
|
|
FieldseekerPointlocationMods.RandomHabitat(f),
|
|
FieldseekerPointlocationMods.RandomPriority(f),
|
|
FieldseekerPointlocationMods.RandomUsetype(f),
|
|
FieldseekerPointlocationMods.RandomActive(f),
|
|
FieldseekerPointlocationMods.RandomDescription(f),
|
|
FieldseekerPointlocationMods.RandomAccessdesc(f),
|
|
FieldseekerPointlocationMods.RandomComments(f),
|
|
FieldseekerPointlocationMods.RandomSymbology(f),
|
|
FieldseekerPointlocationMods.RandomExternalid(f),
|
|
FieldseekerPointlocationMods.RandomNextactiondatescheduled(f),
|
|
FieldseekerPointlocationMods.RandomLarvinspectinterval(f),
|
|
FieldseekerPointlocationMods.RandomZone2(f),
|
|
FieldseekerPointlocationMods.RandomLocationnumber(f),
|
|
FieldseekerPointlocationMods.RandomGlobalid(f),
|
|
FieldseekerPointlocationMods.RandomStype(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectdate(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectbreeding(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectavglarvae(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectavgpupae(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectlstages(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectactiontaken(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectfieldspecies(f),
|
|
FieldseekerPointlocationMods.RandomLasttreatdate(f),
|
|
FieldseekerPointlocationMods.RandomLasttreatproduct(f),
|
|
FieldseekerPointlocationMods.RandomLasttreatqty(f),
|
|
FieldseekerPointlocationMods.RandomLasttreatqtyunit(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectactivity(f),
|
|
FieldseekerPointlocationMods.RandomLasttreatactivity(f),
|
|
FieldseekerPointlocationMods.RandomLastinspectconditions(f),
|
|
FieldseekerPointlocationMods.RandomWaterorigin(f),
|
|
FieldseekerPointlocationMods.RandomX(f),
|
|
FieldseekerPointlocationMods.RandomY(f),
|
|
FieldseekerPointlocationMods.RandomAssignedtech(f),
|
|
FieldseekerPointlocationMods.RandomCreationdate(f),
|
|
FieldseekerPointlocationMods.RandomCreator(f),
|
|
FieldseekerPointlocationMods.RandomEditdate(f),
|
|
FieldseekerPointlocationMods.RandomEditor(f),
|
|
FieldseekerPointlocationMods.RandomJurisdiction(f),
|
|
FieldseekerPointlocationMods.RandomDeactivateReason(f),
|
|
FieldseekerPointlocationMods.RandomScalarpriority(f),
|
|
FieldseekerPointlocationMods.RandomSourcestatus(f),
|
|
}
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Objectid(val int64) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Objectid = func() int64 { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) ObjectidFunc(f func() int64) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Objectid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetObjectid() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomObjectid(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Objectid = func() int64 {
|
|
return random_int64(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Name(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Name = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) NameFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Name = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetName() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Name = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomName(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Name = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomNameNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Name = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Zone(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) ZoneFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetZone() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomZone(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomZoneNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Habitat(val null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Habitat = func() null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) HabitatFunc(f func() null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Habitat = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetHabitat() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomHabitat(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Habitat = func() null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e(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 fieldseekerPointlocationMods) RandomHabitatNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Habitat = func() null.Val[enums.FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationHabitatB4d8135a497949C88BB367e(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Priority(val null.Val[enums.FieldseekerPointlocationLocationpriorityEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Priority = func() null.Val[enums.FieldseekerPointlocationLocationpriorityEnum] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) PriorityFunc(f func() null.Val[enums.FieldseekerPointlocationLocationpriorityEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Priority = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetPriority() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Priority = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomPriority(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Priority = func() null.Val[enums.FieldseekerPointlocationLocationpriorityEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationLocationpriorityEnum(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 fieldseekerPointlocationMods) RandomPriorityNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Priority = func() null.Val[enums.FieldseekerPointlocationLocationpriorityEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationLocationpriorityEnum(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Usetype(val null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Usetype = func() null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86] {
|
|
return val
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) UsetypeFunc(f func() null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Usetype = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetUsetype() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Usetype = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomUsetype(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Usetype = func() null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86(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 fieldseekerPointlocationMods) RandomUsetypeNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Usetype = func() null.Val[enums.FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationUsetype58d62d18ef4f47fc8cb9874df86(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Active(val null.Val[enums.FieldseekerPointlocationNotinuitFEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Active = func() null.Val[enums.FieldseekerPointlocationNotinuitFEnum] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) ActiveFunc(f func() null.Val[enums.FieldseekerPointlocationNotinuitFEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Active = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetActive() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Active = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomActive(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Active = func() null.Val[enums.FieldseekerPointlocationNotinuitFEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationNotinuitFEnum(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 fieldseekerPointlocationMods) RandomActiveNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Active = func() null.Val[enums.FieldseekerPointlocationNotinuitFEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationNotinuitFEnum(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Description(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Description = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) DescriptionFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Description = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetDescription() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Description = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomDescription(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Description = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomDescriptionNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Description = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Accessdesc(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Accessdesc = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) AccessdescFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Accessdesc = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetAccessdesc() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Accessdesc = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomAccessdesc(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Accessdesc = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomAccessdescNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Accessdesc = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Comments(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Comments = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) CommentsFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Comments = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetComments() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomComments(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Comments = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Comments = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Symbology(val null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Symbology = func() null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) SymbologyFunc(f func() null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Symbology = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetSymbology() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Symbology = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomSymbology(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Symbology = func() null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationLocationsymbologyEnum(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 fieldseekerPointlocationMods) RandomSymbologyNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Symbology = func() null.Val[enums.FieldseekerPointlocationLocationsymbologyEnum] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationLocationsymbologyEnum(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Externalid(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Externalid = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) ExternalidFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Externalid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetExternalid() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Externalid = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomExternalid(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Externalid = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomExternalidNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Externalid = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Nextactiondatescheduled(val null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Nextactiondatescheduled = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) NextactiondatescheduledFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Nextactiondatescheduled = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetNextactiondatescheduled() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Nextactiondatescheduled = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomNextactiondatescheduled(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Nextactiondatescheduled = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomNextactiondatescheduledNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Nextactiondatescheduled = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Larvinspectinterval(val null.Val[int16]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Larvinspectinterval = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LarvinspectintervalFunc(f func() null.Val[int16]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Larvinspectinterval = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLarvinspectinterval() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Larvinspectinterval = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLarvinspectinterval(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Larvinspectinterval = 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 fieldseekerPointlocationMods) RandomLarvinspectintervalNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Larvinspectinterval = 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 fieldseekerPointlocationMods) Zone2(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone2 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) Zone2Func(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone2 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetZone2() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomZone2(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomZone2NotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Zone2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Locationnumber(val null.Val[int32]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Locationnumber = func() null.Val[int32] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LocationnumberFunc(f func() null.Val[int32]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Locationnumber = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLocationnumber() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Locationnumber = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLocationnumber(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Locationnumber = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(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 fieldseekerPointlocationMods) RandomLocationnumberNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Locationnumber = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Globalid(val null.Val[uuid.UUID]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Globalid = func() null.Val[uuid.UUID] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Globalid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetGlobalid() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Globalid = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomGlobalid(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Globalid = func() null.Val[uuid.UUID] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_uuid_UUID(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Globalid = func() null.Val[uuid.UUID] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_uuid_UUID(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Stype(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Stype = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) StypeFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Stype = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetStype() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Stype = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomStype(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Stype = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "3")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomStypeNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Stype = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "3")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectdate(val null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectdate() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectdate = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectdate(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectdateNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectbreeding(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectbreeding = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectbreedingFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectbreeding = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectbreeding() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectbreeding = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectbreeding(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectbreeding = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectbreedingNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectbreeding = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectavglarvae(val null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavglarvae = func() null.Val[float64] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectavglarvaeFunc(f func() null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavglarvae = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectavglarvae() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavglarvae = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectavglarvae(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavglarvae = 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 fieldseekerPointlocationMods) RandomLastinspectavglarvaeNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavglarvae = 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 fieldseekerPointlocationMods) Lastinspectavgpupae(val null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavgpupae = func() null.Val[float64] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectavgpupaeFunc(f func() null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavgpupae = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectavgpupae() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavgpupae = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectavgpupae(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavgpupae = 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 fieldseekerPointlocationMods) RandomLastinspectavgpupaeNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectavgpupae = 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 fieldseekerPointlocationMods) Lastinspectlstages(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectlstages = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectlstagesFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectlstages = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectlstages() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectlstages = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectlstages(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectlstages = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectlstagesNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectlstages = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectactiontaken(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactiontaken = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectactiontakenFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactiontaken = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectactiontaken() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactiontaken = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectactiontaken(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactiontaken = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectactiontakenNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactiontaken = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectfieldspecies(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectfieldspecies = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectfieldspeciesFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectfieldspecies = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectfieldspecies() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectfieldspecies = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectfieldspecies(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectfieldspecies = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectfieldspeciesNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectfieldspecies = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lasttreatdate(val null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LasttreatdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLasttreatdate() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatdate = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatdate(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatdateNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lasttreatproduct(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatproduct = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LasttreatproductFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatproduct = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLasttreatproduct() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatproduct = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatproduct(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatproduct = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatproductNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatproduct = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lasttreatqty(val null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqty = func() null.Val[float64] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LasttreatqtyFunc(f func() null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqty = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLasttreatqty() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqty = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatqty(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqty = 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 fieldseekerPointlocationMods) RandomLasttreatqtyNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqty = 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 fieldseekerPointlocationMods) Lasttreatqtyunit(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqtyunit = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LasttreatqtyunitFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqtyunit = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLasttreatqtyunit() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqtyunit = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatqtyunit(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqtyunit = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "10")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatqtyunitNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatqtyunit = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "10")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectactivity(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactivity = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectactivityFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactivity = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectactivity() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactivity = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectactivity(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactivity = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectactivityNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectactivity = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lasttreatactivity(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatactivity = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LasttreatactivityFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatactivity = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLasttreatactivity() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatactivity = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatactivity(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatactivity = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLasttreatactivityNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lasttreatactivity = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Lastinspectconditions(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectconditions = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) LastinspectconditionsFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectconditions = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetLastinspectconditions() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectconditions = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectconditions(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectconditions = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomLastinspectconditionsNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Lastinspectconditions = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "250")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Waterorigin(val null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Waterorigin = func() null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899] {
|
|
return val
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) WateroriginFunc(f func() null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Waterorigin = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetWaterorigin() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Waterorigin = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomWaterorigin(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Waterorigin = func() null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899(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 fieldseekerPointlocationMods) RandomWateroriginNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Waterorigin = func() null.Val[enums.FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationWaterorigin197B22BFF3eb4dad8899(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) X(val null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.X = func() null.Val[float64] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) XFunc(f func() null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.X = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetX() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.X = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomX(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.X = 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 fieldseekerPointlocationMods) RandomXNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.X = 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 fieldseekerPointlocationMods) Y(val null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Y = func() null.Val[float64] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) YFunc(f func() null.Val[float64]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Y = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetY() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Y = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomY(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Y = 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 fieldseekerPointlocationMods) RandomYNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Y = 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 fieldseekerPointlocationMods) Assignedtech(val null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Assignedtech = func() null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B] {
|
|
return val
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) AssignedtechFunc(f func() null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Assignedtech = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetAssignedtech() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Assignedtech = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomAssignedtech(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Assignedtech = func() null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B(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 fieldseekerPointlocationMods) RandomAssignedtechNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Assignedtech = func() null.Val[enums.FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationAssignedtech9393a1622474429D85B(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Creationdate(val null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creationdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creationdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetCreationdate() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomCreationdate(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creationdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creationdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Creator(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creator = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) CreatorFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creator = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetCreator() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomCreator(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creator = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "128")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Creator = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "128")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Editdate(val null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetEditdate() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomEditdate(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editdate = func() null.Val[time.Time] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_time_Time(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Editor(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editor = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) EditorFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editor = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetEditor() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
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 fieldseekerPointlocationMods) RandomEditor(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editor = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "128")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomEditorNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Editor = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "128")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Jurisdiction(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) JurisdictionFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Jurisdiction = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetJurisdiction() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Jurisdiction = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomJurisdiction(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomJurisdictionNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) DeactivateReason(val null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.DeactivateReason = func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489] {
|
|
return val
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) DeactivateReasonFunc(f func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.DeactivateReason = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetDeactivateReason() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.DeactivateReason = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomDeactivateReason(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.DeactivateReason = func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489(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 fieldseekerPointlocationMods) RandomDeactivateReasonNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.DeactivateReason = func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_enums_FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Scalarpriority(val null.Val[int32]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Scalarpriority = func() null.Val[int32] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) ScalarpriorityFunc(f func() null.Val[int32]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Scalarpriority = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetScalarpriority() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Scalarpriority = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomScalarpriority(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Scalarpriority = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(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 fieldseekerPointlocationMods) RandomScalarpriorityNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Scalarpriority = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerPointlocationMods) Sourcestatus(val null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Sourcestatus = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerPointlocationMods) SourcestatusFunc(f func() null.Val[string]) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Sourcestatus = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerPointlocationMods) UnsetSourcestatus() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Sourcestatus = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerPointlocationMods) RandomSourcestatus(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Sourcestatus = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "255")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerPointlocationMods) RandomSourcestatusNotNull(f *faker.Faker) FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
|
o.Sourcestatus = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "255")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerPointlocationMods) WithParentsCascading() FieldseekerPointlocationMod {
|
|
return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) {
|
|
if isDone, _ := fieldseekerPointlocationWithParentsCascadingCtx.Value(ctx); isDone {
|
|
return
|
|
}
|
|
ctx = fieldseekerPointlocationWithParentsCascadingCtx.WithValue(ctx, true)
|
|
})
|
|
}
|