// Code generated by BobGen psql v0.42.5. 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"

	"github.com/Gleipnir-Technology/bob"
	"github.com/Gleipnir-Technology/bob/types"
	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"
)

type FieldseekerTimecardMod interface {
	Apply(context.Context, *FieldseekerTimecardTemplate)
}

type FieldseekerTimecardModFunc func(context.Context, *FieldseekerTimecardTemplate)

func (f FieldseekerTimecardModFunc) Apply(ctx context.Context, n *FieldseekerTimecardTemplate) {
	f(ctx, n)
}

type FieldseekerTimecardModSlice []FieldseekerTimecardMod

func (mods FieldseekerTimecardModSlice) Apply(ctx context.Context, n *FieldseekerTimecardTemplate) {
	for _, f := range mods {
		f.Apply(ctx, n)
	}
}

// FieldseekerTimecardTemplate is an object representing the database table.
// all columns are optional and should be set by mods
type FieldseekerTimecardTemplate struct {
	Objectid       func() int64
	Activity       func() null.Val[string]
	Startdatetime  func() null.Val[time.Time]
	Enddatetime    func() null.Val[time.Time]
	Comments       func() null.Val[string]
	Externalid     func() null.Val[string]
	Equiptype      func() null.Val[string]
	Locationname   func() null.Val[string]
	Zone           func() null.Val[string]
	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]
	Linelocid      func() null.Val[uuid.UUID]
	Pointlocid     func() null.Val[uuid.UUID]
	Polygonlocid   func() null.Val[uuid.UUID]
	Lclocid        func() null.Val[uuid.UUID]
	Samplelocid    func() null.Val[uuid.UUID]
	Srid           func() null.Val[uuid.UUID]
	Traplocid      func() null.Val[uuid.UUID]
	Fieldtech      func() null.Val[string]
	Creationdate   func() null.Val[time.Time]
	Creator        func() null.Val[string]
	Editdate       func() null.Val[time.Time]
	Editor         func() null.Val[string]
	Rodentlocid    func() null.Val[uuid.UUID]
	Geometry       func() types.JSON[json.RawMessage]
	Geospatial     func() null.Val[string]
	Version        func() int32
	OrganizationID func() int32

	r fieldseekerTimecardR
	f *Factory

	alreadyPersisted bool
}

type fieldseekerTimecardR struct {
	Organization *fieldseekerTimecardROrganizationR
}

type fieldseekerTimecardROrganizationR struct {
	o *OrganizationTemplate
}

// Apply mods to the FieldseekerTimecardTemplate
func (o *FieldseekerTimecardTemplate) Apply(ctx context.Context, mods ...FieldseekerTimecardMod) {
	for _, mod := range mods {
		mod.Apply(ctx, o)
	}
}

// setModelRels creates and sets the relationships on *models.FieldseekerTimecard
// according to the relationships in the template. Nothing is inserted into the db
func (t FieldseekerTimecardTemplate) setModelRels(o *models.FieldseekerTimecard) {
	if t.r.Organization != nil {
		rel := t.r.Organization.o.Build()
		rel.R.Timecards = append(rel.R.Timecards, o)
		o.OrganizationID = rel.ID // h2
		o.R.Organization = rel
	}
}

// BuildSetter returns an *models.FieldseekerTimecardSetter
// this does nothing with the relationship templates
func (o FieldseekerTimecardTemplate) BuildSetter() *models.FieldseekerTimecardSetter {
	m := &models.FieldseekerTimecardSetter{}

	if o.Objectid != nil {
		val := o.Objectid()
		m.Objectid = omit.From(val)
	}
	if o.Activity != nil {
		val := o.Activity()
		m.Activity = omitnull.FromNull(val)
	}
	if o.Startdatetime != nil {
		val := o.Startdatetime()
		m.Startdatetime = omitnull.FromNull(val)
	}
	if o.Enddatetime != nil {
		val := o.Enddatetime()
		m.Enddatetime = omitnull.FromNull(val)
	}
	if o.Comments != nil {
		val := o.Comments()
		m.Comments = omitnull.FromNull(val)
	}
	if o.Externalid != nil {
		val := o.Externalid()
		m.Externalid = omitnull.FromNull(val)
	}
	if o.Equiptype != nil {
		val := o.Equiptype()
		m.Equiptype = 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.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.Linelocid != nil {
		val := o.Linelocid()
		m.Linelocid = omitnull.FromNull(val)
	}
	if o.Pointlocid != nil {
		val := o.Pointlocid()
		m.Pointlocid = omitnull.FromNull(val)
	}
	if o.Polygonlocid != nil {
		val := o.Polygonlocid()
		m.Polygonlocid = omitnull.FromNull(val)
	}
	if o.Lclocid != nil {
		val := o.Lclocid()
		m.Lclocid = omitnull.FromNull(val)
	}
	if o.Samplelocid != nil {
		val := o.Samplelocid()
		m.Samplelocid = omitnull.FromNull(val)
	}
	if o.Srid != nil {
		val := o.Srid()
		m.Srid = omitnull.FromNull(val)
	}
	if o.Traplocid != nil {
		val := o.Traplocid()
		m.Traplocid = omitnull.FromNull(val)
	}
	if o.Fieldtech != nil {
		val := o.Fieldtech()
		m.Fieldtech = 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.Rodentlocid != nil {
		val := o.Rodentlocid()
		m.Rodentlocid = 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.FieldseekerTimecardSetter
// this does nothing with the relationship templates
func (o FieldseekerTimecardTemplate) BuildManySetter(number int) []*models.FieldseekerTimecardSetter {
	m := make([]*models.FieldseekerTimecardSetter, number)

	for i := range m {
		m[i] = o.BuildSetter()
	}

	return m
}

// Build returns an *models.FieldseekerTimecard
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerTimecardTemplate.Create
func (o FieldseekerTimecardTemplate) Build() *models.FieldseekerTimecard {
	m := &models.FieldseekerTimecard{}

	if o.Objectid != nil {
		m.Objectid = o.Objectid()
	}
	if o.Activity != nil {
		m.Activity = o.Activity()
	}
	if o.Startdatetime != nil {
		m.Startdatetime = o.Startdatetime()
	}
	if o.Enddatetime != nil {
		m.Enddatetime = o.Enddatetime()
	}
	if o.Comments != nil {
		m.Comments = o.Comments()
	}
	if o.Externalid != nil {
		m.Externalid = o.Externalid()
	}
	if o.Equiptype != nil {
		m.Equiptype = o.Equiptype()
	}
	if o.Locationname != nil {
		m.Locationname = o.Locationname()
	}
	if o.Zone != nil {
		m.Zone = o.Zone()
	}
	if o.Zone2 != nil {
		m.Zone2 = o.Zone2()
	}
	if o.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.Linelocid != nil {
		m.Linelocid = o.Linelocid()
	}
	if o.Pointlocid != nil {
		m.Pointlocid = o.Pointlocid()
	}
	if o.Polygonlocid != nil {
		m.Polygonlocid = o.Polygonlocid()
	}
	if o.Lclocid != nil {
		m.Lclocid = o.Lclocid()
	}
	if o.Samplelocid != nil {
		m.Samplelocid = o.Samplelocid()
	}
	if o.Srid != nil {
		m.Srid = o.Srid()
	}
	if o.Traplocid != nil {
		m.Traplocid = o.Traplocid()
	}
	if o.Fieldtech != nil {
		m.Fieldtech = o.Fieldtech()
	}
	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.Rodentlocid != nil {
		m.Rodentlocid = o.Rodentlocid()
	}
	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.FieldseekerTimecardSlice
// Related objects are also created and placed in the .R field
// NOTE: Objects are not inserted into the database. Use FieldseekerTimecardTemplate.CreateMany
func (o FieldseekerTimecardTemplate) BuildMany(number int) models.FieldseekerTimecardSlice {
	m := make(models.FieldseekerTimecardSlice, number)

	for i := range m {
		m[i] = o.Build()
	}

	return m
}

func ensureCreatableFieldseekerTimecard(m *models.FieldseekerTimecardSetter) {
	if !(m.Objectid.IsValue()) {
		val := random_int64(nil)
		m.Objectid = omit.From(val)
	}
	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.FieldseekerTimecard
// according to the relationships in the template.
// any required relationship should have already exist on the model
func (o *FieldseekerTimecardTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerTimecard) error {
	var err error

	return err
}

// Create builds a fieldseekerTimecard and inserts it into the database
// Relations objects are also inserted and placed in the .R field
func (o *FieldseekerTimecardTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerTimecard, error) {
	var err error
	opt := o.BuildSetter()
	ensureCreatableFieldseekerTimecard(opt)

	if o.r.Organization == nil {
		FieldseekerTimecardMods.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.FieldseekerTimecards.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 fieldseekerTimecard and inserts it into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o *FieldseekerTimecardTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerTimecard {
	m, err := o.Create(ctx, exec)
	if err != nil {
		panic(err)
	}
	return m
}

// CreateOrFail builds a fieldseekerTimecard 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 *FieldseekerTimecardTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerTimecard {
	tb.Helper()
	m, err := o.Create(ctx, exec)
	if err != nil {
		tb.Fatal(err)
		return nil
	}
	return m
}

// CreateMany builds multiple fieldseekerTimecards and inserts them into the database
// Relations objects are also inserted and placed in the .R field
func (o FieldseekerTimecardTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerTimecardSlice, error) {
	var err error
	m := make(models.FieldseekerTimecardSlice, number)

	for i := range m {
		m[i], err = o.Create(ctx, exec)
		if err != nil {
			return nil, err
		}
	}

	return m, nil
}

// MustCreateMany builds multiple fieldseekerTimecards and inserts them into the database
// Relations objects are also inserted and placed in the .R field
// panics if an error occurs
func (o FieldseekerTimecardTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerTimecardSlice {
	m, err := o.CreateMany(ctx, exec, number)
	if err != nil {
		panic(err)
	}
	return m
}

// CreateManyOrFail builds multiple fieldseekerTimecards 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 FieldseekerTimecardTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerTimecardSlice {
	tb.Helper()
	m, err := o.CreateMany(ctx, exec, number)
	if err != nil {
		tb.Fatal(err)
		return nil
	}
	return m
}

// FieldseekerTimecard has methods that act as mods for the FieldseekerTimecardTemplate
var FieldseekerTimecardMods fieldseekerTimecardMods

type fieldseekerTimecardMods struct{}

func (m fieldseekerTimecardMods) RandomizeAllColumns(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModSlice{
		FieldseekerTimecardMods.RandomObjectid(f),
		FieldseekerTimecardMods.RandomActivity(f),
		FieldseekerTimecardMods.RandomStartdatetime(f),
		FieldseekerTimecardMods.RandomEnddatetime(f),
		FieldseekerTimecardMods.RandomComments(f),
		FieldseekerTimecardMods.RandomExternalid(f),
		FieldseekerTimecardMods.RandomEquiptype(f),
		FieldseekerTimecardMods.RandomLocationname(f),
		FieldseekerTimecardMods.RandomZone(f),
		FieldseekerTimecardMods.RandomZone2(f),
		FieldseekerTimecardMods.RandomGlobalid(f),
		FieldseekerTimecardMods.RandomCreatedUser(f),
		FieldseekerTimecardMods.RandomCreatedDate(f),
		FieldseekerTimecardMods.RandomLastEditedUser(f),
		FieldseekerTimecardMods.RandomLastEditedDate(f),
		FieldseekerTimecardMods.RandomLinelocid(f),
		FieldseekerTimecardMods.RandomPointlocid(f),
		FieldseekerTimecardMods.RandomPolygonlocid(f),
		FieldseekerTimecardMods.RandomLclocid(f),
		FieldseekerTimecardMods.RandomSamplelocid(f),
		FieldseekerTimecardMods.RandomSrid(f),
		FieldseekerTimecardMods.RandomTraplocid(f),
		FieldseekerTimecardMods.RandomFieldtech(f),
		FieldseekerTimecardMods.RandomCreationdate(f),
		FieldseekerTimecardMods.RandomCreator(f),
		FieldseekerTimecardMods.RandomEditdate(f),
		FieldseekerTimecardMods.RandomEditor(f),
		FieldseekerTimecardMods.RandomRodentlocid(f),
		FieldseekerTimecardMods.RandomGeometry(f),
		FieldseekerTimecardMods.RandomGeospatial(f),
		FieldseekerTimecardMods.RandomVersion(f),
		FieldseekerTimecardMods.RandomOrganizationID(f),
	}
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) Objectid(val int64) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Objectid = func() int64 { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) ObjectidFunc(f func() int64) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Objectid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetObjectid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomObjectid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Objectid = func() int64 {
			return random_int64(f)
		}
	})
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) Activity(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Activity = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) ActivityFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Activity = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetActivity() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomActivity(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomActivityNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Startdatetime(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Startdatetime = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) StartdatetimeFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Startdatetime = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetStartdatetime() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomStartdatetime(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomStartdatetimeNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Enddatetime(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Enddatetime = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) EnddatetimeFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Enddatetime = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetEnddatetime() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEnddatetime(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEnddatetimeNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Comments(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Comments = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) CommentsFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Comments = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetComments() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomComments(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Externalid(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Externalid = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) ExternalidFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Externalid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetExternalid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Externalid = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomExternalid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Externalid = 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 fieldseekerTimecardMods) RandomExternalidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Externalid = 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 fieldseekerTimecardMods) Equiptype(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Equiptype = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) EquiptypeFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Equiptype = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetEquiptype() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Equiptype = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomEquiptype(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Equiptype = 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 fieldseekerTimecardMods) RandomEquiptypeNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Equiptype = 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 fieldseekerTimecardMods) Locationname(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Locationname = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) LocationnameFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Locationname = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetLocationname() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLocationname(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLocationnameNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Zone(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Zone = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) ZoneFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Zone = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetZone() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomZone(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomZoneNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Zone2(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Zone2 = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) Zone2Func(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Zone2 = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetZone2() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomZone2(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomZone2NotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Globalid(val uuid.UUID) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Globalid = func() uuid.UUID { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) GlobalidFunc(f func() uuid.UUID) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Globalid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetGlobalid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomGlobalid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Globalid = func() uuid.UUID {
			return random_uuid_UUID(f)
		}
	})
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) CreatedUser(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.CreatedUser = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.CreatedUser = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetCreatedUser() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreatedUser(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) CreatedDate(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.CreatedDate = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.CreatedDate = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetCreatedDate() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreatedDate(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) LastEditedUser(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.LastEditedUser = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.LastEditedUser = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetLastEditedUser() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLastEditedUser(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) LastEditedDate(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.LastEditedDate = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.LastEditedDate = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetLastEditedDate() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLastEditedDate(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Linelocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Linelocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) LinelocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Linelocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetLinelocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Linelocid = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomLinelocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Linelocid = 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 fieldseekerTimecardMods) RandomLinelocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Linelocid = 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 fieldseekerTimecardMods) Pointlocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Pointlocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) PointlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Pointlocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetPointlocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Pointlocid = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomPointlocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Pointlocid = 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 fieldseekerTimecardMods) RandomPointlocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Pointlocid = 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 fieldseekerTimecardMods) Polygonlocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Polygonlocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) PolygonlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Polygonlocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetPolygonlocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Polygonlocid = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomPolygonlocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Polygonlocid = 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 fieldseekerTimecardMods) RandomPolygonlocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Polygonlocid = 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 fieldseekerTimecardMods) Lclocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Lclocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) LclocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Lclocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetLclocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Lclocid = 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 fieldseekerTimecardMods) RandomLclocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Lclocid = 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 fieldseekerTimecardMods) RandomLclocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Lclocid = 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 fieldseekerTimecardMods) Samplelocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Samplelocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) SamplelocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Samplelocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetSamplelocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Samplelocid = 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 fieldseekerTimecardMods) RandomSamplelocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Samplelocid = 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 fieldseekerTimecardMods) RandomSamplelocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Samplelocid = 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 fieldseekerTimecardMods) Srid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Srid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) SridFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Srid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetSrid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Srid = nil
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is sometimes null
func (m fieldseekerTimecardMods) RandomSrid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Srid = func() null.Val[uuid.UUID] {
			if f == nil {
				f = &defaultFaker
			}

			val := random_uuid_UUID(f)
			return null.From(val)
		}
	})
}

// Generates a random value for the column using the given faker
// if faker is nil, a default faker is used
// The generated value is never null
func (m fieldseekerTimecardMods) RandomSridNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Srid = func() null.Val[uuid.UUID] {
			if f == nil {
				f = &defaultFaker
			}

			val := random_uuid_UUID(f)
			return null.From(val)
		}
	})
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) Traplocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Traplocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) TraplocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Traplocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetTraplocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Traplocid = 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 fieldseekerTimecardMods) RandomTraplocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Traplocid = 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 fieldseekerTimecardMods) RandomTraplocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Traplocid = 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 fieldseekerTimecardMods) Fieldtech(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Fieldtech = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) FieldtechFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Fieldtech = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetFieldtech() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomFieldtech(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Creationdate(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Creationdate = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Creationdate = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetCreationdate() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreationdate(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Creator(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Creator = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) CreatorFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Creator = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetCreator() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreator(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Editdate(val null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Editdate = func() null.Val[time.Time] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Editdate = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetEditdate() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEditdate(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Editor(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Editor = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) EditorFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Editor = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetEditor() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEditor(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomEditorNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Rodentlocid(val null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Rodentlocid = func() null.Val[uuid.UUID] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) RodentlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Rodentlocid = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetRodentlocid() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Rodentlocid = 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 fieldseekerTimecardMods) RandomRodentlocid(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Rodentlocid = 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 fieldseekerTimecardMods) RandomRodentlocidNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Rodentlocid = 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 fieldseekerTimecardMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Geometry = func() types.JSON[json.RawMessage] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Geometry = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetGeometry() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomGeometry(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Geometry = func() types.JSON[json.RawMessage] {
			return random_types_JSON_json_RawMessage_(f)
		}
	})
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) Geospatial(val null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Geospatial = func() null.Val[string] { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) GeospatialFunc(f func() null.Val[string]) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Geospatial = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetGeospatial() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomGeospatial(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) Version(val int32) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Version = func() int32 { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) VersionFunc(f func() int32) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Version = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetVersion() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomVersion(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.Version = func() int32 {
			return random_int32(f)
		}
	})
}

// Set the model columns to this value
func (m fieldseekerTimecardMods) OrganizationID(val int32) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.OrganizationID = func() int32 { return val }
	})
}

// Set the Column from the function
func (m fieldseekerTimecardMods) OrganizationIDFunc(f func() int32) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.OrganizationID = f
	})
}

// Clear any values for the column
func (m fieldseekerTimecardMods) UnsetOrganizationID() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		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 fieldseekerTimecardMods) RandomOrganizationID(f *faker.Faker) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
		o.OrganizationID = func() int32 {
			return random_int32(f)
		}
	})
}

func (m fieldseekerTimecardMods) WithParentsCascading() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
		if isDone, _ := fieldseekerTimecardWithParentsCascadingCtx.Value(ctx); isDone {
			return
		}
		ctx = fieldseekerTimecardWithParentsCascadingCtx.WithValue(ctx, true)
		{

			related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
			m.WithOrganization(related).Apply(ctx, o)
		}
	})
}

func (m fieldseekerTimecardMods) WithOrganization(rel *OrganizationTemplate) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
		o.r.Organization = &fieldseekerTimecardROrganizationR{
			o: rel,
		}
	})
}

func (m fieldseekerTimecardMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
		related := o.f.NewOrganizationWithContext(ctx, mods...)

		m.WithOrganization(related).Apply(ctx, o)
	})
}

func (m fieldseekerTimecardMods) WithExistingOrganization(em *models.Organization) FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
		o.r.Organization = &fieldseekerTimecardROrganizationR{
			o: o.f.FromExistingOrganization(em),
		}
	})
}

func (m fieldseekerTimecardMods) WithoutOrganization() FieldseekerTimecardMod {
	return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
		o.r.Organization = nil
	})
}
