nidus-sync/db/factory/fieldseeker.samplecollection.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

3289 lines
112 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 FieldseekerSamplecollectionMod interface {
Apply(context.Context, *FieldseekerSamplecollectionTemplate)
}
type FieldseekerSamplecollectionModFunc func(context.Context, *FieldseekerSamplecollectionTemplate)
func (f FieldseekerSamplecollectionModFunc) Apply(ctx context.Context, n *FieldseekerSamplecollectionTemplate) {
f(ctx, n)
}
type FieldseekerSamplecollectionModSlice []FieldseekerSamplecollectionMod
func (mods FieldseekerSamplecollectionModSlice) Apply(ctx context.Context, n *FieldseekerSamplecollectionTemplate) {
for _, f := range mods {
f.Apply(ctx, n)
}
}
// FieldseekerSamplecollectionTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerSamplecollectionTemplate struct {
Objectid func() int64
LocID func() null.Val[uuid.UUID]
Startdatetime func() null.Val[time.Time]
Enddatetime func() null.Val[time.Time]
Sitecond func() null.Val[string]
Sampleid func() null.Val[string]
Survtech func() null.Val[string]
Datesent func() null.Val[time.Time]
Datetested func() null.Val[time.Time]
Testtech func() null.Val[string]
Comments func() null.Val[string]
Processed func() null.Val[int16]
Sampletype func() null.Val[string]
Samplecond func() null.Val[string]
Species func() null.Val[string]
Sex func() null.Val[string]
Avetemp func() null.Val[float64]
Windspeed func() null.Val[float64]
Winddir func() null.Val[string]
Raingauge func() null.Val[float64]
Activity func() null.Val[string]
Testmethod func() null.Val[string]
Diseasetested func() null.Val[string]
Diseasepos func() null.Val[string]
Reviewed func() null.Val[int16]
Reviewedby func() null.Val[string]
Revieweddate func() null.Val[time.Time]
Locationname func() null.Val[string]
Zone func() null.Val[string]
Recordstatus func() null.Val[int16]
Zone2 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]
Lab func() null.Val[string]
Fieldtech func() null.Val[string]
Flockid func() null.Val[uuid.UUID]
Samplecount func() null.Val[int16]
Chickenid func() null.Val[uuid.UUID]
Gatewaysync func() null.Val[int16]
Creationdate func() null.Val[time.Time]
Creator func() null.Val[string]
Editdate func() null.Val[time.Time]
Editor func() null.Val[string]
Geometry func() types.JSON[json.RawMessage]
Geospatial func() null.Val[string]
Version func() int32
OrganizationID func() int32
r fieldseekerSamplecollectionR
f *Factory
alreadyPersisted bool
}
type fieldseekerSamplecollectionR struct {
Organization *fieldseekerSamplecollectionROrganizationR
}
type fieldseekerSamplecollectionROrganizationR struct {
o *OrganizationTemplate
}
// Apply mods to the FieldseekerSamplecollectionTemplate
func (o *FieldseekerSamplecollectionTemplate) Apply(ctx context.Context, mods ...FieldseekerSamplecollectionMod) {
for _, mod := range mods {
mod.Apply(ctx, o)
}
}
// setModelRels creates and sets the relationships on *models.FieldseekerSamplecollection
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerSamplecollectionTemplate) setModelRels(o *models.FieldseekerSamplecollection) {
if t.r.Organization != nil {
rel := t.r.Organization.o.Build()
rel.R.Samplecollections = append(rel.R.Samplecollections, o)
o.OrganizationID = rel.ID // h2
o.R.Organization = rel
}
}
// BuildSetter returns an *models.FieldseekerSamplecollectionSetter
// this does nothing with the relationship templates
func (o FieldseekerSamplecollectionTemplate) BuildSetter() *models.FieldseekerSamplecollectionSetter {
m := &models.FieldseekerSamplecollectionSetter{}
if o.Objectid != nil {
val := o.Objectid()
m.Objectid = omit.From(val)
}
if o.LocID != nil {
val := o.LocID()
m.LocID = 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.Sitecond != nil {
val := o.Sitecond()
m.Sitecond = omitnull.FromNull(val)
}
if o.Sampleid != nil {
val := o.Sampleid()
m.Sampleid = omitnull.FromNull(val)
}
if o.Survtech != nil {
val := o.Survtech()
m.Survtech = omitnull.FromNull(val)
}
if o.Datesent != nil {
val := o.Datesent()
m.Datesent = omitnull.FromNull(val)
}
if o.Datetested != nil {
val := o.Datetested()
m.Datetested = omitnull.FromNull(val)
}
if o.Testtech != nil {
val := o.Testtech()
m.Testtech = omitnull.FromNull(val)
}
if o.Comments != nil {
val := o.Comments()
m.Comments = omitnull.FromNull(val)
}
if o.Processed != nil {
val := o.Processed()
m.Processed = omitnull.FromNull(val)
}
if o.Sampletype != nil {
val := o.Sampletype()
m.Sampletype = omitnull.FromNull(val)
}
if o.Samplecond != nil {
val := o.Samplecond()
m.Samplecond = omitnull.FromNull(val)
}
if o.Species != nil {
val := o.Species()
m.Species = omitnull.FromNull(val)
}
if o.Sex != nil {
val := o.Sex()
m.Sex = omitnull.FromNull(val)
}
if o.Avetemp != nil {
val := o.Avetemp()
m.Avetemp = omitnull.FromNull(val)
}
if o.Windspeed != nil {
val := o.Windspeed()
m.Windspeed = omitnull.FromNull(val)
}
if o.Winddir != nil {
val := o.Winddir()
m.Winddir = omitnull.FromNull(val)
}
if o.Raingauge != nil {
val := o.Raingauge()
m.Raingauge = omitnull.FromNull(val)
}
if o.Activity != nil {
val := o.Activity()
m.Activity = omitnull.FromNull(val)
}
if o.Testmethod != nil {
val := o.Testmethod()
m.Testmethod = omitnull.FromNull(val)
}
if o.Diseasetested != nil {
val := o.Diseasetested()
m.Diseasetested = omitnull.FromNull(val)
}
if o.Diseasepos != nil {
val := o.Diseasepos()
m.Diseasepos = 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.Locationname != nil {
val := o.Locationname()
m.Locationname = omitnull.FromNull(val)
}
if o.Zone != nil {
val := o.Zone()
m.Zone = omitnull.FromNull(val)
}
if o.Recordstatus != nil {
val := o.Recordstatus()
m.Recordstatus = omitnull.FromNull(val)
}
if o.Zone2 != nil {
val := o.Zone2()
m.Zone2 = 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.Lab != nil {
val := o.Lab()
m.Lab = omitnull.FromNull(val)
}
if o.Fieldtech != nil {
val := o.Fieldtech()
m.Fieldtech = omitnull.FromNull(val)
}
if o.Flockid != nil {
val := o.Flockid()
m.Flockid = omitnull.FromNull(val)
}
if o.Samplecount != nil {
val := o.Samplecount()
m.Samplecount = omitnull.FromNull(val)
}
if o.Chickenid != nil {
val := o.Chickenid()
m.Chickenid = omitnull.FromNull(val)
}
if o.Gatewaysync != nil {
val := o.Gatewaysync()
m.Gatewaysync = 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.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.FieldseekerSamplecollectionSetter
// this does nothing with the relationship templates
func (o FieldseekerSamplecollectionTemplate) BuildManySetter(number int) []*models.FieldseekerSamplecollectionSetter {
m := make([]*models.FieldseekerSamplecollectionSetter, number)
for i := range m {
m[i] = o.BuildSetter()
}
return m
}
// Build returns an *models.FieldseekerSamplecollection
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerSamplecollectionTemplate.Create
func (o FieldseekerSamplecollectionTemplate) Build() *models.FieldseekerSamplecollection {
m := &models.FieldseekerSamplecollection{}
if o.Objectid != nil {
m.Objectid = o.Objectid()
}
if o.LocID != nil {
m.LocID = o.LocID()
}
if o.Startdatetime != nil {
m.Startdatetime = o.Startdatetime()
}
if o.Enddatetime != nil {
m.Enddatetime = o.Enddatetime()
}
if o.Sitecond != nil {
m.Sitecond = o.Sitecond()
}
if o.Sampleid != nil {
m.Sampleid = o.Sampleid()
}
if o.Survtech != nil {
m.Survtech = o.Survtech()
}
if o.Datesent != nil {
m.Datesent = o.Datesent()
}
if o.Datetested != nil {
m.Datetested = o.Datetested()
}
if o.Testtech != nil {
m.Testtech = o.Testtech()
}
if o.Comments != nil {
m.Comments = o.Comments()
}
if o.Processed != nil {
m.Processed = o.Processed()
}
if o.Sampletype != nil {
m.Sampletype = o.Sampletype()
}
if o.Samplecond != nil {
m.Samplecond = o.Samplecond()
}
if o.Species != nil {
m.Species = o.Species()
}
if o.Sex != nil {
m.Sex = o.Sex()
}
if o.Avetemp != nil {
m.Avetemp = o.Avetemp()
}
if o.Windspeed != nil {
m.Windspeed = o.Windspeed()
}
if o.Winddir != nil {
m.Winddir = o.Winddir()
}
if o.Raingauge != nil {
m.Raingauge = o.Raingauge()
}
if o.Activity != nil {
m.Activity = o.Activity()
}
if o.Testmethod != nil {
m.Testmethod = o.Testmethod()
}
if o.Diseasetested != nil {
m.Diseasetested = o.Diseasetested()
}
if o.Diseasepos != nil {
m.Diseasepos = o.Diseasepos()
}
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.Locationname != nil {
m.Locationname = o.Locationname()
}
if o.Zone != nil {
m.Zone = o.Zone()
}
if o.Recordstatus != nil {
m.Recordstatus = o.Recordstatus()
}
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.Lab != nil {
m.Lab = o.Lab()
}
if o.Fieldtech != nil {
m.Fieldtech = o.Fieldtech()
}
if o.Flockid != nil {
m.Flockid = o.Flockid()
}
if o.Samplecount != nil {
m.Samplecount = o.Samplecount()
}
if o.Chickenid != nil {
m.Chickenid = o.Chickenid()
}
if o.Gatewaysync != nil {
m.Gatewaysync = o.Gatewaysync()
}
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.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.FieldseekerSamplecollectionSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerSamplecollectionTemplate.CreateMany
func (o FieldseekerSamplecollectionTemplate) BuildMany(number int) models.FieldseekerSamplecollectionSlice {
m := make(models.FieldseekerSamplecollectionSlice, number)
for i := range m {
m[i] = o.Build()
}
return m
}
func ensureCreatableFieldseekerSamplecollection(m *models.FieldseekerSamplecollectionSetter) {
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.FieldseekerSamplecollection
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerSamplecollectionTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerSamplecollection) error {
var err error
return err
}
// Create builds a fieldseekerSamplecollection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerSamplecollectionTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerSamplecollection, error) {
var err error
opt := o.BuildSetter()
ensureCreatableFieldseekerSamplecollection(opt)
if o.r.Organization == nil {
FieldseekerSamplecollectionMods.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.FieldseekerSamplecollections.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 fieldseekerSamplecollection and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerSamplecollectionTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerSamplecollection {
m, err := o.Create(ctx, exec)
if err != nil {
panic(err)
}
return m
}
// CreateOrFail builds a fieldseekerSamplecollection 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 *FieldseekerSamplecollectionTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerSamplecollection {
tb.Helper()
m, err := o.Create(ctx, exec)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// CreateMany builds multiple fieldseekerSamplecollections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerSamplecollectionTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerSamplecollectionSlice, error) {
var err error
m := make(models.FieldseekerSamplecollectionSlice, number)
for i := range m {
m[i], err = o.Create(ctx, exec)
if err != nil {
return nil, err
}
}
return m, nil
}
// MustCreateMany builds multiple fieldseekerSamplecollections and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerSamplecollectionTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerSamplecollectionSlice {
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
panic(err)
}
return m
}
// CreateManyOrFail builds multiple fieldseekerSamplecollections 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 FieldseekerSamplecollectionTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerSamplecollectionSlice {
tb.Helper()
m, err := o.CreateMany(ctx, exec, number)
if err != nil {
tb.Fatal(err)
return nil
}
return m
}
// FieldseekerSamplecollection has methods that act as mods for the FieldseekerSamplecollectionTemplate
var FieldseekerSamplecollectionMods fieldseekerSamplecollectionMods
type fieldseekerSamplecollectionMods struct{}
func (m fieldseekerSamplecollectionMods) RandomizeAllColumns(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModSlice{
FieldseekerSamplecollectionMods.RandomObjectid(f),
FieldseekerSamplecollectionMods.RandomLocID(f),
FieldseekerSamplecollectionMods.RandomStartdatetime(f),
FieldseekerSamplecollectionMods.RandomEnddatetime(f),
FieldseekerSamplecollectionMods.RandomSitecond(f),
FieldseekerSamplecollectionMods.RandomSampleid(f),
FieldseekerSamplecollectionMods.RandomSurvtech(f),
FieldseekerSamplecollectionMods.RandomDatesent(f),
FieldseekerSamplecollectionMods.RandomDatetested(f),
FieldseekerSamplecollectionMods.RandomTesttech(f),
FieldseekerSamplecollectionMods.RandomComments(f),
FieldseekerSamplecollectionMods.RandomProcessed(f),
FieldseekerSamplecollectionMods.RandomSampletype(f),
FieldseekerSamplecollectionMods.RandomSamplecond(f),
FieldseekerSamplecollectionMods.RandomSpecies(f),
FieldseekerSamplecollectionMods.RandomSex(f),
FieldseekerSamplecollectionMods.RandomAvetemp(f),
FieldseekerSamplecollectionMods.RandomWindspeed(f),
FieldseekerSamplecollectionMods.RandomWinddir(f),
FieldseekerSamplecollectionMods.RandomRaingauge(f),
FieldseekerSamplecollectionMods.RandomActivity(f),
FieldseekerSamplecollectionMods.RandomTestmethod(f),
FieldseekerSamplecollectionMods.RandomDiseasetested(f),
FieldseekerSamplecollectionMods.RandomDiseasepos(f),
FieldseekerSamplecollectionMods.RandomReviewed(f),
FieldseekerSamplecollectionMods.RandomReviewedby(f),
FieldseekerSamplecollectionMods.RandomRevieweddate(f),
FieldseekerSamplecollectionMods.RandomLocationname(f),
FieldseekerSamplecollectionMods.RandomZone(f),
FieldseekerSamplecollectionMods.RandomRecordstatus(f),
FieldseekerSamplecollectionMods.RandomZone2(f),
FieldseekerSamplecollectionMods.RandomGlobalid(f),
FieldseekerSamplecollectionMods.RandomCreatedUser(f),
FieldseekerSamplecollectionMods.RandomCreatedDate(f),
FieldseekerSamplecollectionMods.RandomLastEditedUser(f),
FieldseekerSamplecollectionMods.RandomLastEditedDate(f),
FieldseekerSamplecollectionMods.RandomLab(f),
FieldseekerSamplecollectionMods.RandomFieldtech(f),
FieldseekerSamplecollectionMods.RandomFlockid(f),
FieldseekerSamplecollectionMods.RandomSamplecount(f),
FieldseekerSamplecollectionMods.RandomChickenid(f),
FieldseekerSamplecollectionMods.RandomGatewaysync(f),
FieldseekerSamplecollectionMods.RandomCreationdate(f),
FieldseekerSamplecollectionMods.RandomCreator(f),
FieldseekerSamplecollectionMods.RandomEditdate(f),
FieldseekerSamplecollectionMods.RandomEditor(f),
FieldseekerSamplecollectionMods.RandomGeometry(f),
FieldseekerSamplecollectionMods.RandomGeospatial(f),
FieldseekerSamplecollectionMods.RandomVersion(f),
FieldseekerSamplecollectionMods.RandomOrganizationID(f),
}
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) Objectid(val int64) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Objectid = func() int64 { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ObjectidFunc(f func() int64) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Objectid = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetObjectid() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomObjectid(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Objectid = func() int64 {
return random_int64(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) LocID(val null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LocID = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) LocIDFunc(f func() null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LocID = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetLocID() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLocID(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLocIDNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Startdatetime(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Startdatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Startdatetime = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetStartdatetime() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomStartdatetime(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Enddatetime(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Enddatetime = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Enddatetime = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetEnddatetime() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEnddatetime(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Sitecond(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sitecond = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SitecondFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sitecond = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSitecond() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomSitecond(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomSitecondNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Sampleid(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampleid = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SampleidFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampleid = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSampleid() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampleid = 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 fieldseekerSamplecollectionMods) RandomSampleid(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampleid = 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 fieldseekerSamplecollectionMods) RandomSampleidNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampleid = 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 fieldseekerSamplecollectionMods) Survtech(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Survtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SurvtechFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Survtech = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSurvtech() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Survtech = 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 fieldseekerSamplecollectionMods) RandomSurvtech(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Survtech = 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 fieldseekerSamplecollectionMods) RandomSurvtechNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Survtech = 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 fieldseekerSamplecollectionMods) Datesent(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datesent = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) DatesentFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datesent = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetDatesent() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datesent = 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 fieldseekerSamplecollectionMods) RandomDatesent(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datesent = 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 fieldseekerSamplecollectionMods) RandomDatesentNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datesent = 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 fieldseekerSamplecollectionMods) Datetested(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datetested = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) DatetestedFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datetested = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetDatetested() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datetested = 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 fieldseekerSamplecollectionMods) RandomDatetested(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datetested = 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 fieldseekerSamplecollectionMods) RandomDatetestedNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Datetested = 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 fieldseekerSamplecollectionMods) Testtech(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) TesttechFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testtech = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetTesttech() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testtech = 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 fieldseekerSamplecollectionMods) RandomTesttech(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testtech = 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 fieldseekerSamplecollectionMods) RandomTesttechNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testtech = 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 fieldseekerSamplecollectionMods) Comments(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Comments = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) CommentsFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Comments = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetComments() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomComments(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Processed(val null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Processed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ProcessedFunc(f func() null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Processed = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetProcessed() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomProcessed(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomProcessedNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Sampletype(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampletype = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SampletypeFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampletype = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSampletype() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampletype = 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 fieldseekerSamplecollectionMods) RandomSampletype(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampletype = 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 fieldseekerSamplecollectionMods) RandomSampletypeNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sampletype = 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 fieldseekerSamplecollectionMods) Samplecond(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecond = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SamplecondFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecond = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSamplecond() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecond = 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 fieldseekerSamplecollectionMods) RandomSamplecond(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecond = 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 fieldseekerSamplecollectionMods) RandomSamplecondNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecond = 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 fieldseekerSamplecollectionMods) Species(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Species = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SpeciesFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Species = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSpecies() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Species = 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 fieldseekerSamplecollectionMods) RandomSpecies(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Species = 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 fieldseekerSamplecollectionMods) RandomSpeciesNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Species = 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 fieldseekerSamplecollectionMods) Sex(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sex = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SexFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sex = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSex() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sex = 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 fieldseekerSamplecollectionMods) RandomSex(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sex = 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 fieldseekerSamplecollectionMods) RandomSexNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Sex = 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 fieldseekerSamplecollectionMods) Avetemp(val null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Avetemp = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) AvetempFunc(f func() null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Avetemp = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetAvetemp() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomAvetemp(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomAvetempNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Windspeed(val null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Windspeed = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) WindspeedFunc(f func() null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Windspeed = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetWindspeed() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomWindspeed(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomWindspeedNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Winddir(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Winddir = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) WinddirFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Winddir = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetWinddir() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomWinddir(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomWinddirNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Raingauge(val null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Raingauge = func() null.Val[float64] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) RaingaugeFunc(f func() null.Val[float64]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Raingauge = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetRaingauge() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRaingauge(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRaingaugeNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Activity(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Activity = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ActivityFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Activity = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetActivity() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Activity = nil
})
}
// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerSamplecollectionMods) RandomActivity(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Activity = 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 fieldseekerSamplecollectionMods) RandomActivityNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Activity = 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 fieldseekerSamplecollectionMods) Testmethod(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testmethod = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) TestmethodFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testmethod = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetTestmethod() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testmethod = 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 fieldseekerSamplecollectionMods) RandomTestmethod(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testmethod = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
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 fieldseekerSamplecollectionMods) RandomTestmethodNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Testmethod = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) Diseasetested(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasetested = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) DiseasetestedFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasetested = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetDiseasetested() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasetested = 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 fieldseekerSamplecollectionMods) RandomDiseasetested(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasetested = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
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 fieldseekerSamplecollectionMods) RandomDiseasetestedNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasetested = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) Diseasepos(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasepos = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) DiseaseposFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasepos = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetDiseasepos() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasepos = 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 fieldseekerSamplecollectionMods) RandomDiseasepos(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasepos = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
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 fieldseekerSamplecollectionMods) RandomDiseaseposNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Diseasepos = func() null.Val[string] {
if f == nil {
f = &defaultFaker
}
val := random_string(f, "100")
return null.From(val)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) Reviewed(val null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Reviewed = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Reviewed = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetReviewed() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomReviewed(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Reviewedby(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Reviewedby = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Reviewedby = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetReviewedby() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomReviewedby(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Revieweddate(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Revieweddate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Revieweddate = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetRevieweddate() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRevieweddate(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Locationname(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Locationname = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) LocationnameFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Locationname = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetLocationname() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLocationname(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Zone(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Zone = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ZoneFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Zone = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetZone() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomZone(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomZoneNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Recordstatus(val null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Recordstatus = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Recordstatus = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetRecordstatus() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRecordstatus(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Zone2(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Zone2 = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) Zone2Func(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Zone2 = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetZone2() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomZone2(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomZone2NotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Globalid(val uuid.UUID) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Globalid = func() uuid.UUID { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) GlobalidFunc(f func() uuid.UUID) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Globalid = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetGlobalid() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGlobalid(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Globalid = func() uuid.UUID {
return random_uuid_UUID(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) CreatedUser(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.CreatedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.CreatedUser = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetCreatedUser() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreatedUser(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) CreatedDate(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.CreatedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.CreatedDate = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetCreatedDate() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreatedDate(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) LastEditedUser(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LastEditedUser = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LastEditedUser = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetLastEditedUser() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLastEditedUser(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) LastEditedDate(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LastEditedDate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.LastEditedDate = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetLastEditedDate() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLastEditedDate(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Lab(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Lab = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) LabFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Lab = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetLab() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Lab = 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 fieldseekerSamplecollectionMods) RandomLab(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Lab = 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 fieldseekerSamplecollectionMods) RandomLabNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Lab = 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 fieldseekerSamplecollectionMods) Fieldtech(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Fieldtech = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) FieldtechFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Fieldtech = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetFieldtech() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomFieldtech(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Flockid(val null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Flockid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) FlockidFunc(f func() null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Flockid = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetFlockid() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Flockid = 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 fieldseekerSamplecollectionMods) RandomFlockid(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Flockid = 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 fieldseekerSamplecollectionMods) RandomFlockidNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Flockid = 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 fieldseekerSamplecollectionMods) Samplecount(val null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecount = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) SamplecountFunc(f func() null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecount = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetSamplecount() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecount = 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 fieldseekerSamplecollectionMods) RandomSamplecount(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecount = 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 fieldseekerSamplecollectionMods) RandomSamplecountNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Samplecount = 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 fieldseekerSamplecollectionMods) Chickenid(val null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Chickenid = func() null.Val[uuid.UUID] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) ChickenidFunc(f func() null.Val[uuid.UUID]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Chickenid = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetChickenid() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Chickenid = 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 fieldseekerSamplecollectionMods) RandomChickenid(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Chickenid = 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 fieldseekerSamplecollectionMods) RandomChickenidNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Chickenid = 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 fieldseekerSamplecollectionMods) Gatewaysync(val null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Gatewaysync = func() null.Val[int16] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) GatewaysyncFunc(f func() null.Val[int16]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Gatewaysync = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetGatewaysync() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGatewaysync(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGatewaysyncNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Creationdate(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Creationdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Creationdate = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetCreationdate() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreationdate(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Creator(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Creator = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) CreatorFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Creator = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetCreator() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreator(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Editdate(val null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Editdate = func() null.Val[time.Time] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Editdate = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetEditdate() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEditdate(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Editor(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Editor = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) EditorFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Editor = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetEditor() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEditor(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomEditorNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Geometry = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetGeometry() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGeometry(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Geometry = func() types.JSON[json.RawMessage] {
return random_types_JSON_json_RawMessage_(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) Geospatial(val null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Geospatial = func() null.Val[string] { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) GeospatialFunc(f func() null.Val[string]) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Geospatial = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetGeospatial() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGeospatial(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) Version(val int32) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Version = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) VersionFunc(f func() int32) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Version = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetVersion() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomVersion(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.Version = func() int32 {
return random_int32(f)
}
})
}
// Set the model columns to this value
func (m fieldseekerSamplecollectionMods) OrganizationID(val int32) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.OrganizationID = func() int32 { return val }
})
}
// Set the Column from the function
func (m fieldseekerSamplecollectionMods) OrganizationIDFunc(f func() int32) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.OrganizationID = f
})
}
// Clear any values for the column
func (m fieldseekerSamplecollectionMods) UnsetOrganizationID() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
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 fieldseekerSamplecollectionMods) RandomOrganizationID(f *faker.Faker) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
o.OrganizationID = func() int32 {
return random_int32(f)
}
})
}
func (m fieldseekerSamplecollectionMods) WithParentsCascading() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
if isDone, _ := fieldseekerSamplecollectionWithParentsCascadingCtx.Value(ctx); isDone {
return
}
ctx = fieldseekerSamplecollectionWithParentsCascadingCtx.WithValue(ctx, true)
{
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
m.WithOrganization(related).Apply(ctx, o)
}
})
}
func (m fieldseekerSamplecollectionMods) WithOrganization(rel *OrganizationTemplate) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
o.r.Organization = &fieldseekerSamplecollectionROrganizationR{
o: rel,
}
})
}
func (m fieldseekerSamplecollectionMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
related := o.f.NewOrganizationWithContext(ctx, mods...)
m.WithOrganization(related).Apply(ctx, o)
})
}
func (m fieldseekerSamplecollectionMods) WithExistingOrganization(em *models.Organization) FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
o.r.Organization = &fieldseekerSamplecollectionROrganizationR{
o: o.f.FromExistingOrganization(em),
}
})
}
func (m fieldseekerSamplecollectionMods) WithoutOrganization() FieldseekerSamplecollectionMod {
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
o.r.Organization = nil
})
}