nidus-sync/db/factory/fieldseeker.rodentlocation.bob.go
Eli Ribble 1aefca2f5d Make GlobalID required for all Fieldseeker tables
I'm pretty sure it has to be there, and it allows me to clean up my
code.
2026-01-05 02:28:28 +00:00

2297 lines
78 KiB
Go

// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package factory
import (
"context"
"encoding/json"
"testing"
"time"
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
"github.com/aarondl/opt/null"
"github.com/aarondl/opt/omit"
"github.com/aarondl/opt/omitnull"
"github.com/google/uuid"
"github.com/jaswdr/faker/v2"
"github.com/stephenafamo/bob"
"github.com/stephenafamo/bob/types"
)
type FieldseekerRodentlocationMod interface {
Apply(context.Context, *FieldseekerRodentlocationTemplate)
}
type FieldseekerRodentlocationModFunc func(context.Context, *FieldseekerRodentlocationTemplate)
func (f FieldseekerRodentlocationModFunc) Apply(ctx context.Context, n *FieldseekerRodentlocationTemplate) {
f(ctx, n)
}
type FieldseekerRodentlocationModSlice []FieldseekerRodentlocationMod
func (mods FieldseekerRodentlocationModSlice) Apply(ctx context.Context, n *FieldseekerRodentlocationTemplate) {
for _, f := range mods {
f.Apply(ctx, n)
}
}
// FieldseekerRodentlocationTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerRodentlocationTemplate struct {
Objectid func() int64
Locationname func() null.Val[string]
Zone func() null.Val[string]
Zone2 func() null.Val[string]
Habitat func() null.Val[string]
Priority func() null.Val[string]
Usetype func() null.Val[string]
Active func() null.Val[int16]
Description func() null.Val[string]
Accessdesc func() null.Val[string]
Comments func() null.Val[string]
Symbology func() null.Val[string]
Externalid func() null.Val[string]
Nextactiondatescheduled func() null.Val[time.Time]
Locationnumber func() null.Val[int32]
Lastinspectdate func() null.Val[time.Time]
Lastinspectspecies func() null.Val[string]
Lastinspectaction func() null.Val[string]
Lastinspectconditions func() null.Val[string]
Lastinspectrodentevidence func() null.Val[string]
Globalid func() uuid.UUID
CreatedUser func() null.Val[string]
CreatedDate func() null.Val[time.Time]
LastEditedUser func() null.Val[string]
LastEditedDate func() null.Val[time.Time]
Creationdate func() null.Val[time.Time]
Creator func() null.Val[string]
Editdate func() null.Val[time.Time]
Editor func() null.Val[string]
Jurisdiction func() null.Val[string]
Geometry func() types.JSON[json.RawMessage]
Geospatial func() null.Val[string]
Version func() int32
OrganizationID func() int32
r fieldseekerRodentlocationR
f *Factory
alreadyPersisted bool
}
type fieldseekerRodentlocationR struct {
Organization *fieldseekerRodentlocationROrganizationR
}
type fieldseekerRodentlocationROrganizationR struct {
o *OrganizationTemplate
}
// Apply mods to the FieldseekerRodentlocationTemplate
func (o *FieldseekerRodentlocationTemplate) Apply(ctx context.Context, mods ...FieldseekerRodentlocationMod) {
for _, mod := range mods {
mod.Apply(ctx, o)
}
}
// setModelRels creates and sets the relationships on *models.FieldseekerRodentlocation
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerRodentlocationTemplate) setModelRels(o *models.FieldseekerRodentlocation) {
if t.r.Organization != nil {
rel := t.r.Organization.o.Build()
rel.R.Rodentlocations = append(rel.R.Rodentlocations, o)
o.OrganizationID = rel.ID // h2
o.R.Organization = rel
}
}
// BuildSetter returns an *models.FieldseekerRodentlocationSetter
// this does nothing with the relationship templates
func (o FieldseekerRodentlocationTemplate) BuildSetter() *models.FieldseekerRodentlocationSetter {
m := &models.FieldseekerRodentlocationSetter{}
if o.Objectid != nil {
val := o.Objectid()
m.Objectid = omit.From(val)
}
if o.Locationname != nil {
val := o.Locationname()
m.Locationname = omitnull.FromNull(val)
}
if o.Zone != nil {
val := o.Zone()
m.Zone = omitnull.FromNull(val)
}
if o.Zone2 != nil {
val := o.Zone2()
m.Zone2 = omitnull.FromNull(val)
}
if o.Habitat != nil {
val := o.Habitat()
m.Habitat = omitnull.FromNull(val)
}
if o.Priority != nil {
val := o.Priority()
m.Priority = omitnull.FromNull(val)
}
if o.Usetype != nil {
val := o.Usetype()
m.Usetype = omitnull.FromNull(val)
}
if o.Active != nil {
val := o.Active()
m.Active = omitnull.FromNull(val)
}
if o.Description != nil {
val := o.Description()
m.Description = omitnull.FromNull(val)
}
if o.Accessdesc != nil {
val := o.Accessdesc()
m.Accessdesc = omitnull.FromNull(val)
}
if o.Comments != nil {
val := o.Comments()
m.Comments = omitnull.FromNull(val)
}
if o.Symbology != nil {
val := o.Symbology()
m.Symbology = omitnull.FromNull(val)
}
if o.Externalid != nil {
val := o.Externalid()
m.Externalid = omitnull.FromNull(val)
}
if o.Nextactiondatescheduled != nil {
val := o.Nextactiondatescheduled()
m.Nextactiondatescheduled = omitnull.FromNull(val)
}
if o.Locationnumber != nil {
val := o.Locationnumber()
m.Locationnumber = omitnull.FromNull(val)
}
if o.Lastinspectdate != nil {
val := o.Lastinspectdate()
m.Lastinspectdate = omitnull.FromNull(val)
}
if o.Lastinspectspecies != nil {
val := o.Lastinspectspecies()
m.Lastinspectspecies = omitnull.FromNull(val)
}
if o.Lastinspectaction != nil {
val := o.Lastinspectaction()
m.Lastinspectaction = omitnull.FromNull(val)
}
if o.Lastinspectconditions != nil {
val := o.Lastinspectconditions()
m.Lastinspectconditions = omitnull.FromNull(val)
}
if o.Lastinspectrodentevidence != nil {
val := o.Lastinspectrodentevidence()
m.Lastinspectrodentevidence = omitnull.FromNull(val)
}
if o.Globalid != nil {
val := o.Globalid()
m.Globalid = omit.From(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.Creationdate != nil {
val := o.Creationdate()
m.Creationdate = omitnull.FromNull(val)
}
if o.Creator != nil {
val := o.Creator()
m.Creator = omitnull.FromNull(val)
}
if o.Editdate != nil {
val := o.Editdate()
m.Editdate = omitnull.FromNull(val)
}
if o.Editor != nil {
val := o.Editor()
m.Editor = omitnull.FromNull(val)
}
if o.Jurisdiction != nil {
val := o.Jurisdiction()
m.Jurisdiction = omitnull.FromNull(val)
}
if o.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.FieldseekerRodentlocationSetter
// this does nothing with the relationship templates
func (o FieldseekerRodentlocationTemplate) BuildManySetter(number int) []*models.FieldseekerRodentlocationSetter {
m := make([]*models.FieldseekerRodentlocationSetter, number)
for i := range m {
m[i] = o.BuildSetter()
}
return m
}
// Build returns an *models.FieldseekerRodentlocation
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerRodentlocationTemplate.Create
func (o FieldseekerRodentlocationTemplate) Build() *models.FieldseekerRodentlocation {
m := &models.FieldseekerRodentlocation{}
if o.Objectid != nil {
m.Objectid = o.Objectid()
}
if o.Locationname != nil {
m.Locationname = o.Locationname()
}
if o.Zone != nil {
m.Zone = o.Zone()
}
if o.Zone2 != nil {
m.Zone2 = o.Zone2()
}
if o.Habitat != nil {
m.Habitat = o.Habitat()
}
if o.Priority != nil {
m.Priority = o.Priority()
}
if o.Usetype != nil {
m.Usetype = o.Usetype()
}
if o.Active != nil {
m.Active = o.Active()
}
if o.Description != nil {
m.Description = o.Description()
}
if o.Accessdesc != nil {
m.Accessdesc = o.Accessdesc()
}
if o.Comments != nil {
m.Comments = o.Comments()
}
if o.Symbology != nil {
m.Symbology = o.Symbology()
}
if o.Externalid != nil {
m.Externalid = o.Externalid()
}
if o.Nextactiondatescheduled != nil {
m.Nextactiondatescheduled = o.Nextactiondatescheduled()
}
if o.Locationnumber != nil {
m.Locationnumber = o.Locationnumber()
}
if o.Lastinspectdate != nil {
m.Lastinspectdate = o.Lastinspectdate()
}
if o.Lastinspectspecies != nil {
m.Lastinspectspecies = o.Lastinspectspecies()
}
if o.Lastinspectaction != nil {
m.Lastinspectaction = o.Lastinspectaction()
}
if o.Lastinspectconditions != nil {
m.Lastinspectconditions = o.Lastinspectconditions()
}
if o.Lastinspectrodentevidence != nil {
m.Lastinspectrodentevidence = o.Lastinspectrodentevidence()
}
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.Creationdate != nil {
m.Creationdate = o.Creationdate()
}
if o.Creator != nil {
m.Creator = o.Creator()
}
if o.Editdate != nil {
m.Editdate = o.Editdate()
}
if o.Editor != nil {
m.Editor = o.Editor()
}
if o.Jurisdiction != nil {
m.Jurisdiction = o.Jurisdiction()
}
if o.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.FieldseekerRodentlocationSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerRodentlocationTemplate.CreateMany
func (o FieldseekerRodentlocationTemplate) BuildMany(number int) models.FieldseekerRodentlocationSlice {
m := make(models.FieldseekerRodentlocationSlice, number)
for i := range m {
m[i] = o.Build()
}
return m
}
func ensureCreatableFieldseekerRodentlocation(m *models.FieldseekerRodentlocationSetter) {
if !(m.Globalid.IsValue()) {
val := random_uuid_UUID(nil)
m.Globalid = omit.From(val)
}
if !(m.Geometry.IsValue()) {
val := random_types_JSON_json_RawMessage_(nil)
m.Geometry = omit.From(val)
}
if !(m.OrganizationID.IsValue()) {
val := random_int32(nil)
m.OrganizationID = omit.From(val)
}
}
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerRodentlocation
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerRodentlocationTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerRodentlocation) error {
var err error
return err
}
// Create builds a fieldseekerRodentlocation and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerRodentlocationTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerRodentlocation, error) {
var err error
opt := o.BuildSetter()
ensureCreatableFieldseekerRodentlocation(opt)
if o.r.Organization == nil {
FieldseekerRodentlocationMods.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.FieldseekerRodentlocations.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 fieldseekerRodentlocation and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerRodentlocationTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerRodentlocation {
m, err := o.Create(ctx, exec)
if err != nil {
panic(err)
}
return m
}
// CreateOrFail builds a fieldseekerRodentlocation 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 *FieldseekerRodentlocationTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerRodentlocation {
tb.Helper()
m, err := o.Create(ctx, exec)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// CreateMany builds multiple fieldseekerRodentlocations and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerRodentlocationTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerRodentlocationSlice, error) {
var err error
m := make(models.FieldseekerRodentlocationSlice, number)
for i := range m {
m[i], err = o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
return m, nil
}
// MustCreateMany builds multiple fieldseekerRodentlocations and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerRodentlocationTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerRodentlocationSlice {
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
panic(err)
}
return m
}
// CreateManyOrFail builds multiple fieldseekerRodentlocations 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 FieldseekerRodentlocationTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerRodentlocationSlice {
tb.Helper()
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// FieldseekerRodentlocation has methods that act as mods for the FieldseekerRodentlocationTemplate
var FieldseekerRodentlocationMods fieldseekerRodentlocationMods
type fieldseekerRodentlocationMods struct{}
func (m fieldseekerRodentlocationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModSlice{
FieldseekerRodentlocationMods.RandomObjectid(f),
FieldseekerRodentlocationMods.RandomLocationname(f),
FieldseekerRodentlocationMods.RandomZone(f),
FieldseekerRodentlocationMods.RandomZone2(f),
FieldseekerRodentlocationMods.RandomHabitat(f),
FieldseekerRodentlocationMods.RandomPriority(f),
FieldseekerRodentlocationMods.RandomUsetype(f),
FieldseekerRodentlocationMods.RandomActive(f),
FieldseekerRodentlocationMods.RandomDescription(f),
FieldseekerRodentlocationMods.RandomAccessdesc(f),
FieldseekerRodentlocationMods.RandomComments(f),
FieldseekerRodentlocationMods.RandomSymbology(f),
FieldseekerRodentlocationMods.RandomExternalid(f),
FieldseekerRodentlocationMods.RandomNextactiondatescheduled(f),
FieldseekerRodentlocationMods.RandomLocationnumber(f),
FieldseekerRodentlocationMods.RandomLastinspectdate(f),
FieldseekerRodentlocationMods.RandomLastinspectspecies(f),
FieldseekerRodentlocationMods.RandomLastinspectaction(f),
FieldseekerRodentlocationMods.RandomLastinspectconditions(f),
FieldseekerRodentlocationMods.RandomLastinspectrodentevidence(f),
FieldseekerRodentlocationMods.RandomGlobalid(f),
FieldseekerRodentlocationMods.RandomCreatedUser(f),
FieldseekerRodentlocationMods.RandomCreatedDate(f),
FieldseekerRodentlocationMods.RandomLastEditedUser(f),
FieldseekerRodentlocationMods.RandomLastEditedDate(f),
FieldseekerRodentlocationMods.RandomCreationdate(f),
FieldseekerRodentlocationMods.RandomCreator(f),
FieldseekerRodentlocationMods.RandomEditdate(f),
FieldseekerRodentlocationMods.RandomEditor(f),
FieldseekerRodentlocationMods.RandomJurisdiction(f),
FieldseekerRodentlocationMods.RandomGeometry(f),
FieldseekerRodentlocationMods.RandomGeospatial(f),
FieldseekerRodentlocationMods.RandomVersion(f),
FieldseekerRodentlocationMods.RandomOrganizationID(f),
}
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Objectid(val int64) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Objectid = func() int64 { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) ObjectidFunc(f func() int64) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Objectid = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetObjectid() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomObjectid(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Objectid = func() int64 {
return random_int64(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Locationname(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationname = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LocationnameFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationname = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLocationname() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLocationname(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Zone(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Zone = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) ZoneFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Zone = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetZone() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomZone(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomZoneNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Zone2(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Zone2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) Zone2Func(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Zone2 = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetZone2() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomZone2(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomZone2NotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Habitat(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Habitat = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) HabitatFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Habitat = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetHabitat() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Habitat = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomHabitat(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Habitat = 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 fieldseekerRodentlocationMods) RandomHabitatNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Habitat = 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 fieldseekerRodentlocationMods) Priority(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Priority = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) PriorityFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Priority = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetPriority() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Priority = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomPriority(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Priority = 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 fieldseekerRodentlocationMods) RandomPriorityNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Priority = 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 fieldseekerRodentlocationMods) Usetype(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Usetype = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) UsetypeFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Usetype = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetUsetype() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Usetype = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomUsetype(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Usetype = 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 fieldseekerRodentlocationMods) RandomUsetypeNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Usetype = 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 fieldseekerRodentlocationMods) Active(val null.Val[int16]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Active = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) ActiveFunc(f func() null.Val[int16]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Active = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetActive() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Active = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomActive(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Active = 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 fieldseekerRodentlocationMods) RandomActiveNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Active = 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 fieldseekerRodentlocationMods) Description(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Description = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) DescriptionFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Description = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetDescription() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Description = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomDescription(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Description = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomDescriptionNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Description = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Accessdesc(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Accessdesc = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) AccessdescFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Accessdesc = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetAccessdesc() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Accessdesc = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomAccessdesc(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Accessdesc = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomAccessdescNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Accessdesc = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Comments(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Comments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) CommentsFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Comments = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetComments() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomComments(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Symbology(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Symbology = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) SymbologyFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Symbology = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetSymbology() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Symbology = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomSymbology(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Symbology = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "10")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomSymbologyNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Symbology = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "10")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Externalid(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Externalid = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) ExternalidFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Externalid = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetExternalid() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Externalid = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomExternalid(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Externalid = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "50")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomExternalidNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Externalid = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "50")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Nextactiondatescheduled(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Nextactiondatescheduled = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) NextactiondatescheduledFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Nextactiondatescheduled = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetNextactiondatescheduled() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Nextactiondatescheduled = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomNextactiondatescheduled(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Nextactiondatescheduled = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomNextactiondatescheduledNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Nextactiondatescheduled = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Locationnumber(val null.Val[int32]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationnumber = func() null.Val[int32] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LocationnumberFunc(f func() null.Val[int32]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationnumber = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLocationnumber() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationnumber = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLocationnumber(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationnumber = func() null.Val[int32] {
if f == nil {
f = &defaultFaker
}
val := random_int32(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomLocationnumberNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Locationnumber = func() null.Val[int32] {
if f == nil {
f = &defaultFaker
}
val := random_int32(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Lastinspectdate(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastinspectdateFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectdate = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastinspectdate() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectdate = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLastinspectdate(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectdate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomLastinspectdateNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectdate = func() null.Val[time.Time] {
if f == nil {
f = &defaultFaker
}
val := random_time_Time(f)
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Lastinspectspecies(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectspecies = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastinspectspeciesFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectspecies = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastinspectspecies() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectspecies = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLastinspectspecies(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectspecies = 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 fieldseekerRodentlocationMods) RandomLastinspectspeciesNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectspecies = 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 fieldseekerRodentlocationMods) Lastinspectaction(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectaction = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastinspectactionFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectaction = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastinspectaction() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectaction = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLastinspectaction(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectaction = 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 fieldseekerRodentlocationMods) RandomLastinspectactionNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectaction = 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 fieldseekerRodentlocationMods) Lastinspectconditions(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectconditions = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastinspectconditionsFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectconditions = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastinspectconditions() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectconditions = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLastinspectconditions(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectconditions = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomLastinspectconditionsNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectconditions = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "250")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Lastinspectrodentevidence(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectrodentevidence = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastinspectrodentevidenceFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectrodentevidence = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastinspectrodentevidence() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectrodentevidence = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomLastinspectrodentevidence(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectrodentevidence = 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 fieldseekerRodentlocationMods) RandomLastinspectrodentevidenceNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Lastinspectrodentevidence = 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 fieldseekerRodentlocationMods) Globalid(val uuid.UUID) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Globalid = func() uuid.UUID { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) GlobalidFunc(f func() uuid.UUID) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Globalid = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetGlobalid() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Globalid = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
func (m fieldseekerRodentlocationMods) RandomGlobalid(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Globalid = func() uuid.UUID {
return random_uuid_UUID(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) CreatedUser(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.CreatedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.CreatedUser = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetCreatedUser() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreatedUser(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) CreatedDate(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.CreatedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.CreatedDate = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetCreatedDate() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreatedDate(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) LastEditedUser(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.LastEditedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.LastEditedUser = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastEditedUser() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLastEditedUser(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) LastEditedDate(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.LastEditedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.LastEditedDate = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetLastEditedDate() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLastEditedDate(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Creationdate(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Creationdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Creationdate = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetCreationdate() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreationdate(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Creator(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Creator = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) CreatorFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Creator = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetCreator() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreator(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Editdate(val null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Editdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Editdate = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetEditdate() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomEditdate(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Editor(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Editor = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) EditorFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Editor = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetEditor() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomEditor(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomEditorNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Jurisdiction(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Jurisdiction = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) JurisdictionFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Jurisdiction = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetJurisdiction() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Jurisdiction = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerRodentlocationMods) RandomJurisdiction(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Jurisdiction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerRodentlocationMods) RandomJurisdictionNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Jurisdiction = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "25")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Geometry = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetGeometry() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomGeometry(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] {
return random_types_JSON_json_RawMessage_(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) Geospatial(val null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Geospatial = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) GeospatialFunc(f func() null.Val[string]) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Geospatial = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetGeospatial() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomGeospatial(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) Version(val int32) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Version = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) VersionFunc(f func() int32) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Version = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetVersion() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomVersion(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.Version = func() int32 {
return random_int32(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerRodentlocationMods) OrganizationID(val int32) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.OrganizationID = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerRodentlocationMods) OrganizationIDFunc(f func() int32) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.OrganizationID = f
})
}
// Clear any values for the column
func (m fieldseekerRodentlocationMods) UnsetOrganizationID() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
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 fieldseekerRodentlocationMods) RandomOrganizationID(f *faker.Faker) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
o.OrganizationID = func() int32 {
return random_int32(f)
}
})
}
func (m fieldseekerRodentlocationMods) WithParentsCascading() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
if isDone, _ := fieldseekerRodentlocationWithParentsCascadingCtx.Value(ctx); isDone {
return
}
ctx = fieldseekerRodentlocationWithParentsCascadingCtx.WithValue(ctx, true)
{
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
m.WithOrganization(related).Apply(ctx, o)
}
})
}
func (m fieldseekerRodentlocationMods) WithOrganization(rel *OrganizationTemplate) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
o.r.Organization = &fieldseekerRodentlocationROrganizationR{
o: rel,
}
})
}
func (m fieldseekerRodentlocationMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
related := o.f.NewOrganizationWithContext(ctx, mods...)
m.WithOrganization(related).Apply(ctx, o)
})
}
func (m fieldseekerRodentlocationMods) WithExistingOrganization(em *models.Organization) FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
o.r.Organization = &fieldseekerRodentlocationROrganizationR{
o: o.f.FromExistingOrganization(em),
}
})
}
func (m fieldseekerRodentlocationMods) WithoutOrganization() FieldseekerRodentlocationMod {
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
o.r.Organization = nil
})
}