nidus-sync/db/factory/fieldseeker.trapdata.bob.go
Eli Ribble 1395e3d3ac Remove old FieldSeeker tables, use v2 generated tables.
This requires a bunch of changes since the types on these tables are
much closer to the underlying types of the Fieldseeker data we are
getting back from the API.

I now need to use proper UUID types everywhere, which means I had to
modify the bob gen config to consistently use google UUID, my UUID
library of choice.

I also had to add the organization_id to all the fieldseeker tables
since we rely on them existing for some of our compound queries.

There were some changes to the API type signatures to get things to
build. I may yet regret those.
2025-12-24 17:58:08 -07:00

3059 lines
97 KiB
Go

// Code generated by BobGen psql v0.0.4-0.20251216163753-8e325b7c773a+dirty. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package factory
import (
"context"
"encoding/json"
"testing"
"time"
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
"github.com/aarondl/opt/null"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
"github.com/google/uuid"
"github.com/jaswdr/faker/v2"
"github.com/stephenafamo/bob"
"github.com/stephenafamo/bob/types"
)
type FieldseekerTrapdatumMod interface {
Apply(context.Context, *FieldseekerTrapdatumTemplate)
}
type FieldseekerTrapdatumModFunc func(context.Context, *FieldseekerTrapdatumTemplate)
func (f FieldseekerTrapdatumModFunc) Apply(ctx context.Context, n *FieldseekerTrapdatumTemplate) {
f(ctx, n)
}
type FieldseekerTrapdatumModSlice []FieldseekerTrapdatumMod
func (mods FieldseekerTrapdatumModSlice) Apply(ctx context.Context, n *FieldseekerTrapdatumTemplate) {
for _, f := range mods {
f.Apply(ctx, n)
}
}
// FieldseekerTrapdatumTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerTrapdatumTemplate struct {
Objectid func() int64
Traptype func() null.Val[string]
Trapactivitytype func() null.Val[string]
Startdatetime func() null.Val[time.Time]
Enddatetime func() null.Val[time.Time]
Comments func() null.Val[string]
Idbytech func() null.Val[string]
Sortbytech func() null.Val[string]
Processed func() null.Val[int16]
Sitecond func() null.Val[string]
Locationname func() null.Val[string]
Recordstatus func() null.Val[int16]
Reviewed func() null.Val[int16]
Reviewedby func() null.Val[string]
Revieweddate func() null.Val[time.Time]
Trapcondition func() null.Val[string]
Trapnights func() null.Val[int16]
Zone func() null.Val[string]
Zone2 func() null.Val[string]
Globalid func() null.Val[uuid.UUID]
CreatedUser func() null.Val[string]
CreatedDate func() null.Val[time.Time]
LastEditedUser func() null.Val[string]
LastEditedDate func() null.Val[time.Time]
Srid func() null.Val[uuid.UUID]
Fieldtech func() null.Val[string]
Gatewaysync func() null.Val[int16]
LocID func() null.Val[uuid.UUID]
Voltage func() null.Val[float64]
Winddir func() null.Val[string]
Windspeed func() null.Val[float64]
Avetemp func() null.Val[float64]
Raingauge func() null.Val[float64]
LR func() null.Val[int16]
Field func() null.Val[int32]
Vectorsurvtrapdataid func() null.Val[string]
Vectorsurvtraplocationid func() null.Val[string]
Creationdate func() null.Val[time.Time]
Creator func() null.Val[string]
Editdate func() null.Val[time.Time]
Editor func() null.Val[string]
Lure func() null.Val[string]
Geometry func() types.JSON[json.RawMessage]
Geospatial func() null.Val[string]
Version func() int32
OrganizationID func() int32
r fieldseekerTrapdatumR
f *Factory
alreadyPersisted bool
}
type fieldseekerTrapdatumR struct {
Organization *fieldseekerTrapdatumROrganizationR
}
type fieldseekerTrapdatumROrganizationR struct {
o *OrganizationTemplate
}
// Apply mods to the FieldseekerTrapdatumTemplate
func (o *FieldseekerTrapdatumTemplate) Apply(ctx context.Context, mods ...FieldseekerTrapdatumMod) {
for _, mod := range mods {
mod.Apply(ctx, o)
}
}
// setModelRels creates and sets the relationships on *models.FieldseekerTrapdatum
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerTrapdatumTemplate) setModelRels(o *models.FieldseekerTrapdatum) {
if t.r.Organization != nil {
rel := t.r.Organization.o.Build()
rel.R.Trapdata = append(rel.R.Trapdata, o)
o.OrganizationID = rel.ID // h2
o.R.Organization = rel
}
}
// BuildSetter returns an *models.FieldseekerTrapdatumSetter
// this does nothing with the relationship templates
func (o FieldseekerTrapdatumTemplate) BuildSetter() *models.FieldseekerTrapdatumSetter {
m := &models.FieldseekerTrapdatumSetter{}
if o.Objectid != nil {
val := o.Objectid()
m.Objectid = omit.From(val)
}
if o.Traptype != nil {
val := o.Traptype()
m.Traptype = omitnull.FromNull(val)
}
if o.Trapactivitytype != nil {
val := o.Trapactivitytype()
m.Trapactivitytype = omitnull.FromNull(val)
}
if o.Startdatetime != nil {
val := o.Startdatetime()
m.Startdatetime = omitnull.FromNull(val)
}
if o.Enddatetime != nil {
val := o.Enddatetime()
m.Enddatetime = omitnull.FromNull(val)
}
if o.Comments != nil {
val := o.Comments()
m.Comments = omitnull.FromNull(val)
}
if o.Idbytech != nil {
val := o.Idbytech()
m.Idbytech = omitnull.FromNull(val)
}
if o.Sortbytech != nil {
val := o.Sortbytech()
m.Sortbytech = omitnull.FromNull(val)
}
if o.Processed != nil {
val := o.Processed()
m.Processed = omitnull.FromNull(val)
}
if o.Sitecond != nil {
val := o.Sitecond()
m.Sitecond = omitnull.FromNull(val)
}
if o.Locationname != nil {
val := o.Locationname()
m.Locationname = omitnull.FromNull(val)
}
if o.Recordstatus != nil {
val := o.Recordstatus()
m.Recordstatus = omitnull.FromNull(val)
}
if o.Reviewed != nil {
val := o.Reviewed()
m.Reviewed = omitnull.FromNull(val)
}
if o.Reviewedby != nil {
val := o.Reviewedby()
m.Reviewedby = omitnull.FromNull(val)
}
if o.Revieweddate != nil {
val := o.Revieweddate()
m.Revieweddate = omitnull.FromNull(val)
}
if o.Trapcondition != nil {
val := o.Trapcondition()
m.Trapcondition = omitnull.FromNull(val)
}
if o.Trapnights != nil {
val := o.Trapnights()
m.Trapnights = omitnull.FromNull(val)
}
if o.Zone != nil {
val := o.Zone()
m.Zone = omitnull.FromNull(val)
}
if o.Zone2 != nil {
val := o.Zone2()
m.Zone2 = omitnull.FromNull(val)
}
if o.Globalid != nil {
val := o.Globalid()
m.Globalid = omitnull.FromNull(val)
}
if o.CreatedUser != nil {
val := o.CreatedUser()
m.CreatedUser = omitnull.FromNull(val)
}
if o.CreatedDate != nil {
val := o.CreatedDate()
m.CreatedDate = omitnull.FromNull(val)
}
if o.LastEditedUser != nil {
val := o.LastEditedUser()
m.LastEditedUser = omitnull.FromNull(val)
}
if o.LastEditedDate != nil {
val := o.LastEditedDate()
m.LastEditedDate = omitnull.FromNull(val)
}
if o.Srid != nil {
val := o.Srid()
m.Srid = omitnull.FromNull(val)
}
if o.Fieldtech != nil {
val := o.Fieldtech()
m.Fieldtech = omitnull.FromNull(val)
}
if o.Gatewaysync != nil {
val := o.Gatewaysync()
m.Gatewaysync = omitnull.FromNull(val)
}
if o.LocID != nil {
val := o.LocID()
m.LocID = omitnull.FromNull(val)
}
if o.Voltage != nil {
val := o.Voltage()
m.Voltage = omitnull.FromNull(val)
}
if o.Winddir != nil {
val := o.Winddir()
m.Winddir = omitnull.FromNull(val)
}
if o.Windspeed != nil {
val := o.Windspeed()
m.Windspeed = omitnull.FromNull(val)
}
if o.Avetemp != nil {
val := o.Avetemp()
m.Avetemp = omitnull.FromNull(val)
}
if o.Raingauge != nil {
val := o.Raingauge()
m.Raingauge = omitnull.FromNull(val)
}
if o.LR != nil {
val := o.LR()
m.LR = omitnull.FromNull(val)
}
if o.Field != nil {
val := o.Field()
m.Field = omitnull.FromNull(val)
}
if o.Vectorsurvtrapdataid != nil {
val := o.Vectorsurvtrapdataid()
m.Vectorsurvtrapdataid = omitnull.FromNull(val)
}
if o.Vectorsurvtraplocationid != nil {
val := o.Vectorsurvtraplocationid()
m.Vectorsurvtraplocationid = 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.Lure != nil {
val := o.Lure()
m.Lure = omitnull.FromNull(val)
}
if o.Geometry != nil {
val := o.Geometry()
m.Geometry = omit.From(val)
}
if o.Geospatial != nil {
val := o.Geospatial()
m.Geospatial = omitnull.FromNull(val)
}
if o.Version != nil {
val := o.Version()
m.Version = omit.From(val)
}
if o.OrganizationID != nil {
val := o.OrganizationID()
m.OrganizationID = omit.From(val)
}
return m
}
// BuildManySetter returns an []*models.FieldseekerTrapdatumSetter
// this does nothing with the relationship templates
func (o FieldseekerTrapdatumTemplate) BuildManySetter(number int) []*models.FieldseekerTrapdatumSetter {
m := make([]*models.FieldseekerTrapdatumSetter, number)
for i := range m {
m[i] = o.BuildSetter()
}
return m
}
// Build returns an *models.FieldseekerTrapdatum
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerTrapdatumTemplate.Create
func (o FieldseekerTrapdatumTemplate) Build() *models.FieldseekerTrapdatum {
m := &models.FieldseekerTrapdatum{}
if o.Objectid != nil {
m.Objectid = o.Objectid()
}
if o.Traptype != nil {
m.Traptype = o.Traptype()
}
if o.Trapactivitytype != nil {
m.Trapactivitytype = o.Trapactivitytype()
}
if o.Startdatetime != nil {
m.Startdatetime = o.Startdatetime()
}
if o.Enddatetime != nil {
m.Enddatetime = o.Enddatetime()
}
if o.Comments != nil {
m.Comments = o.Comments()
}
if o.Idbytech != nil {
m.Idbytech = o.Idbytech()
}
if o.Sortbytech != nil {
m.Sortbytech = o.Sortbytech()
}
if o.Processed != nil {
m.Processed = o.Processed()
}
if o.Sitecond != nil {
m.Sitecond = o.Sitecond()
}
if o.Locationname != nil {
m.Locationname = o.Locationname()
}
if o.Recordstatus != nil {
m.Recordstatus = o.Recordstatus()
}
if o.Reviewed != nil {
m.Reviewed = o.Reviewed()
}
if o.Reviewedby != nil {
m.Reviewedby = o.Reviewedby()
}
if o.Revieweddate != nil {
m.Revieweddate = o.Revieweddate()
}
if o.Trapcondition != nil {
m.Trapcondition = o.Trapcondition()
}
if o.Trapnights != nil {
m.Trapnights = o.Trapnights()
}
if o.Zone != nil {
m.Zone = o.Zone()
}
if o.Zone2 != nil {
m.Zone2 = o.Zone2()
}
if o.Globalid != nil {
m.Globalid = o.Globalid()
}
if o.CreatedUser != nil {
m.CreatedUser = o.CreatedUser()
}
if o.CreatedDate != nil {
m.CreatedDate = o.CreatedDate()
}
if o.LastEditedUser != nil {
m.LastEditedUser = o.LastEditedUser()
}
if o.LastEditedDate != nil {
m.LastEditedDate = o.LastEditedDate()
}
if o.Srid != nil {
m.Srid = o.Srid()
}
if o.Fieldtech != nil {
m.Fieldtech = o.Fieldtech()
}
if o.Gatewaysync != nil {
m.Gatewaysync = o.Gatewaysync()
}
if o.LocID != nil {
m.LocID = o.LocID()
}
if o.Voltage != nil {
m.Voltage = o.Voltage()
}
if o.Winddir != nil {
m.Winddir = o.Winddir()
}
if o.Windspeed != nil {
m.Windspeed = o.Windspeed()
}
if o.Avetemp != nil {
m.Avetemp = o.Avetemp()
}
if o.Raingauge != nil {
m.Raingauge = o.Raingauge()
}
if o.LR != nil {
m.LR = o.LR()
}
if o.Field != nil {
m.Field = o.Field()
}
if o.Vectorsurvtrapdataid != nil {
m.Vectorsurvtrapdataid = o.Vectorsurvtrapdataid()
}
if o.Vectorsurvtraplocationid != nil {
m.Vectorsurvtraplocationid = o.Vectorsurvtraplocationid()
}
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.Lure != nil {
m.Lure = o.Lure()
}
if o.Geometry != nil {
m.Geometry = o.Geometry()
}
if o.Geospatial != nil {
m.Geospatial = o.Geospatial()
}
if o.Version != nil {
m.Version = o.Version()
}
if o.OrganizationID != nil {
m.OrganizationID = o.OrganizationID()
}
o.setModelRels(m)
return m
}
// BuildMany returns an models.FieldseekerTrapdatumSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerTrapdatumTemplate.CreateMany
func (o FieldseekerTrapdatumTemplate) BuildMany(number int) models.FieldseekerTrapdatumSlice {
m := make(models.FieldseekerTrapdatumSlice, number)
for i := range m {
m[i] = o.Build()
}
return m
}
func ensureCreatableFieldseekerTrapdatum(m *models.FieldseekerTrapdatumSetter) {
if !(m.Geometry.IsValue()) {
val := random_types_JSON_json_RawMessage_(nil)
m.Geometry = omit.From(val)
}
if !(m.OrganizationID.IsValue()) {
val := random_int32(nil)
m.OrganizationID = omit.From(val)
}
}
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerTrapdatum
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerTrapdatumTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerTrapdatum) error {
var err error
return err
}
// Create builds a fieldseekerTrapdatum and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerTrapdatumTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerTrapdatum, error) {
var err error
opt := o.BuildSetter()
ensureCreatableFieldseekerTrapdatum(opt)
if o.r.Organization == nil {
FieldseekerTrapdatumMods.WithNewOrganization().Apply(ctx, o)
}
var rel0 *models.Organization
if o.r.Organization.o.alreadyPersisted {
rel0 = o.r.Organization.o.Build()
} else {
rel0, err = o.r.Organization.o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
opt.OrganizationID = omit.From(rel0.ID)
m, err := models.FieldseekerTrapdata.Insert(opt).One(ctx, exec)
if err != nil {
return nil, err
}
m.R.Organization = rel0
if err := o.insertOptRels(ctx, exec, m); err != nil {
return nil, err
}
return m, err
}
// MustCreate builds a fieldseekerTrapdatum and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerTrapdatumTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerTrapdatum {
m, err := o.Create(ctx, exec)
if err != nil {
panic(err)
}
return m
}
// CreateOrFail builds a fieldseekerTrapdatum 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 *FieldseekerTrapdatumTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerTrapdatum {
tb.Helper()
m, err := o.Create(ctx, exec)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// CreateMany builds multiple fieldseekerTrapdata and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerTrapdatumTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerTrapdatumSlice, error) {
var err error
m := make(models.FieldseekerTrapdatumSlice, number)
for i := range m {
m[i], err = o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
return m, nil
}
// MustCreateMany builds multiple fieldseekerTrapdata and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerTrapdatumTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerTrapdatumSlice {
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
panic(err)
}
return m
}
// CreateManyOrFail builds multiple fieldseekerTrapdata 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 FieldseekerTrapdatumTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerTrapdatumSlice {
tb.Helper()
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// FieldseekerTrapdatum has methods that act as mods for the FieldseekerTrapdatumTemplate
var FieldseekerTrapdatumMods fieldseekerTrapdatumMods
type fieldseekerTrapdatumMods struct{}
func (m fieldseekerTrapdatumMods) RandomizeAllColumns(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModSlice{
FieldseekerTrapdatumMods.RandomObjectid(f),
FieldseekerTrapdatumMods.RandomTraptype(f),
FieldseekerTrapdatumMods.RandomTrapactivitytype(f),
FieldseekerTrapdatumMods.RandomStartdatetime(f),
FieldseekerTrapdatumMods.RandomEnddatetime(f),
FieldseekerTrapdatumMods.RandomComments(f),
FieldseekerTrapdatumMods.RandomIdbytech(f),
FieldseekerTrapdatumMods.RandomSortbytech(f),
FieldseekerTrapdatumMods.RandomProcessed(f),
FieldseekerTrapdatumMods.RandomSitecond(f),
FieldseekerTrapdatumMods.RandomLocationname(f),
FieldseekerTrapdatumMods.RandomRecordstatus(f),
FieldseekerTrapdatumMods.RandomReviewed(f),
FieldseekerTrapdatumMods.RandomReviewedby(f),
FieldseekerTrapdatumMods.RandomRevieweddate(f),
FieldseekerTrapdatumMods.RandomTrapcondition(f),
FieldseekerTrapdatumMods.RandomTrapnights(f),
FieldseekerTrapdatumMods.RandomZone(f),
FieldseekerTrapdatumMods.RandomZone2(f),
FieldseekerTrapdatumMods.RandomGlobalid(f),
FieldseekerTrapdatumMods.RandomCreatedUser(f),
FieldseekerTrapdatumMods.RandomCreatedDate(f),
FieldseekerTrapdatumMods.RandomLastEditedUser(f),
FieldseekerTrapdatumMods.RandomLastEditedDate(f),
FieldseekerTrapdatumMods.RandomSrid(f),
FieldseekerTrapdatumMods.RandomFieldtech(f),
FieldseekerTrapdatumMods.RandomGatewaysync(f),
FieldseekerTrapdatumMods.RandomLocID(f),
FieldseekerTrapdatumMods.RandomVoltage(f),
FieldseekerTrapdatumMods.RandomWinddir(f),
FieldseekerTrapdatumMods.RandomWindspeed(f),
FieldseekerTrapdatumMods.RandomAvetemp(f),
FieldseekerTrapdatumMods.RandomRaingauge(f),
FieldseekerTrapdatumMods.RandomLR(f),
FieldseekerTrapdatumMods.RandomField(f),
FieldseekerTrapdatumMods.RandomVectorsurvtrapdataid(f),
FieldseekerTrapdatumMods.RandomVectorsurvtraplocationid(f),
FieldseekerTrapdatumMods.RandomCreationdate(f),
FieldseekerTrapdatumMods.RandomCreator(f),
FieldseekerTrapdatumMods.RandomEditdate(f),
FieldseekerTrapdatumMods.RandomEditor(f),
FieldseekerTrapdatumMods.RandomLure(f),
FieldseekerTrapdatumMods.RandomGeometry(f),
FieldseekerTrapdatumMods.RandomGeospatial(f),
FieldseekerTrapdatumMods.RandomVersion(f),
FieldseekerTrapdatumMods.RandomOrganizationID(f),
}
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Objectid(val int64) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Objectid = func() int64 { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) ObjectidFunc(f func() int64) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Objectid = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetObjectid() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomObjectid(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Objectid = func() int64 {
return random_int64(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Traptype(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Traptype = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) TraptypeFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Traptype = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetTraptype() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Traptype = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomTraptype(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Traptype = 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 fieldseekerTrapdatumMods) RandomTraptypeNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Traptype = 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 fieldseekerTrapdatumMods) Trapactivitytype(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapactivitytype = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) TrapactivitytypeFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapactivitytype = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetTrapactivitytype() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapactivitytype = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomTrapactivitytype(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapactivitytype = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "1")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomTrapactivitytypeNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapactivitytype = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "1")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Startdatetime(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Startdatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Startdatetime = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetStartdatetime() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Startdatetime = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomStartdatetime(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Startdatetime = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Startdatetime = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Enddatetime(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Enddatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Enddatetime = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetEnddatetime() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Enddatetime = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomEnddatetime(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Enddatetime = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Enddatetime = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Comments(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Comments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) CommentsFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Comments = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetComments() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomComments(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Idbytech(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Idbytech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) IdbytechFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Idbytech = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetIdbytech() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Idbytech = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomIdbytech(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Idbytech = 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 fieldseekerTrapdatumMods) RandomIdbytechNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Idbytech = 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 fieldseekerTrapdatumMods) Sortbytech(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sortbytech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) SortbytechFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sortbytech = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetSortbytech() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sortbytech = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomSortbytech(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sortbytech = 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 fieldseekerTrapdatumMods) RandomSortbytechNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sortbytech = 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 fieldseekerTrapdatumMods) Processed(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Processed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) ProcessedFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Processed = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetProcessed() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Processed = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomProcessed(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Processed = 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 fieldseekerTrapdatumMods) RandomProcessedNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Processed = 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 fieldseekerTrapdatumMods) Sitecond(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sitecond = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) SitecondFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sitecond = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetSitecond() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sitecond = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomSitecond(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sitecond = 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 fieldseekerTrapdatumMods) RandomSitecondNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Sitecond = 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 fieldseekerTrapdatumMods) Locationname(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Locationname = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LocationnameFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Locationname = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLocationname() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Locationname = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLocationname(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Locationname = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Locationname = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Recordstatus(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Recordstatus = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Recordstatus = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetRecordstatus() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Recordstatus = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomRecordstatus(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Recordstatus = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Recordstatus = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Reviewed(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewed = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetReviewed() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewed = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomReviewed(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewed = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewed = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Reviewedby(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewedby = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewedby = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetReviewedby() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewedby = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomReviewedby(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewedby = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Reviewedby = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Revieweddate(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Revieweddate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Revieweddate = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetRevieweddate() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Revieweddate = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomRevieweddate(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Revieweddate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Revieweddate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Trapcondition(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapcondition = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) TrapconditionFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapcondition = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetTrapcondition() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapcondition = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomTrapcondition(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapcondition = 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 fieldseekerTrapdatumMods) RandomTrapconditionNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapcondition = 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 fieldseekerTrapdatumMods) Trapnights(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapnights = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) TrapnightsFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapnights = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetTrapnights() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapnights = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomTrapnights(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapnights = 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 fieldseekerTrapdatumMods) RandomTrapnightsNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Trapnights = 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 fieldseekerTrapdatumMods) Zone(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Zone = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) ZoneFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Zone = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetZone() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomZone(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomZoneNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Zone2(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Zone2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) Zone2Func(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Zone2 = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetZone2() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomZone2(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomZone2NotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Globalid(val null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Globalid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Globalid = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetGlobalid() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomGlobalid(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) CreatedUser(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedUser = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetCreatedUser() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedUser = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomCreatedUser(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) CreatedDate(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedDate = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetCreatedDate() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedDate = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomCreatedDate(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedDate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.CreatedDate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) LastEditedUser(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedUser = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLastEditedUser() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedUser = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLastEditedUser(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedUser = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "255")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) LastEditedDate(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedDate = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLastEditedDate() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedDate = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLastEditedDate(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedDate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LastEditedDate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Srid(val null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Srid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) SridFunc(f func() null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Srid = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetSrid() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Srid = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomSrid(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Srid = func() null.Val[uuid.UUID] {
if f == nil {
f = &defaultFaker
}
val := random_uuid_UUID(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomSridNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Srid = func() null.Val[uuid.UUID] {
if f == nil {
f = &defaultFaker
}
val := random_uuid_UUID(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Fieldtech(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Fieldtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) FieldtechFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Fieldtech = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetFieldtech() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Fieldtech = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomFieldtech(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Fieldtech = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Fieldtech = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Gatewaysync(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Gatewaysync = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) GatewaysyncFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Gatewaysync = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetGatewaysync() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Gatewaysync = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomGatewaysync(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Gatewaysync = 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 fieldseekerTrapdatumMods) RandomGatewaysyncNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Gatewaysync = 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 fieldseekerTrapdatumMods) LocID(val null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LocID = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LocIDFunc(f func() null.Val[uuid.UUID]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LocID = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLocID() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LocID = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLocID(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LocID = 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 fieldseekerTrapdatumMods) RandomLocIDNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LocID = 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 fieldseekerTrapdatumMods) Voltage(val null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Voltage = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) VoltageFunc(f func() null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Voltage = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetVoltage() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Voltage = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomVoltage(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Voltage = 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 fieldseekerTrapdatumMods) RandomVoltageNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Voltage = 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 fieldseekerTrapdatumMods) Winddir(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Winddir = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) WinddirFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Winddir = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetWinddir() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Winddir = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomWinddir(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Winddir = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "3")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomWinddirNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Winddir = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "3")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Windspeed(val null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Windspeed = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) WindspeedFunc(f func() null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Windspeed = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetWindspeed() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Windspeed = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomWindspeed(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Windspeed = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomWindspeedNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Windspeed = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Avetemp(val null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Avetemp = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) AvetempFunc(f func() null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Avetemp = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetAvetemp() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Avetemp = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomAvetemp(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Avetemp = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomAvetempNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Avetemp = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Raingauge(val null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Raingauge = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) RaingaugeFunc(f func() null.Val[float64]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Raingauge = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetRaingauge() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Raingauge = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomRaingauge(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Raingauge = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomRaingaugeNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Raingauge = func() null.Val[float64] {
if f == nil {
f = &defaultFaker
}
val := random_float64(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) LR(val null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LR = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LRFunc(f func() null.Val[int16]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LR = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLR() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LR = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLR(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LR = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomLRNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.LR = func() null.Val[int16] {
if f == nil {
f = &defaultFaker
}
val := random_int16(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Field(val null.Val[int32]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Field = func() null.Val[int32] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) FieldFunc(f func() null.Val[int32]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Field = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetField() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Field = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomField(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Field = 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 fieldseekerTrapdatumMods) RandomFieldNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Field = 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 fieldseekerTrapdatumMods) Vectorsurvtrapdataid(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtrapdataid = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) VectorsurvtrapdataidFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtrapdataid = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetVectorsurvtrapdataid() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtrapdataid = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomVectorsurvtrapdataid(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtrapdataid = 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 fieldseekerTrapdatumMods) RandomVectorsurvtrapdataidNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtrapdataid = 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 fieldseekerTrapdatumMods) Vectorsurvtraplocationid(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtraplocationid = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) VectorsurvtraplocationidFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtraplocationid = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetVectorsurvtraplocationid() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtraplocationid = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomVectorsurvtraplocationid(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtraplocationid = 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 fieldseekerTrapdatumMods) RandomVectorsurvtraplocationidNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Vectorsurvtraplocationid = 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 fieldseekerTrapdatumMods) Creationdate(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Creationdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Creationdate = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetCreationdate() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomCreationdate(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Creator(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Creator = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) CreatorFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Creator = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetCreator() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomCreator(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Editdate(val null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Editdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Editdate = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetEditdate() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomEditdate(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Editor(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Editor = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) EditorFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Editor = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetEditor() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomEditor(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) RandomEditorNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
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 fieldseekerTrapdatumMods) Lure(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Lure = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) LureFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Lure = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetLure() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Lure = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomLure(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Lure = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "256")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomLureNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Lure = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "256")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geometry = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetGeometry() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geometry = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
func (m fieldseekerTrapdatumMods) RandomGeometry(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] {
return random_types_JSON_json_RawMessage_(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Geospatial(val null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geospatial = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) GeospatialFunc(f func() null.Val[string]) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geospatial = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetGeospatial() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geospatial = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTrapdatumMods) RandomGeospatial(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geospatial = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTrapdatumMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Geospatial = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) Version(val int32) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Version = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) VersionFunc(f func() int32) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Version = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetVersion() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Version = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
func (m fieldseekerTrapdatumMods) RandomVersion(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.Version = func() int32 {
return random_int32(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerTrapdatumMods) OrganizationID(val int32) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.OrganizationID = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerTrapdatumMods) OrganizationIDFunc(f func() int32) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.OrganizationID = f
})
}
// Clear any values for the column
func (m fieldseekerTrapdatumMods) UnsetOrganizationID() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.OrganizationID = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
func (m fieldseekerTrapdatumMods) RandomOrganizationID(f *faker.Faker) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
o.OrganizationID = func() int32 {
return random_int32(f)
}
})
}
func (m fieldseekerTrapdatumMods) WithParentsCascading() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
if isDone, _ := fieldseekerTrapdatumWithParentsCascadingCtx.Value(ctx); isDone {
return
}
ctx = fieldseekerTrapdatumWithParentsCascadingCtx.WithValue(ctx, true)
{
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
m.WithOrganization(related).Apply(ctx, o)
}
})
}
func (m fieldseekerTrapdatumMods) WithOrganization(rel *OrganizationTemplate) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
o.r.Organization = &fieldseekerTrapdatumROrganizationR{
o: rel,
}
})
}
func (m fieldseekerTrapdatumMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
related := o.f.NewOrganizationWithContext(ctx, mods...)
m.WithOrganization(related).Apply(ctx, o)
})
}
func (m fieldseekerTrapdatumMods) WithExistingOrganization(em *models.Organization) FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
o.r.Organization = &fieldseekerTrapdatumROrganizationR{
o: o.f.FromExistingOrganization(em),
}
})
}
func (m fieldseekerTrapdatumMods) WithoutOrganization() FieldseekerTrapdatumMod {
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
o.r.Organization = nil
})
}