This is extremely useful for testing. In order to do this I needed to actually deploy the migration to a bob fork so I could start to add support for behaviors I really want. Specifically the ability to search for ids in a slice.
5831 lines
195 KiB
Go
5831 lines
195 KiB
Go
// 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 FieldseekerServicerequestMod interface {
|
|
Apply(context.Context, *FieldseekerServicerequestTemplate)
|
|
}
|
|
|
|
type FieldseekerServicerequestModFunc func(context.Context, *FieldseekerServicerequestTemplate)
|
|
|
|
func (f FieldseekerServicerequestModFunc) Apply(ctx context.Context, n *FieldseekerServicerequestTemplate) {
|
|
f(ctx, n)
|
|
}
|
|
|
|
type FieldseekerServicerequestModSlice []FieldseekerServicerequestMod
|
|
|
|
func (mods FieldseekerServicerequestModSlice) Apply(ctx context.Context, n *FieldseekerServicerequestTemplate) {
|
|
for _, f := range mods {
|
|
f.Apply(ctx, n)
|
|
}
|
|
}
|
|
|
|
// FieldseekerServicerequestTemplate is an object representing the database table.
|
|
// all columns are optional and should be set by mods
|
|
type FieldseekerServicerequestTemplate struct {
|
|
Objectid func() int64
|
|
Recdatetime func() null.Val[time.Time]
|
|
Source func() null.Val[string]
|
|
Entrytech func() null.Val[string]
|
|
Priority func() null.Val[string]
|
|
Supervisor func() null.Val[string]
|
|
Assignedtech func() null.Val[string]
|
|
Status func() null.Val[string]
|
|
Clranon func() null.Val[int16]
|
|
Clrfname func() null.Val[string]
|
|
Clrphone1 func() null.Val[string]
|
|
Clrphone2 func() null.Val[string]
|
|
Clremail func() null.Val[string]
|
|
Clrcompany func() null.Val[string]
|
|
Clraddr1 func() null.Val[string]
|
|
Clraddr2 func() null.Val[string]
|
|
Clrcity func() null.Val[string]
|
|
Clrstate func() null.Val[string]
|
|
Clrzip func() null.Val[string]
|
|
Clrother func() null.Val[string]
|
|
Clrcontpref func() null.Val[string]
|
|
Reqcompany func() null.Val[string]
|
|
Reqaddr1 func() null.Val[string]
|
|
Reqaddr2 func() null.Val[string]
|
|
Reqcity func() null.Val[string]
|
|
Reqstate func() null.Val[string]
|
|
Reqzip func() null.Val[string]
|
|
Reqcrossst func() null.Val[string]
|
|
Reqsubdiv func() null.Val[string]
|
|
Reqmapgrid func() null.Val[string]
|
|
Reqpermission func() null.Val[int16]
|
|
Reqtarget func() null.Val[string]
|
|
Reqdescr func() null.Val[string]
|
|
Reqnotesfortech func() null.Val[string]
|
|
Reqnotesforcust func() null.Val[string]
|
|
Reqfldnotes func() null.Val[string]
|
|
Reqprogramactions func() null.Val[string]
|
|
Datetimeclosed func() null.Val[time.Time]
|
|
Techclosed func() null.Val[string]
|
|
SRNumber func() null.Val[int32]
|
|
Reviewed func() null.Val[int16]
|
|
Reviewedby func() null.Val[string]
|
|
Revieweddate func() null.Val[time.Time]
|
|
Accepted func() null.Val[int16]
|
|
Accepteddate func() null.Val[time.Time]
|
|
Rejectedby func() null.Val[string]
|
|
Rejecteddate func() null.Val[time.Time]
|
|
Rejectedreason func() null.Val[string]
|
|
Duedate func() null.Val[time.Time]
|
|
Acceptedby func() null.Val[string]
|
|
Comments func() null.Val[string]
|
|
Estcompletedate func() null.Val[time.Time]
|
|
Nextaction func() null.Val[string]
|
|
Recordstatus func() null.Val[int16]
|
|
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]
|
|
Firstresponsedate func() null.Val[time.Time]
|
|
Responsedaycount func() null.Val[int16]
|
|
Allowed func() null.Val[string]
|
|
Xvalue func() null.Val[string]
|
|
Yvalue func() null.Val[string]
|
|
Validx func() null.Val[string]
|
|
Validy func() null.Val[string]
|
|
Externalid func() null.Val[string]
|
|
Externalerror func() null.Val[string]
|
|
Pointlocid func() null.Val[uuid.UUID]
|
|
Notified func() null.Val[int16]
|
|
Notifieddate func() null.Val[time.Time]
|
|
Scheduled func() null.Val[int16]
|
|
Scheduleddate func() null.Val[time.Time]
|
|
Dog func() null.Val[int32]
|
|
SchedulePeriod func() null.Val[string]
|
|
ScheduleNotes func() null.Val[string]
|
|
Spanish func() null.Val[int32]
|
|
Creationdate func() null.Val[time.Time]
|
|
Creator func() null.Val[string]
|
|
Editdate func() null.Val[time.Time]
|
|
Editor func() null.Val[string]
|
|
Issuesreported func() null.Val[string]
|
|
Jurisdiction func() null.Val[string]
|
|
Notificationtimestamp func() null.Val[string]
|
|
Zone func() null.Val[string]
|
|
Zone2 func() null.Val[string]
|
|
Geometry func() types.JSON[json.RawMessage]
|
|
Geospatial func() null.Val[string]
|
|
Version func() int32
|
|
OrganizationID func() int32
|
|
H3cell func() null.Val[string]
|
|
|
|
r fieldseekerServicerequestR
|
|
f *Factory
|
|
|
|
alreadyPersisted bool
|
|
}
|
|
|
|
type fieldseekerServicerequestR struct {
|
|
Organization *fieldseekerServicerequestROrganizationR
|
|
}
|
|
|
|
type fieldseekerServicerequestROrganizationR struct {
|
|
o *OrganizationTemplate
|
|
}
|
|
|
|
// Apply mods to the FieldseekerServicerequestTemplate
|
|
func (o *FieldseekerServicerequestTemplate) Apply(ctx context.Context, mods ...FieldseekerServicerequestMod) {
|
|
for _, mod := range mods {
|
|
mod.Apply(ctx, o)
|
|
}
|
|
}
|
|
|
|
// setModelRels creates and sets the relationships on *models.FieldseekerServicerequest
|
|
// according to the relationships in the template. Nothing is inserted into the db
|
|
func (t FieldseekerServicerequestTemplate) setModelRels(o *models.FieldseekerServicerequest) {
|
|
if t.r.Organization != nil {
|
|
rel := t.r.Organization.o.Build()
|
|
rel.R.Servicerequests = append(rel.R.Servicerequests, o)
|
|
o.OrganizationID = rel.ID // h2
|
|
o.R.Organization = rel
|
|
}
|
|
}
|
|
|
|
// BuildSetter returns an *models.FieldseekerServicerequestSetter
|
|
// this does nothing with the relationship templates
|
|
func (o FieldseekerServicerequestTemplate) BuildSetter() *models.FieldseekerServicerequestSetter {
|
|
m := &models.FieldseekerServicerequestSetter{}
|
|
|
|
if o.Objectid != nil {
|
|
val := o.Objectid()
|
|
m.Objectid = omit.From(val)
|
|
}
|
|
if o.Recdatetime != nil {
|
|
val := o.Recdatetime()
|
|
m.Recdatetime = omitnull.FromNull(val)
|
|
}
|
|
if o.Source != nil {
|
|
val := o.Source()
|
|
m.Source = omitnull.FromNull(val)
|
|
}
|
|
if o.Entrytech != nil {
|
|
val := o.Entrytech()
|
|
m.Entrytech = omitnull.FromNull(val)
|
|
}
|
|
if o.Priority != nil {
|
|
val := o.Priority()
|
|
m.Priority = omitnull.FromNull(val)
|
|
}
|
|
if o.Supervisor != nil {
|
|
val := o.Supervisor()
|
|
m.Supervisor = omitnull.FromNull(val)
|
|
}
|
|
if o.Assignedtech != nil {
|
|
val := o.Assignedtech()
|
|
m.Assignedtech = omitnull.FromNull(val)
|
|
}
|
|
if o.Status != nil {
|
|
val := o.Status()
|
|
m.Status = omitnull.FromNull(val)
|
|
}
|
|
if o.Clranon != nil {
|
|
val := o.Clranon()
|
|
m.Clranon = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrfname != nil {
|
|
val := o.Clrfname()
|
|
m.Clrfname = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrphone1 != nil {
|
|
val := o.Clrphone1()
|
|
m.Clrphone1 = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrphone2 != nil {
|
|
val := o.Clrphone2()
|
|
m.Clrphone2 = omitnull.FromNull(val)
|
|
}
|
|
if o.Clremail != nil {
|
|
val := o.Clremail()
|
|
m.Clremail = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrcompany != nil {
|
|
val := o.Clrcompany()
|
|
m.Clrcompany = omitnull.FromNull(val)
|
|
}
|
|
if o.Clraddr1 != nil {
|
|
val := o.Clraddr1()
|
|
m.Clraddr1 = omitnull.FromNull(val)
|
|
}
|
|
if o.Clraddr2 != nil {
|
|
val := o.Clraddr2()
|
|
m.Clraddr2 = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrcity != nil {
|
|
val := o.Clrcity()
|
|
m.Clrcity = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrstate != nil {
|
|
val := o.Clrstate()
|
|
m.Clrstate = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrzip != nil {
|
|
val := o.Clrzip()
|
|
m.Clrzip = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrother != nil {
|
|
val := o.Clrother()
|
|
m.Clrother = omitnull.FromNull(val)
|
|
}
|
|
if o.Clrcontpref != nil {
|
|
val := o.Clrcontpref()
|
|
m.Clrcontpref = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqcompany != nil {
|
|
val := o.Reqcompany()
|
|
m.Reqcompany = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqaddr1 != nil {
|
|
val := o.Reqaddr1()
|
|
m.Reqaddr1 = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqaddr2 != nil {
|
|
val := o.Reqaddr2()
|
|
m.Reqaddr2 = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqcity != nil {
|
|
val := o.Reqcity()
|
|
m.Reqcity = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqstate != nil {
|
|
val := o.Reqstate()
|
|
m.Reqstate = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqzip != nil {
|
|
val := o.Reqzip()
|
|
m.Reqzip = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqcrossst != nil {
|
|
val := o.Reqcrossst()
|
|
m.Reqcrossst = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqsubdiv != nil {
|
|
val := o.Reqsubdiv()
|
|
m.Reqsubdiv = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqmapgrid != nil {
|
|
val := o.Reqmapgrid()
|
|
m.Reqmapgrid = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqpermission != nil {
|
|
val := o.Reqpermission()
|
|
m.Reqpermission = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqtarget != nil {
|
|
val := o.Reqtarget()
|
|
m.Reqtarget = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqdescr != nil {
|
|
val := o.Reqdescr()
|
|
m.Reqdescr = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqnotesfortech != nil {
|
|
val := o.Reqnotesfortech()
|
|
m.Reqnotesfortech = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqnotesforcust != nil {
|
|
val := o.Reqnotesforcust()
|
|
m.Reqnotesforcust = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqfldnotes != nil {
|
|
val := o.Reqfldnotes()
|
|
m.Reqfldnotes = omitnull.FromNull(val)
|
|
}
|
|
if o.Reqprogramactions != nil {
|
|
val := o.Reqprogramactions()
|
|
m.Reqprogramactions = omitnull.FromNull(val)
|
|
}
|
|
if o.Datetimeclosed != nil {
|
|
val := o.Datetimeclosed()
|
|
m.Datetimeclosed = omitnull.FromNull(val)
|
|
}
|
|
if o.Techclosed != nil {
|
|
val := o.Techclosed()
|
|
m.Techclosed = omitnull.FromNull(val)
|
|
}
|
|
if o.SRNumber != nil {
|
|
val := o.SRNumber()
|
|
m.SRNumber = 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.Accepted != nil {
|
|
val := o.Accepted()
|
|
m.Accepted = omitnull.FromNull(val)
|
|
}
|
|
if o.Accepteddate != nil {
|
|
val := o.Accepteddate()
|
|
m.Accepteddate = omitnull.FromNull(val)
|
|
}
|
|
if o.Rejectedby != nil {
|
|
val := o.Rejectedby()
|
|
m.Rejectedby = omitnull.FromNull(val)
|
|
}
|
|
if o.Rejecteddate != nil {
|
|
val := o.Rejecteddate()
|
|
m.Rejecteddate = omitnull.FromNull(val)
|
|
}
|
|
if o.Rejectedreason != nil {
|
|
val := o.Rejectedreason()
|
|
m.Rejectedreason = omitnull.FromNull(val)
|
|
}
|
|
if o.Duedate != nil {
|
|
val := o.Duedate()
|
|
m.Duedate = omitnull.FromNull(val)
|
|
}
|
|
if o.Acceptedby != nil {
|
|
val := o.Acceptedby()
|
|
m.Acceptedby = omitnull.FromNull(val)
|
|
}
|
|
if o.Comments != nil {
|
|
val := o.Comments()
|
|
m.Comments = omitnull.FromNull(val)
|
|
}
|
|
if o.Estcompletedate != nil {
|
|
val := o.Estcompletedate()
|
|
m.Estcompletedate = omitnull.FromNull(val)
|
|
}
|
|
if o.Nextaction != nil {
|
|
val := o.Nextaction()
|
|
m.Nextaction = omitnull.FromNull(val)
|
|
}
|
|
if o.Recordstatus != nil {
|
|
val := o.Recordstatus()
|
|
m.Recordstatus = 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.Firstresponsedate != nil {
|
|
val := o.Firstresponsedate()
|
|
m.Firstresponsedate = omitnull.FromNull(val)
|
|
}
|
|
if o.Responsedaycount != nil {
|
|
val := o.Responsedaycount()
|
|
m.Responsedaycount = omitnull.FromNull(val)
|
|
}
|
|
if o.Allowed != nil {
|
|
val := o.Allowed()
|
|
m.Allowed = omitnull.FromNull(val)
|
|
}
|
|
if o.Xvalue != nil {
|
|
val := o.Xvalue()
|
|
m.Xvalue = omitnull.FromNull(val)
|
|
}
|
|
if o.Yvalue != nil {
|
|
val := o.Yvalue()
|
|
m.Yvalue = omitnull.FromNull(val)
|
|
}
|
|
if o.Validx != nil {
|
|
val := o.Validx()
|
|
m.Validx = omitnull.FromNull(val)
|
|
}
|
|
if o.Validy != nil {
|
|
val := o.Validy()
|
|
m.Validy = omitnull.FromNull(val)
|
|
}
|
|
if o.Externalid != nil {
|
|
val := o.Externalid()
|
|
m.Externalid = omitnull.FromNull(val)
|
|
}
|
|
if o.Externalerror != nil {
|
|
val := o.Externalerror()
|
|
m.Externalerror = omitnull.FromNull(val)
|
|
}
|
|
if o.Pointlocid != nil {
|
|
val := o.Pointlocid()
|
|
m.Pointlocid = omitnull.FromNull(val)
|
|
}
|
|
if o.Notified != nil {
|
|
val := o.Notified()
|
|
m.Notified = omitnull.FromNull(val)
|
|
}
|
|
if o.Notifieddate != nil {
|
|
val := o.Notifieddate()
|
|
m.Notifieddate = omitnull.FromNull(val)
|
|
}
|
|
if o.Scheduled != nil {
|
|
val := o.Scheduled()
|
|
m.Scheduled = omitnull.FromNull(val)
|
|
}
|
|
if o.Scheduleddate != nil {
|
|
val := o.Scheduleddate()
|
|
m.Scheduleddate = omitnull.FromNull(val)
|
|
}
|
|
if o.Dog != nil {
|
|
val := o.Dog()
|
|
m.Dog = omitnull.FromNull(val)
|
|
}
|
|
if o.SchedulePeriod != nil {
|
|
val := o.SchedulePeriod()
|
|
m.SchedulePeriod = omitnull.FromNull(val)
|
|
}
|
|
if o.ScheduleNotes != nil {
|
|
val := o.ScheduleNotes()
|
|
m.ScheduleNotes = omitnull.FromNull(val)
|
|
}
|
|
if o.Spanish != nil {
|
|
val := o.Spanish()
|
|
m.Spanish = 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.Issuesreported != nil {
|
|
val := o.Issuesreported()
|
|
m.Issuesreported = omitnull.FromNull(val)
|
|
}
|
|
if o.Jurisdiction != nil {
|
|
val := o.Jurisdiction()
|
|
m.Jurisdiction = omitnull.FromNull(val)
|
|
}
|
|
if o.Notificationtimestamp != nil {
|
|
val := o.Notificationtimestamp()
|
|
m.Notificationtimestamp = 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.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.FieldseekerServicerequestSetter
|
|
// this does nothing with the relationship templates
|
|
func (o FieldseekerServicerequestTemplate) BuildManySetter(number int) []*models.FieldseekerServicerequestSetter {
|
|
m := make([]*models.FieldseekerServicerequestSetter, number)
|
|
|
|
for i := range m {
|
|
m[i] = o.BuildSetter()
|
|
}
|
|
|
|
return m
|
|
}
|
|
|
|
// Build returns an *models.FieldseekerServicerequest
|
|
// Related objects are also created and placed in the .R field
|
|
// NOTE: Objects are not inserted into the database. Use FieldseekerServicerequestTemplate.Create
|
|
func (o FieldseekerServicerequestTemplate) Build() *models.FieldseekerServicerequest {
|
|
m := &models.FieldseekerServicerequest{}
|
|
|
|
if o.Objectid != nil {
|
|
m.Objectid = o.Objectid()
|
|
}
|
|
if o.Recdatetime != nil {
|
|
m.Recdatetime = o.Recdatetime()
|
|
}
|
|
if o.Source != nil {
|
|
m.Source = o.Source()
|
|
}
|
|
if o.Entrytech != nil {
|
|
m.Entrytech = o.Entrytech()
|
|
}
|
|
if o.Priority != nil {
|
|
m.Priority = o.Priority()
|
|
}
|
|
if o.Supervisor != nil {
|
|
m.Supervisor = o.Supervisor()
|
|
}
|
|
if o.Assignedtech != nil {
|
|
m.Assignedtech = o.Assignedtech()
|
|
}
|
|
if o.Status != nil {
|
|
m.Status = o.Status()
|
|
}
|
|
if o.Clranon != nil {
|
|
m.Clranon = o.Clranon()
|
|
}
|
|
if o.Clrfname != nil {
|
|
m.Clrfname = o.Clrfname()
|
|
}
|
|
if o.Clrphone1 != nil {
|
|
m.Clrphone1 = o.Clrphone1()
|
|
}
|
|
if o.Clrphone2 != nil {
|
|
m.Clrphone2 = o.Clrphone2()
|
|
}
|
|
if o.Clremail != nil {
|
|
m.Clremail = o.Clremail()
|
|
}
|
|
if o.Clrcompany != nil {
|
|
m.Clrcompany = o.Clrcompany()
|
|
}
|
|
if o.Clraddr1 != nil {
|
|
m.Clraddr1 = o.Clraddr1()
|
|
}
|
|
if o.Clraddr2 != nil {
|
|
m.Clraddr2 = o.Clraddr2()
|
|
}
|
|
if o.Clrcity != nil {
|
|
m.Clrcity = o.Clrcity()
|
|
}
|
|
if o.Clrstate != nil {
|
|
m.Clrstate = o.Clrstate()
|
|
}
|
|
if o.Clrzip != nil {
|
|
m.Clrzip = o.Clrzip()
|
|
}
|
|
if o.Clrother != nil {
|
|
m.Clrother = o.Clrother()
|
|
}
|
|
if o.Clrcontpref != nil {
|
|
m.Clrcontpref = o.Clrcontpref()
|
|
}
|
|
if o.Reqcompany != nil {
|
|
m.Reqcompany = o.Reqcompany()
|
|
}
|
|
if o.Reqaddr1 != nil {
|
|
m.Reqaddr1 = o.Reqaddr1()
|
|
}
|
|
if o.Reqaddr2 != nil {
|
|
m.Reqaddr2 = o.Reqaddr2()
|
|
}
|
|
if o.Reqcity != nil {
|
|
m.Reqcity = o.Reqcity()
|
|
}
|
|
if o.Reqstate != nil {
|
|
m.Reqstate = o.Reqstate()
|
|
}
|
|
if o.Reqzip != nil {
|
|
m.Reqzip = o.Reqzip()
|
|
}
|
|
if o.Reqcrossst != nil {
|
|
m.Reqcrossst = o.Reqcrossst()
|
|
}
|
|
if o.Reqsubdiv != nil {
|
|
m.Reqsubdiv = o.Reqsubdiv()
|
|
}
|
|
if o.Reqmapgrid != nil {
|
|
m.Reqmapgrid = o.Reqmapgrid()
|
|
}
|
|
if o.Reqpermission != nil {
|
|
m.Reqpermission = o.Reqpermission()
|
|
}
|
|
if o.Reqtarget != nil {
|
|
m.Reqtarget = o.Reqtarget()
|
|
}
|
|
if o.Reqdescr != nil {
|
|
m.Reqdescr = o.Reqdescr()
|
|
}
|
|
if o.Reqnotesfortech != nil {
|
|
m.Reqnotesfortech = o.Reqnotesfortech()
|
|
}
|
|
if o.Reqnotesforcust != nil {
|
|
m.Reqnotesforcust = o.Reqnotesforcust()
|
|
}
|
|
if o.Reqfldnotes != nil {
|
|
m.Reqfldnotes = o.Reqfldnotes()
|
|
}
|
|
if o.Reqprogramactions != nil {
|
|
m.Reqprogramactions = o.Reqprogramactions()
|
|
}
|
|
if o.Datetimeclosed != nil {
|
|
m.Datetimeclosed = o.Datetimeclosed()
|
|
}
|
|
if o.Techclosed != nil {
|
|
m.Techclosed = o.Techclosed()
|
|
}
|
|
if o.SRNumber != nil {
|
|
m.SRNumber = o.SRNumber()
|
|
}
|
|
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.Accepted != nil {
|
|
m.Accepted = o.Accepted()
|
|
}
|
|
if o.Accepteddate != nil {
|
|
m.Accepteddate = o.Accepteddate()
|
|
}
|
|
if o.Rejectedby != nil {
|
|
m.Rejectedby = o.Rejectedby()
|
|
}
|
|
if o.Rejecteddate != nil {
|
|
m.Rejecteddate = o.Rejecteddate()
|
|
}
|
|
if o.Rejectedreason != nil {
|
|
m.Rejectedreason = o.Rejectedreason()
|
|
}
|
|
if o.Duedate != nil {
|
|
m.Duedate = o.Duedate()
|
|
}
|
|
if o.Acceptedby != nil {
|
|
m.Acceptedby = o.Acceptedby()
|
|
}
|
|
if o.Comments != nil {
|
|
m.Comments = o.Comments()
|
|
}
|
|
if o.Estcompletedate != nil {
|
|
m.Estcompletedate = o.Estcompletedate()
|
|
}
|
|
if o.Nextaction != nil {
|
|
m.Nextaction = o.Nextaction()
|
|
}
|
|
if o.Recordstatus != nil {
|
|
m.Recordstatus = o.Recordstatus()
|
|
}
|
|
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.Firstresponsedate != nil {
|
|
m.Firstresponsedate = o.Firstresponsedate()
|
|
}
|
|
if o.Responsedaycount != nil {
|
|
m.Responsedaycount = o.Responsedaycount()
|
|
}
|
|
if o.Allowed != nil {
|
|
m.Allowed = o.Allowed()
|
|
}
|
|
if o.Xvalue != nil {
|
|
m.Xvalue = o.Xvalue()
|
|
}
|
|
if o.Yvalue != nil {
|
|
m.Yvalue = o.Yvalue()
|
|
}
|
|
if o.Validx != nil {
|
|
m.Validx = o.Validx()
|
|
}
|
|
if o.Validy != nil {
|
|
m.Validy = o.Validy()
|
|
}
|
|
if o.Externalid != nil {
|
|
m.Externalid = o.Externalid()
|
|
}
|
|
if o.Externalerror != nil {
|
|
m.Externalerror = o.Externalerror()
|
|
}
|
|
if o.Pointlocid != nil {
|
|
m.Pointlocid = o.Pointlocid()
|
|
}
|
|
if o.Notified != nil {
|
|
m.Notified = o.Notified()
|
|
}
|
|
if o.Notifieddate != nil {
|
|
m.Notifieddate = o.Notifieddate()
|
|
}
|
|
if o.Scheduled != nil {
|
|
m.Scheduled = o.Scheduled()
|
|
}
|
|
if o.Scheduleddate != nil {
|
|
m.Scheduleddate = o.Scheduleddate()
|
|
}
|
|
if o.Dog != nil {
|
|
m.Dog = o.Dog()
|
|
}
|
|
if o.SchedulePeriod != nil {
|
|
m.SchedulePeriod = o.SchedulePeriod()
|
|
}
|
|
if o.ScheduleNotes != nil {
|
|
m.ScheduleNotes = o.ScheduleNotes()
|
|
}
|
|
if o.Spanish != nil {
|
|
m.Spanish = o.Spanish()
|
|
}
|
|
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.Issuesreported != nil {
|
|
m.Issuesreported = o.Issuesreported()
|
|
}
|
|
if o.Jurisdiction != nil {
|
|
m.Jurisdiction = o.Jurisdiction()
|
|
}
|
|
if o.Notificationtimestamp != nil {
|
|
m.Notificationtimestamp = o.Notificationtimestamp()
|
|
}
|
|
if o.Zone != nil {
|
|
m.Zone = o.Zone()
|
|
}
|
|
if o.Zone2 != nil {
|
|
m.Zone2 = o.Zone2()
|
|
}
|
|
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()
|
|
}
|
|
if o.H3cell != nil {
|
|
m.H3cell = o.H3cell()
|
|
}
|
|
|
|
o.setModelRels(m)
|
|
|
|
return m
|
|
}
|
|
|
|
// BuildMany returns an models.FieldseekerServicerequestSlice
|
|
// Related objects are also created and placed in the .R field
|
|
// NOTE: Objects are not inserted into the database. Use FieldseekerServicerequestTemplate.CreateMany
|
|
func (o FieldseekerServicerequestTemplate) BuildMany(number int) models.FieldseekerServicerequestSlice {
|
|
m := make(models.FieldseekerServicerequestSlice, number)
|
|
|
|
for i := range m {
|
|
m[i] = o.Build()
|
|
}
|
|
|
|
return m
|
|
}
|
|
|
|
func ensureCreatableFieldseekerServicerequest(m *models.FieldseekerServicerequestSetter) {
|
|
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.FieldseekerServicerequest
|
|
// according to the relationships in the template.
|
|
// any required relationship should have already exist on the model
|
|
func (o *FieldseekerServicerequestTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerServicerequest) error {
|
|
var err error
|
|
|
|
return err
|
|
}
|
|
|
|
// Create builds a fieldseekerServicerequest and inserts it into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
func (o *FieldseekerServicerequestTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerServicerequest, error) {
|
|
var err error
|
|
opt := o.BuildSetter()
|
|
ensureCreatableFieldseekerServicerequest(opt)
|
|
|
|
if o.r.Organization == nil {
|
|
FieldseekerServicerequestMods.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.FieldseekerServicerequests.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 fieldseekerServicerequest and inserts it into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
// panics if an error occurs
|
|
func (o *FieldseekerServicerequestTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerServicerequest {
|
|
m, err := o.Create(ctx, exec)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateOrFail builds a fieldseekerServicerequest 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 *FieldseekerServicerequestTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerServicerequest {
|
|
tb.Helper()
|
|
m, err := o.Create(ctx, exec)
|
|
if err != nil {
|
|
tb.Fatal(err)
|
|
return nil
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateMany builds multiple fieldseekerServicerequests and inserts them into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
func (o FieldseekerServicerequestTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerServicerequestSlice, error) {
|
|
var err error
|
|
m := make(models.FieldseekerServicerequestSlice, number)
|
|
|
|
for i := range m {
|
|
m[i], err = o.Create(ctx, exec)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
}
|
|
|
|
return m, nil
|
|
}
|
|
|
|
// MustCreateMany builds multiple fieldseekerServicerequests and inserts them into the database
|
|
// Relations objects are also inserted and placed in the .R field
|
|
// panics if an error occurs
|
|
func (o FieldseekerServicerequestTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerServicerequestSlice {
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
return m
|
|
}
|
|
|
|
// CreateManyOrFail builds multiple fieldseekerServicerequests 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 FieldseekerServicerequestTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerServicerequestSlice {
|
|
tb.Helper()
|
|
m, err := o.CreateMany(ctx, exec, number)
|
|
if err != nil {
|
|
tb.Fatal(err)
|
|
return nil
|
|
}
|
|
return m
|
|
}
|
|
|
|
// FieldseekerServicerequest has methods that act as mods for the FieldseekerServicerequestTemplate
|
|
var FieldseekerServicerequestMods fieldseekerServicerequestMods
|
|
|
|
type fieldseekerServicerequestMods struct{}
|
|
|
|
func (m fieldseekerServicerequestMods) RandomizeAllColumns(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModSlice{
|
|
FieldseekerServicerequestMods.RandomObjectid(f),
|
|
FieldseekerServicerequestMods.RandomRecdatetime(f),
|
|
FieldseekerServicerequestMods.RandomSource(f),
|
|
FieldseekerServicerequestMods.RandomEntrytech(f),
|
|
FieldseekerServicerequestMods.RandomPriority(f),
|
|
FieldseekerServicerequestMods.RandomSupervisor(f),
|
|
FieldseekerServicerequestMods.RandomAssignedtech(f),
|
|
FieldseekerServicerequestMods.RandomStatus(f),
|
|
FieldseekerServicerequestMods.RandomClranon(f),
|
|
FieldseekerServicerequestMods.RandomClrfname(f),
|
|
FieldseekerServicerequestMods.RandomClrphone1(f),
|
|
FieldseekerServicerequestMods.RandomClrphone2(f),
|
|
FieldseekerServicerequestMods.RandomClremail(f),
|
|
FieldseekerServicerequestMods.RandomClrcompany(f),
|
|
FieldseekerServicerequestMods.RandomClraddr1(f),
|
|
FieldseekerServicerequestMods.RandomClraddr2(f),
|
|
FieldseekerServicerequestMods.RandomClrcity(f),
|
|
FieldseekerServicerequestMods.RandomClrstate(f),
|
|
FieldseekerServicerequestMods.RandomClrzip(f),
|
|
FieldseekerServicerequestMods.RandomClrother(f),
|
|
FieldseekerServicerequestMods.RandomClrcontpref(f),
|
|
FieldseekerServicerequestMods.RandomReqcompany(f),
|
|
FieldseekerServicerequestMods.RandomReqaddr1(f),
|
|
FieldseekerServicerequestMods.RandomReqaddr2(f),
|
|
FieldseekerServicerequestMods.RandomReqcity(f),
|
|
FieldseekerServicerequestMods.RandomReqstate(f),
|
|
FieldseekerServicerequestMods.RandomReqzip(f),
|
|
FieldseekerServicerequestMods.RandomReqcrossst(f),
|
|
FieldseekerServicerequestMods.RandomReqsubdiv(f),
|
|
FieldseekerServicerequestMods.RandomReqmapgrid(f),
|
|
FieldseekerServicerequestMods.RandomReqpermission(f),
|
|
FieldseekerServicerequestMods.RandomReqtarget(f),
|
|
FieldseekerServicerequestMods.RandomReqdescr(f),
|
|
FieldseekerServicerequestMods.RandomReqnotesfortech(f),
|
|
FieldseekerServicerequestMods.RandomReqnotesforcust(f),
|
|
FieldseekerServicerequestMods.RandomReqfldnotes(f),
|
|
FieldseekerServicerequestMods.RandomReqprogramactions(f),
|
|
FieldseekerServicerequestMods.RandomDatetimeclosed(f),
|
|
FieldseekerServicerequestMods.RandomTechclosed(f),
|
|
FieldseekerServicerequestMods.RandomSRNumber(f),
|
|
FieldseekerServicerequestMods.RandomReviewed(f),
|
|
FieldseekerServicerequestMods.RandomReviewedby(f),
|
|
FieldseekerServicerequestMods.RandomRevieweddate(f),
|
|
FieldseekerServicerequestMods.RandomAccepted(f),
|
|
FieldseekerServicerequestMods.RandomAccepteddate(f),
|
|
FieldseekerServicerequestMods.RandomRejectedby(f),
|
|
FieldseekerServicerequestMods.RandomRejecteddate(f),
|
|
FieldseekerServicerequestMods.RandomRejectedreason(f),
|
|
FieldseekerServicerequestMods.RandomDuedate(f),
|
|
FieldseekerServicerequestMods.RandomAcceptedby(f),
|
|
FieldseekerServicerequestMods.RandomComments(f),
|
|
FieldseekerServicerequestMods.RandomEstcompletedate(f),
|
|
FieldseekerServicerequestMods.RandomNextaction(f),
|
|
FieldseekerServicerequestMods.RandomRecordstatus(f),
|
|
FieldseekerServicerequestMods.RandomGlobalid(f),
|
|
FieldseekerServicerequestMods.RandomCreatedUser(f),
|
|
FieldseekerServicerequestMods.RandomCreatedDate(f),
|
|
FieldseekerServicerequestMods.RandomLastEditedUser(f),
|
|
FieldseekerServicerequestMods.RandomLastEditedDate(f),
|
|
FieldseekerServicerequestMods.RandomFirstresponsedate(f),
|
|
FieldseekerServicerequestMods.RandomResponsedaycount(f),
|
|
FieldseekerServicerequestMods.RandomAllowed(f),
|
|
FieldseekerServicerequestMods.RandomXvalue(f),
|
|
FieldseekerServicerequestMods.RandomYvalue(f),
|
|
FieldseekerServicerequestMods.RandomValidx(f),
|
|
FieldseekerServicerequestMods.RandomValidy(f),
|
|
FieldseekerServicerequestMods.RandomExternalid(f),
|
|
FieldseekerServicerequestMods.RandomExternalerror(f),
|
|
FieldseekerServicerequestMods.RandomPointlocid(f),
|
|
FieldseekerServicerequestMods.RandomNotified(f),
|
|
FieldseekerServicerequestMods.RandomNotifieddate(f),
|
|
FieldseekerServicerequestMods.RandomScheduled(f),
|
|
FieldseekerServicerequestMods.RandomScheduleddate(f),
|
|
FieldseekerServicerequestMods.RandomDog(f),
|
|
FieldseekerServicerequestMods.RandomSchedulePeriod(f),
|
|
FieldseekerServicerequestMods.RandomScheduleNotes(f),
|
|
FieldseekerServicerequestMods.RandomSpanish(f),
|
|
FieldseekerServicerequestMods.RandomCreationdate(f),
|
|
FieldseekerServicerequestMods.RandomCreator(f),
|
|
FieldseekerServicerequestMods.RandomEditdate(f),
|
|
FieldseekerServicerequestMods.RandomEditor(f),
|
|
FieldseekerServicerequestMods.RandomIssuesreported(f),
|
|
FieldseekerServicerequestMods.RandomJurisdiction(f),
|
|
FieldseekerServicerequestMods.RandomNotificationtimestamp(f),
|
|
FieldseekerServicerequestMods.RandomZone(f),
|
|
FieldseekerServicerequestMods.RandomZone2(f),
|
|
FieldseekerServicerequestMods.RandomGeometry(f),
|
|
FieldseekerServicerequestMods.RandomGeospatial(f),
|
|
FieldseekerServicerequestMods.RandomVersion(f),
|
|
FieldseekerServicerequestMods.RandomOrganizationID(f),
|
|
FieldseekerServicerequestMods.RandomH3cell(f),
|
|
}
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Objectid(val int64) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Objectid = func() int64 { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ObjectidFunc(f func() int64) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Objectid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetObjectid() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomObjectid(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Objectid = func() int64 {
|
|
return random_int64(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Recdatetime(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recdatetime = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RecdatetimeFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recdatetime = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRecdatetime() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recdatetime = 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 fieldseekerServicerequestMods) RandomRecdatetime(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recdatetime = 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 fieldseekerServicerequestMods) RandomRecdatetimeNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recdatetime = 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 fieldseekerServicerequestMods) Source(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Source = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) SourceFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Source = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetSource() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Source = 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 fieldseekerServicerequestMods) RandomSource(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Source = 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 fieldseekerServicerequestMods) RandomSourceNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Source = 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 fieldseekerServicerequestMods) Entrytech(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Entrytech = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) EntrytechFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Entrytech = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetEntrytech() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Entrytech = 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 fieldseekerServicerequestMods) RandomEntrytech(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Entrytech = 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 fieldseekerServicerequestMods) RandomEntrytechNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Entrytech = 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 fieldseekerServicerequestMods) Priority(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Priority = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) PriorityFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Priority = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetPriority() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Priority = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerServicerequestMods) RandomPriority(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Priority = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomPriorityNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Priority = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Supervisor(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Supervisor = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) SupervisorFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Supervisor = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetSupervisor() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Supervisor = 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 fieldseekerServicerequestMods) RandomSupervisor(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Supervisor = 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 fieldseekerServicerequestMods) RandomSupervisorNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Supervisor = 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 fieldseekerServicerequestMods) Assignedtech(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Assignedtech = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) AssignedtechFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Assignedtech = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetAssignedtech() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Assignedtech = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerServicerequestMods) RandomAssignedtech(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Assignedtech = 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 fieldseekerServicerequestMods) RandomAssignedtechNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Assignedtech = 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 fieldseekerServicerequestMods) Status(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Status = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) StatusFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Status = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetStatus() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Status = 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 fieldseekerServicerequestMods) RandomStatus(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Status = 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 fieldseekerServicerequestMods) RandomStatusNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Status = 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 fieldseekerServicerequestMods) Clranon(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clranon = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClranonFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clranon = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClranon() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clranon = 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 fieldseekerServicerequestMods) RandomClranon(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clranon = 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 fieldseekerServicerequestMods) RandomClranonNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clranon = 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 fieldseekerServicerequestMods) Clrfname(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrfname = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrfnameFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrfname = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrfname() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrfname = 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 fieldseekerServicerequestMods) RandomClrfname(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrfname = 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 fieldseekerServicerequestMods) RandomClrfnameNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrfname = 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 fieldseekerServicerequestMods) Clrphone1(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone1 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Clrphone1Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone1 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrphone1() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone1 = 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 fieldseekerServicerequestMods) RandomClrphone1(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone1 = 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 fieldseekerServicerequestMods) RandomClrphone1NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone1 = 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 fieldseekerServicerequestMods) Clrphone2(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone2 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Clrphone2Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone2 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrphone2() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone2 = 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 fieldseekerServicerequestMods) RandomClrphone2(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone2 = 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 fieldseekerServicerequestMods) RandomClrphone2NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrphone2 = 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 fieldseekerServicerequestMods) Clremail(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clremail = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClremailFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clremail = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClremail() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clremail = 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 fieldseekerServicerequestMods) RandomClremail(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clremail = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomClremailNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clremail = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Clrcompany(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcompany = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrcompanyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcompany = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrcompany() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcompany = 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 fieldseekerServicerequestMods) RandomClrcompany(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcompany = 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 fieldseekerServicerequestMods) RandomClrcompanyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcompany = 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 fieldseekerServicerequestMods) Clraddr1(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr1 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Clraddr1Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr1 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClraddr1() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr1 = 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 fieldseekerServicerequestMods) RandomClraddr1(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr1 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomClraddr1NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr1 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Clraddr2(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr2 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Clraddr2Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr2 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClraddr2() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr2 = 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 fieldseekerServicerequestMods) RandomClraddr2(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomClraddr2NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clraddr2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Clrcity(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcity = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrcityFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcity = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrcity() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcity = 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 fieldseekerServicerequestMods) RandomClrcity(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcity = 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 fieldseekerServicerequestMods) RandomClrcityNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcity = 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 fieldseekerServicerequestMods) Clrstate(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrstate = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrstateFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrstate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrstate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrstate = 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 fieldseekerServicerequestMods) RandomClrstate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrstate = 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 fieldseekerServicerequestMods) RandomClrstateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrstate = 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 fieldseekerServicerequestMods) Clrzip(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrzip = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrzipFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrzip = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrzip() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrzip = 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 fieldseekerServicerequestMods) RandomClrzip(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrzip = 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 fieldseekerServicerequestMods) RandomClrzipNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrzip = 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 fieldseekerServicerequestMods) Clrother(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrother = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrotherFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrother = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrother() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrother = 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 fieldseekerServicerequestMods) RandomClrother(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrother = 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 fieldseekerServicerequestMods) RandomClrotherNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrother = 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 fieldseekerServicerequestMods) Clrcontpref(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcontpref = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ClrcontprefFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcontpref = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetClrcontpref() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcontpref = 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 fieldseekerServicerequestMods) RandomClrcontpref(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcontpref = 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 fieldseekerServicerequestMods) RandomClrcontprefNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Clrcontpref = 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 fieldseekerServicerequestMods) Reqcompany(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcompany = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqcompanyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcompany = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqcompany() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcompany = 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 fieldseekerServicerequestMods) RandomReqcompany(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcompany = 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 fieldseekerServicerequestMods) RandomReqcompanyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcompany = 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 fieldseekerServicerequestMods) Reqaddr1(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr1 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Reqaddr1Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr1 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqaddr1() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr1 = 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 fieldseekerServicerequestMods) RandomReqaddr1(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr1 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomReqaddr1NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr1 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Reqaddr2(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr2 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Reqaddr2Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr2 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqaddr2() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr2 = 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 fieldseekerServicerequestMods) RandomReqaddr2(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomReqaddr2NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqaddr2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Reqcity(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcity = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqcityFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcity = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqcity() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcity = 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 fieldseekerServicerequestMods) RandomReqcity(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcity = 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 fieldseekerServicerequestMods) RandomReqcityNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcity = 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 fieldseekerServicerequestMods) Reqstate(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqstate = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqstateFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqstate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqstate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqstate = 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 fieldseekerServicerequestMods) RandomReqstate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqstate = 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 fieldseekerServicerequestMods) RandomReqstateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqstate = 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 fieldseekerServicerequestMods) Reqzip(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqzip = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqzipFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqzip = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqzip() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqzip = 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 fieldseekerServicerequestMods) RandomReqzip(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqzip = 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 fieldseekerServicerequestMods) RandomReqzipNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqzip = 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 fieldseekerServicerequestMods) Reqcrossst(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcrossst = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqcrossstFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcrossst = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqcrossst() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcrossst = 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 fieldseekerServicerequestMods) RandomReqcrossst(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcrossst = 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 fieldseekerServicerequestMods) RandomReqcrossstNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqcrossst = 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 fieldseekerServicerequestMods) Reqsubdiv(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqsubdiv = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqsubdivFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqsubdiv = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqsubdiv() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqsubdiv = 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 fieldseekerServicerequestMods) RandomReqsubdiv(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqsubdiv = 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 fieldseekerServicerequestMods) RandomReqsubdivNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqsubdiv = 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 fieldseekerServicerequestMods) Reqmapgrid(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqmapgrid = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqmapgridFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqmapgrid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqmapgrid() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqmapgrid = 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 fieldseekerServicerequestMods) RandomReqmapgrid(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqmapgrid = 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 fieldseekerServicerequestMods) RandomReqmapgridNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqmapgrid = 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 fieldseekerServicerequestMods) Reqpermission(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqpermission = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqpermissionFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqpermission = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqpermission() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqpermission = 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 fieldseekerServicerequestMods) RandomReqpermission(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqpermission = 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 fieldseekerServicerequestMods) RandomReqpermissionNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqpermission = 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 fieldseekerServicerequestMods) Reqtarget(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqtarget = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqtargetFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqtarget = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqtarget() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqtarget = 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 fieldseekerServicerequestMods) RandomReqtarget(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqtarget = 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 fieldseekerServicerequestMods) RandomReqtargetNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqtarget = 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 fieldseekerServicerequestMods) Reqdescr(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqdescr = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqdescrFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqdescr = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqdescr() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqdescr = 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 fieldseekerServicerequestMods) RandomReqdescr(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqdescr = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "1000")
|
|
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 fieldseekerServicerequestMods) RandomReqdescrNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqdescr = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "1000")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Reqnotesfortech(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesfortech = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqnotesfortechFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesfortech = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqnotesfortech() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesfortech = 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 fieldseekerServicerequestMods) RandomReqnotesfortech(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesfortech = 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 fieldseekerServicerequestMods) RandomReqnotesfortechNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesfortech = 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 fieldseekerServicerequestMods) Reqnotesforcust(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesforcust = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqnotesforcustFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesforcust = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqnotesforcust() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesforcust = 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 fieldseekerServicerequestMods) RandomReqnotesforcust(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesforcust = 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 fieldseekerServicerequestMods) RandomReqnotesforcustNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqnotesforcust = 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 fieldseekerServicerequestMods) Reqfldnotes(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqfldnotes = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqfldnotesFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqfldnotes = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqfldnotes() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqfldnotes = 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 fieldseekerServicerequestMods) RandomReqfldnotes(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqfldnotes = 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 fieldseekerServicerequestMods) RandomReqfldnotesNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqfldnotes = 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 fieldseekerServicerequestMods) Reqprogramactions(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqprogramactions = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReqprogramactionsFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqprogramactions = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReqprogramactions() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqprogramactions = 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 fieldseekerServicerequestMods) RandomReqprogramactions(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqprogramactions = 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 fieldseekerServicerequestMods) RandomReqprogramactionsNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reqprogramactions = 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 fieldseekerServicerequestMods) Datetimeclosed(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Datetimeclosed = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) DatetimeclosedFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Datetimeclosed = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetDatetimeclosed() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Datetimeclosed = 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 fieldseekerServicerequestMods) RandomDatetimeclosed(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Datetimeclosed = 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 fieldseekerServicerequestMods) RandomDatetimeclosedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Datetimeclosed = 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 fieldseekerServicerequestMods) Techclosed(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Techclosed = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) TechclosedFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Techclosed = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetTechclosed() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Techclosed = 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 fieldseekerServicerequestMods) RandomTechclosed(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Techclosed = 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 fieldseekerServicerequestMods) RandomTechclosedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Techclosed = 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 fieldseekerServicerequestMods) SRNumber(val null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SRNumber = func() null.Val[int32] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) SRNumberFunc(f func() null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SRNumber = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetSRNumber() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SRNumber = 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 fieldseekerServicerequestMods) RandomSRNumber(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SRNumber = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomSRNumberNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SRNumber = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Reviewed(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reviewed = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReviewedFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reviewed = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReviewed() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomReviewed(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomReviewedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Reviewedby(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reviewedby = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ReviewedbyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Reviewedby = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetReviewedby() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomReviewedby(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomReviewedbyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Revieweddate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Revieweddate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RevieweddateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Revieweddate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRevieweddate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomRevieweddate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomRevieweddateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Accepted(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepted = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) AcceptedFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepted = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetAccepted() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepted = 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 fieldseekerServicerequestMods) RandomAccepted(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepted = 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 fieldseekerServicerequestMods) RandomAcceptedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepted = 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 fieldseekerServicerequestMods) Accepteddate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepteddate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) AccepteddateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepteddate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetAccepteddate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepteddate = 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 fieldseekerServicerequestMods) RandomAccepteddate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepteddate = 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 fieldseekerServicerequestMods) RandomAccepteddateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Accepteddate = 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 fieldseekerServicerequestMods) Rejectedby(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedby = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RejectedbyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedby = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRejectedby() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedby = 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 fieldseekerServicerequestMods) RandomRejectedby(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedby = 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 fieldseekerServicerequestMods) RandomRejectedbyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedby = 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 fieldseekerServicerequestMods) Rejecteddate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejecteddate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RejecteddateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejecteddate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRejecteddate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejecteddate = 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 fieldseekerServicerequestMods) RandomRejecteddate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejecteddate = 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 fieldseekerServicerequestMods) RandomRejecteddateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejecteddate = 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 fieldseekerServicerequestMods) Rejectedreason(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedreason = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RejectedreasonFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedreason = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRejectedreason() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedreason = 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 fieldseekerServicerequestMods) RandomRejectedreason(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedreason = 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 fieldseekerServicerequestMods) RandomRejectedreasonNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Rejectedreason = 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 fieldseekerServicerequestMods) Duedate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Duedate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) DuedateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Duedate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetDuedate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Duedate = 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 fieldseekerServicerequestMods) RandomDuedate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Duedate = 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 fieldseekerServicerequestMods) RandomDuedateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Duedate = 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 fieldseekerServicerequestMods) Acceptedby(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Acceptedby = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) AcceptedbyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Acceptedby = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetAcceptedby() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Acceptedby = 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 fieldseekerServicerequestMods) RandomAcceptedby(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Acceptedby = 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 fieldseekerServicerequestMods) RandomAcceptedbyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Acceptedby = 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 fieldseekerServicerequestMods) Comments(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Comments = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) CommentsFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Comments = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetComments() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomComments(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Comments = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "2500")
|
|
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 fieldseekerServicerequestMods) RandomCommentsNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Comments = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "2500")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Estcompletedate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Estcompletedate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) EstcompletedateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Estcompletedate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetEstcompletedate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Estcompletedate = 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 fieldseekerServicerequestMods) RandomEstcompletedate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Estcompletedate = 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 fieldseekerServicerequestMods) RandomEstcompletedateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Estcompletedate = 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 fieldseekerServicerequestMods) Nextaction(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Nextaction = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) NextactionFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Nextaction = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetNextaction() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Nextaction = 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 fieldseekerServicerequestMods) RandomNextaction(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Nextaction = 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 fieldseekerServicerequestMods) RandomNextactionNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Nextaction = 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 fieldseekerServicerequestMods) Recordstatus(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recordstatus = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) RecordstatusFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Recordstatus = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetRecordstatus() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomRecordstatus(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomRecordstatusNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Globalid(val uuid.UUID) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Globalid = func() uuid.UUID { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) GlobalidFunc(f func() uuid.UUID) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Globalid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetGlobalid() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomGlobalid(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Globalid = func() uuid.UUID {
|
|
return random_uuid_UUID(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) CreatedUser(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.CreatedUser = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.CreatedUser = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetCreatedUser() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreatedUser(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) CreatedDate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.CreatedDate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.CreatedDate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetCreatedDate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreatedDate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) LastEditedUser(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.LastEditedUser = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.LastEditedUser = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetLastEditedUser() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomLastEditedUser(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) LastEditedDate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.LastEditedDate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.LastEditedDate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetLastEditedDate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomLastEditedDate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Firstresponsedate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Firstresponsedate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) FirstresponsedateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Firstresponsedate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetFirstresponsedate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Firstresponsedate = 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 fieldseekerServicerequestMods) RandomFirstresponsedate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Firstresponsedate = 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 fieldseekerServicerequestMods) RandomFirstresponsedateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Firstresponsedate = 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 fieldseekerServicerequestMods) Responsedaycount(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Responsedaycount = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ResponsedaycountFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Responsedaycount = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetResponsedaycount() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Responsedaycount = 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 fieldseekerServicerequestMods) RandomResponsedaycount(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Responsedaycount = 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 fieldseekerServicerequestMods) RandomResponsedaycountNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Responsedaycount = 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 fieldseekerServicerequestMods) Allowed(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Allowed = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) AllowedFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Allowed = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetAllowed() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Allowed = 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 fieldseekerServicerequestMods) RandomAllowed(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Allowed = 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 fieldseekerServicerequestMods) RandomAllowedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Allowed = 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 fieldseekerServicerequestMods) Xvalue(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Xvalue = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) XvalueFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Xvalue = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetXvalue() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Xvalue = 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 fieldseekerServicerequestMods) RandomXvalue(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Xvalue = 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 fieldseekerServicerequestMods) RandomXvalueNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Xvalue = 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 fieldseekerServicerequestMods) Yvalue(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Yvalue = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) YvalueFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Yvalue = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetYvalue() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Yvalue = 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 fieldseekerServicerequestMods) RandomYvalue(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Yvalue = 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 fieldseekerServicerequestMods) RandomYvalueNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Yvalue = 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 fieldseekerServicerequestMods) Validx(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validx = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ValidxFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validx = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetValidx() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validx = 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 fieldseekerServicerequestMods) RandomValidx(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validx = 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 fieldseekerServicerequestMods) RandomValidxNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validx = 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 fieldseekerServicerequestMods) Validy(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validy = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ValidyFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validy = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetValidy() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validy = 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 fieldseekerServicerequestMods) RandomValidy(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validy = 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 fieldseekerServicerequestMods) RandomValidyNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Validy = 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 fieldseekerServicerequestMods) Externalid(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalid = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ExternalidFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetExternalid() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomExternalid(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomExternalidNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Externalerror(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalerror = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ExternalerrorFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalerror = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetExternalerror() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalerror = 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 fieldseekerServicerequestMods) RandomExternalerror(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalerror = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "500")
|
|
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 fieldseekerServicerequestMods) RandomExternalerrorNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Externalerror = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "500")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Pointlocid(val null.Val[uuid.UUID]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Pointlocid = func() null.Val[uuid.UUID] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) PointlocidFunc(f func() null.Val[uuid.UUID]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Pointlocid = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetPointlocid() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomPointlocid(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomPointlocidNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Notified(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notified = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) NotifiedFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notified = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetNotified() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notified = 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 fieldseekerServicerequestMods) RandomNotified(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notified = 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 fieldseekerServicerequestMods) RandomNotifiedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notified = 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 fieldseekerServicerequestMods) Notifieddate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notifieddate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) NotifieddateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notifieddate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetNotifieddate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notifieddate = 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 fieldseekerServicerequestMods) RandomNotifieddate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notifieddate = 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 fieldseekerServicerequestMods) RandomNotifieddateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notifieddate = 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 fieldseekerServicerequestMods) Scheduled(val null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduled = func() null.Val[int16] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ScheduledFunc(f func() null.Val[int16]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduled = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetScheduled() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduled = 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 fieldseekerServicerequestMods) RandomScheduled(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduled = 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 fieldseekerServicerequestMods) RandomScheduledNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduled = 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 fieldseekerServicerequestMods) Scheduleddate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduleddate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ScheduleddateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduleddate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetScheduleddate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduleddate = 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 fieldseekerServicerequestMods) RandomScheduleddate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduleddate = 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 fieldseekerServicerequestMods) RandomScheduleddateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Scheduleddate = 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 fieldseekerServicerequestMods) Dog(val null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Dog = func() null.Val[int32] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) DogFunc(f func() null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Dog = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetDog() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Dog = 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 fieldseekerServicerequestMods) RandomDog(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Dog = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomDogNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Dog = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) SchedulePeriod(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SchedulePeriod = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) SchedulePeriodFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SchedulePeriod = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetSchedulePeriod() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SchedulePeriod = 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 fieldseekerServicerequestMods) RandomSchedulePeriod(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SchedulePeriod = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "20")
|
|
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 fieldseekerServicerequestMods) RandomSchedulePeriodNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.SchedulePeriod = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "20")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) ScheduleNotes(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.ScheduleNotes = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ScheduleNotesFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.ScheduleNotes = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetScheduleNotes() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.ScheduleNotes = 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 fieldseekerServicerequestMods) RandomScheduleNotes(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.ScheduleNotes = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "256")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomScheduleNotesNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.ScheduleNotes = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "256")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Spanish(val null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Spanish = func() null.Val[int32] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) SpanishFunc(f func() null.Val[int32]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Spanish = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetSpanish() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Spanish = 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 fieldseekerServicerequestMods) RandomSpanish(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Spanish = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomSpanishNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Spanish = func() null.Val[int32] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_int32(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Creationdate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Creationdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Creationdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetCreationdate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreationdate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Creator(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Creator = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) CreatorFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Creator = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetCreator() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreator(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Editdate(val null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Editdate = func() null.Val[time.Time] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Editdate = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetEditdate() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomEditdate(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Editor(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Editor = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) EditorFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Editor = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetEditor() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomEditor(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomEditorNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Issuesreported(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Issuesreported = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) IssuesreportedFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Issuesreported = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetIssuesreported() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Issuesreported = 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 fieldseekerServicerequestMods) RandomIssuesreported(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Issuesreported = 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 fieldseekerServicerequestMods) RandomIssuesreportedNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Issuesreported = 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 fieldseekerServicerequestMods) Jurisdiction(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) JurisdictionFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Jurisdiction = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetJurisdiction() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Jurisdiction = nil
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is sometimes null
|
|
func (m fieldseekerServicerequestMods) RandomJurisdiction(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomJurisdictionNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Jurisdiction = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "25")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Notificationtimestamp(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notificationtimestamp = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) NotificationtimestampFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notificationtimestamp = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetNotificationtimestamp() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notificationtimestamp = 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 fieldseekerServicerequestMods) RandomNotificationtimestamp(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notificationtimestamp = 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 fieldseekerServicerequestMods) RandomNotificationtimestampNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Notificationtimestamp = 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 fieldseekerServicerequestMods) Zone(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) ZoneFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetZone() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomZone(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomZoneNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Zone2(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone2 = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) Zone2Func(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone2 = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetZone2() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomZone2(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Generates a random value for the column using the given faker
|
|
// if faker is nil, a default faker is used
|
|
// The generated value is never null
|
|
func (m fieldseekerServicerequestMods) RandomZone2NotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Zone2 = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f, "50")
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Geometry(val types.JSON[json.RawMessage]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Geometry = func() types.JSON[json.RawMessage] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) GeometryFunc(f func() types.JSON[json.RawMessage]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Geometry = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetGeometry() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomGeometry(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Geometry = func() types.JSON[json.RawMessage] {
|
|
return random_types_JSON_json_RawMessage_(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) Geospatial(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Geospatial = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) GeospatialFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Geospatial = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetGeospatial() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomGeospatial(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomGeospatialNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) Version(val int32) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Version = func() int32 { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) VersionFunc(f func() int32) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Version = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetVersion() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomVersion(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.Version = func() int32 {
|
|
return random_int32(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) OrganizationID(val int32) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.OrganizationID = func() int32 { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) OrganizationIDFunc(f func() int32) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.OrganizationID = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetOrganizationID() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
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 fieldseekerServicerequestMods) RandomOrganizationID(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.OrganizationID = func() int32 {
|
|
return random_int32(f)
|
|
}
|
|
})
|
|
}
|
|
|
|
// Set the model columns to this value
|
|
func (m fieldseekerServicerequestMods) H3cell(val null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.H3cell = func() null.Val[string] { return val }
|
|
})
|
|
}
|
|
|
|
// Set the Column from the function
|
|
func (m fieldseekerServicerequestMods) H3cellFunc(f func() null.Val[string]) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.H3cell = f
|
|
})
|
|
}
|
|
|
|
// Clear any values for the column
|
|
func (m fieldseekerServicerequestMods) UnsetH3cell() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.H3cell = 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 fieldseekerServicerequestMods) RandomH3cell(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.H3cell = 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 fieldseekerServicerequestMods) RandomH3cellNotNull(f *faker.Faker) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(_ context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.H3cell = func() null.Val[string] {
|
|
if f == nil {
|
|
f = &defaultFaker
|
|
}
|
|
|
|
val := random_string(f)
|
|
return null.From(val)
|
|
}
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerServicerequestMods) WithParentsCascading() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
|
if isDone, _ := fieldseekerServicerequestWithParentsCascadingCtx.Value(ctx); isDone {
|
|
return
|
|
}
|
|
ctx = fieldseekerServicerequestWithParentsCascadingCtx.WithValue(ctx, true)
|
|
{
|
|
|
|
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
|
|
m.WithOrganization(related).Apply(ctx, o)
|
|
}
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerServicerequestMods) WithOrganization(rel *OrganizationTemplate) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.r.Organization = &fieldseekerServicerequestROrganizationR{
|
|
o: rel,
|
|
}
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerServicerequestMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
|
related := o.f.NewOrganizationWithContext(ctx, mods...)
|
|
|
|
m.WithOrganization(related).Apply(ctx, o)
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerServicerequestMods) WithExistingOrganization(em *models.Organization) FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.r.Organization = &fieldseekerServicerequestROrganizationR{
|
|
o: o.f.FromExistingOrganization(em),
|
|
}
|
|
})
|
|
}
|
|
|
|
func (m fieldseekerServicerequestMods) WithoutOrganization() FieldseekerServicerequestMod {
|
|
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
|
o.r.Organization = nil
|
|
})
|
|
}
|