Initially made it through full update with new fieldseeker schema
This commit is contained in:
parent
0904f086b2
commit
bd16f69e28
510 changed files with 13617 additions and 14851 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -8,18 +8,6 @@ import "context"
|
|||
type contextKey string
|
||||
|
||||
var (
|
||||
// Relationship Contexts for fieldseeker.aerialsprayline
|
||||
fieldseekerAerialspraylineWithParentsCascadingCtx = newContextual[bool]("fieldseekerAerialspraylineWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.aerialspraysession
|
||||
fieldseekerAerialspraysessionWithParentsCascadingCtx = newContextual[bool]("fieldseekerAerialspraysessionWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.barrierspray
|
||||
fieldseekerBarriersprayWithParentsCascadingCtx = newContextual[bool]("fieldseekerBarriersprayWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.barriersprayroute
|
||||
fieldseekerBarriersprayrouteWithParentsCascadingCtx = newContextual[bool]("fieldseekerBarriersprayrouteWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.containerrelate
|
||||
fieldseekerContainerrelateWithParentsCascadingCtx = newContextual[bool]("fieldseekerContainerrelateWithParentsCascading")
|
||||
|
||||
|
|
@ -35,12 +23,6 @@ var (
|
|||
// Relationship Contexts for fieldseeker.inspectionsampledetail
|
||||
fieldseekerInspectionsampledetailWithParentsCascadingCtx = newContextual[bool]("fieldseekerInspectionsampledetailWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.landingcount
|
||||
fieldseekerLandingcountWithParentsCascadingCtx = newContextual[bool]("fieldseekerLandingcountWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.landingcountlocation
|
||||
fieldseekerLandingcountlocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerLandingcountlocationWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.linelocation
|
||||
fieldseekerLinelocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerLinelocationWithParentsCascading")
|
||||
|
||||
|
|
@ -59,33 +41,17 @@ var (
|
|||
// Relationship Contexts for fieldseeker.pool
|
||||
fieldseekerPoolWithParentsCascadingCtx = newContextual[bool]("fieldseekerPoolWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.poolbuffer
|
||||
fieldseekerPoolbufferWithParentsCascadingCtx = newContextual[bool]("fieldseekerPoolbufferWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.pooldetail
|
||||
fieldseekerPooldetailWithParentsCascadingCtx = newContextual[bool]("fieldseekerPooldetailWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.proposedtreatmentarea
|
||||
fieldseekerProposedtreatmentareaWithParentsCascadingCtx = newContextual[bool]("fieldseekerProposedtreatmentareaWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.qalarvcount
|
||||
fieldseekerQalarvcountWithParentsCascadingCtx = newContextual[bool]("fieldseekerQalarvcountWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.qamosquitoinspection
|
||||
fieldseekerQamosquitoinspectionWithParentsCascadingCtx = newContextual[bool]("fieldseekerQamosquitoinspectionWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.qaproductobservation
|
||||
fieldseekerQaproductobservationWithParentsCascadingCtx = newContextual[bool]("fieldseekerQaproductobservationWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.restrictedarea
|
||||
fieldseekerRestrictedareaWithParentsCascadingCtx = newContextual[bool]("fieldseekerRestrictedareaWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.rodentinspection
|
||||
fieldseekerRodentinspectionWithParentsCascadingCtx = newContextual[bool]("fieldseekerRodentinspectionWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.rodentlocation
|
||||
fieldseekerRodentlocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerRodentlocationWithParentsCascading")
|
||||
fieldseekerRodentlocationRelOrganizationCtx = newContextual[bool]("fieldseeker.rodentlocation.organization.fieldseeker.rodentlocation.rodentlocation_organization_id_fkey")
|
||||
|
||||
// Relationship Contexts for fieldseeker.samplecollection
|
||||
fieldseekerSamplecollectionWithParentsCascadingCtx = newContextual[bool]("fieldseekerSamplecollectionWithParentsCascading")
|
||||
|
|
@ -105,9 +71,6 @@ var (
|
|||
// Relationship Contexts for fieldseeker.timecard
|
||||
fieldseekerTimecardWithParentsCascadingCtx = newContextual[bool]("fieldseekerTimecardWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.tracklog
|
||||
fieldseekerTracklogWithParentsCascadingCtx = newContextual[bool]("fieldseekerTracklogWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.trapdata
|
||||
fieldseekerTrapdatumWithParentsCascadingCtx = newContextual[bool]("fieldseekerTrapdatumWithParentsCascading")
|
||||
|
||||
|
|
@ -120,9 +83,6 @@ var (
|
|||
// Relationship Contexts for fieldseeker.treatmentarea
|
||||
fieldseekerTreatmentareaWithParentsCascadingCtx = newContextual[bool]("fieldseekerTreatmentareaWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.ulvsprayroute
|
||||
fieldseekerUlvsprayrouteWithParentsCascadingCtx = newContextual[bool]("fieldseekerUlvsprayrouteWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.zones
|
||||
fieldseekerZoneWithParentsCascadingCtx = newContextual[bool]("fieldseekerZoneWithParentsCascading")
|
||||
|
||||
|
|
@ -372,7 +332,6 @@ var (
|
|||
|
||||
// Relationship Contexts for organization
|
||||
organizationWithParentsCascadingCtx = newContextual[bool]("organizationWithParentsCascading")
|
||||
organizationRelRodentlocationsCtx = newContextual[bool]("fieldseeker.rodentlocation.organization.fieldseeker.rodentlocation.rodentlocation_organization_id_fkey")
|
||||
organizationRelFieldseekerSyncsCtx = newContextual[bool]("fieldseeker_sync.organization.fieldseeker_sync.fieldseeker_sync_organization_id_fkey")
|
||||
organizationRelFSContainerrelatesCtx = newContextual[bool]("fs_containerrelate.organization.fs_containerrelate.fs_containerrelate_organization_id_fkey")
|
||||
organizationRelFSFieldscoutinglogsCtx = newContextual[bool]("fs_fieldscoutinglog.organization.fs_fieldscoutinglog.fs_fieldscoutinglog_organization_id_fkey")
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -15,31 +15,20 @@ import (
|
|||
)
|
||||
|
||||
type Factory struct {
|
||||
baseFieldseekerAerialspraylineMods FieldseekerAerialspraylineModSlice
|
||||
baseFieldseekerAerialspraysessionMods FieldseekerAerialspraysessionModSlice
|
||||
baseFieldseekerBarriersprayMods FieldseekerBarriersprayModSlice
|
||||
baseFieldseekerBarriersprayrouteMods FieldseekerBarriersprayrouteModSlice
|
||||
baseFieldseekerContainerrelateMods FieldseekerContainerrelateModSlice
|
||||
baseFieldseekerFieldscoutinglogMods FieldseekerFieldscoutinglogModSlice
|
||||
baseFieldseekerHabitatrelateMods FieldseekerHabitatrelateModSlice
|
||||
baseFieldseekerInspectionsampleMods FieldseekerInspectionsampleModSlice
|
||||
baseFieldseekerInspectionsampledetailMods FieldseekerInspectionsampledetailModSlice
|
||||
baseFieldseekerLandingcountMods FieldseekerLandingcountModSlice
|
||||
baseFieldseekerLandingcountlocationMods FieldseekerLandingcountlocationModSlice
|
||||
baseFieldseekerLinelocationMods FieldseekerLinelocationModSlice
|
||||
baseFieldseekerLocationtrackingMods FieldseekerLocationtrackingModSlice
|
||||
baseFieldseekerMosquitoinspectionMods FieldseekerMosquitoinspectionModSlice
|
||||
baseFieldseekerPointlocationMods FieldseekerPointlocationModSlice
|
||||
baseFieldseekerPolygonlocationMods FieldseekerPolygonlocationModSlice
|
||||
baseFieldseekerPoolMods FieldseekerPoolModSlice
|
||||
baseFieldseekerPoolbufferMods FieldseekerPoolbufferModSlice
|
||||
baseFieldseekerPooldetailMods FieldseekerPooldetailModSlice
|
||||
baseFieldseekerProposedtreatmentareaMods FieldseekerProposedtreatmentareaModSlice
|
||||
baseFieldseekerQalarvcountMods FieldseekerQalarvcountModSlice
|
||||
baseFieldseekerQamosquitoinspectionMods FieldseekerQamosquitoinspectionModSlice
|
||||
baseFieldseekerQaproductobservationMods FieldseekerQaproductobservationModSlice
|
||||
baseFieldseekerRestrictedareaMods FieldseekerRestrictedareaModSlice
|
||||
baseFieldseekerRodentinspectionMods FieldseekerRodentinspectionModSlice
|
||||
baseFieldseekerRodentlocationMods FieldseekerRodentlocationModSlice
|
||||
baseFieldseekerSamplecollectionMods FieldseekerSamplecollectionModSlice
|
||||
baseFieldseekerSamplelocationMods FieldseekerSamplelocationModSlice
|
||||
|
|
@ -47,12 +36,10 @@ type Factory struct {
|
|||
baseFieldseekerSpeciesabundanceMods FieldseekerSpeciesabundanceModSlice
|
||||
baseFieldseekerStormdrainMods FieldseekerStormdrainModSlice
|
||||
baseFieldseekerTimecardMods FieldseekerTimecardModSlice
|
||||
baseFieldseekerTracklogMods FieldseekerTracklogModSlice
|
||||
baseFieldseekerTrapdatumMods FieldseekerTrapdatumModSlice
|
||||
baseFieldseekerTraplocationMods FieldseekerTraplocationModSlice
|
||||
baseFieldseekerTreatmentMods FieldseekerTreatmentModSlice
|
||||
baseFieldseekerTreatmentareaMods FieldseekerTreatmentareaModSlice
|
||||
baseFieldseekerUlvsprayrouteMods FieldseekerUlvsprayrouteModSlice
|
||||
baseFieldseekerZoneMods FieldseekerZoneModSlice
|
||||
baseFieldseekerZones2Mods FieldseekerZones2ModSlice
|
||||
baseFieldseekerSyncMods FieldseekerSyncModSlice
|
||||
|
|
@ -128,94 +115,6 @@ func New() *Factory {
|
|||
return &Factory{}
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerAerialsprayline(mods ...FieldseekerAerialspraylineMod) *FieldseekerAerialspraylineTemplate {
|
||||
return f.NewFieldseekerAerialspraylineWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerAerialspraylineWithContext(ctx context.Context, mods ...FieldseekerAerialspraylineMod) *FieldseekerAerialspraylineTemplate {
|
||||
o := &FieldseekerAerialspraylineTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerAerialspraylineMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerAerialspraylineModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerAerialsprayline(m *models.FieldseekerAerialsprayline) *FieldseekerAerialspraylineTemplate {
|
||||
o := &FieldseekerAerialspraylineTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerAerialspraysession(mods ...FieldseekerAerialspraysessionMod) *FieldseekerAerialspraysessionTemplate {
|
||||
return f.NewFieldseekerAerialspraysessionWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerAerialspraysessionWithContext(ctx context.Context, mods ...FieldseekerAerialspraysessionMod) *FieldseekerAerialspraysessionTemplate {
|
||||
o := &FieldseekerAerialspraysessionTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerAerialspraysessionMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerAerialspraysessionModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerAerialspraysession(m *models.FieldseekerAerialspraysession) *FieldseekerAerialspraysessionTemplate {
|
||||
o := &FieldseekerAerialspraysessionTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerBarrierspray(mods ...FieldseekerBarriersprayMod) *FieldseekerBarriersprayTemplate {
|
||||
return f.NewFieldseekerBarriersprayWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerBarriersprayWithContext(ctx context.Context, mods ...FieldseekerBarriersprayMod) *FieldseekerBarriersprayTemplate {
|
||||
o := &FieldseekerBarriersprayTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerBarriersprayMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerBarriersprayModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerBarrierspray(m *models.FieldseekerBarrierspray) *FieldseekerBarriersprayTemplate {
|
||||
o := &FieldseekerBarriersprayTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerBarriersprayroute(mods ...FieldseekerBarriersprayrouteMod) *FieldseekerBarriersprayrouteTemplate {
|
||||
return f.NewFieldseekerBarriersprayrouteWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerBarriersprayrouteWithContext(ctx context.Context, mods ...FieldseekerBarriersprayrouteMod) *FieldseekerBarriersprayrouteTemplate {
|
||||
o := &FieldseekerBarriersprayrouteTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerBarriersprayrouteMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerBarriersprayrouteModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerBarriersprayroute(m *models.FieldseekerBarriersprayroute) *FieldseekerBarriersprayrouteTemplate {
|
||||
o := &FieldseekerBarriersprayrouteTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerContainerrelate(mods ...FieldseekerContainerrelateMod) *FieldseekerContainerrelateTemplate {
|
||||
return f.NewFieldseekerContainerrelateWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
|
@ -249,6 +148,7 @@ func (f *Factory) FromExistingFieldseekerContainerrelate(m *models.FieldseekerCo
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -283,6 +183,7 @@ func (f *Factory) FromExistingFieldseekerFieldscoutinglog(m *models.FieldseekerF
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -320,6 +221,7 @@ func (f *Factory) FromExistingFieldseekerHabitatrelate(m *models.FieldseekerHabi
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -357,6 +259,7 @@ func (f *Factory) FromExistingFieldseekerInspectionsample(m *models.FieldseekerI
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -407,50 +310,7 @@ func (f *Factory) FromExistingFieldseekerInspectionsampledetail(m *models.Fields
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerLandingcount(mods ...FieldseekerLandingcountMod) *FieldseekerLandingcountTemplate {
|
||||
return f.NewFieldseekerLandingcountWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerLandingcountWithContext(ctx context.Context, mods ...FieldseekerLandingcountMod) *FieldseekerLandingcountTemplate {
|
||||
o := &FieldseekerLandingcountTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerLandingcountMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerLandingcountModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerLandingcount(m *models.FieldseekerLandingcount) *FieldseekerLandingcountTemplate {
|
||||
o := &FieldseekerLandingcountTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerLandingcountlocation(mods ...FieldseekerLandingcountlocationMod) *FieldseekerLandingcountlocationTemplate {
|
||||
return f.NewFieldseekerLandingcountlocationWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerLandingcountlocationWithContext(ctx context.Context, mods ...FieldseekerLandingcountlocationMod) *FieldseekerLandingcountlocationTemplate {
|
||||
o := &FieldseekerLandingcountlocationTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerLandingcountlocationMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerLandingcountlocationModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerLandingcountlocation(m *models.FieldseekerLandingcountlocation) *FieldseekerLandingcountlocationTemplate {
|
||||
o := &FieldseekerLandingcountlocationTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -528,6 +388,7 @@ func (f *Factory) FromExistingFieldseekerLinelocation(m *models.FieldseekerLinel
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -563,6 +424,7 @@ func (f *Factory) FromExistingFieldseekerLocationtracking(m *models.FieldseekerL
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -651,6 +513,7 @@ func (f *Factory) FromExistingFieldseekerMosquitoinspection(m *models.Fieldseeke
|
|||
return m.Adminaction
|
||||
}
|
||||
o.Ptaid = func() null.Val[uuid.UUID] { return m.Ptaid }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -728,6 +591,7 @@ func (f *Factory) FromExistingFieldseekerPointlocation(m *models.FieldseekerPoin
|
|||
}
|
||||
o.Scalarpriority = func() null.Val[int32] { return m.Scalarpriority }
|
||||
o.Sourcestatus = func() null.Val[string] { return m.Sourcestatus }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -799,6 +663,7 @@ func (f *Factory) FromExistingFieldseekerPolygonlocation(m *models.FieldseekerPo
|
|||
o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction }
|
||||
o.ShapeArea = func() null.Val[float64] { return m.ShapeArea }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -856,28 +721,7 @@ func (f *Factory) FromExistingFieldseekerPool(m *models.FieldseekerPool) *Fields
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerPoolbuffer(mods ...FieldseekerPoolbufferMod) *FieldseekerPoolbufferTemplate {
|
||||
return f.NewFieldseekerPoolbufferWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerPoolbufferWithContext(ctx context.Context, mods ...FieldseekerPoolbufferMod) *FieldseekerPoolbufferTemplate {
|
||||
o := &FieldseekerPoolbufferTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerPoolbufferMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerPoolbufferModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerPoolbuffer(m *models.FieldseekerPoolbuffer) *FieldseekerPoolbufferTemplate {
|
||||
o := &FieldseekerPoolbufferTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -915,6 +759,7 @@ func (f *Factory) FromExistingFieldseekerPooldetail(m *models.FieldseekerPooldet
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -971,28 +816,7 @@ func (f *Factory) FromExistingFieldseekerProposedtreatmentarea(m *models.Fieldse
|
|||
o.Targetspecies = func() null.Val[string] { return m.Targetspecies }
|
||||
o.ShapeArea = func() null.Val[float64] { return m.ShapeArea }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerQalarvcount(mods ...FieldseekerQalarvcountMod) *FieldseekerQalarvcountTemplate {
|
||||
return f.NewFieldseekerQalarvcountWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerQalarvcountWithContext(ctx context.Context, mods ...FieldseekerQalarvcountMod) *FieldseekerQalarvcountTemplate {
|
||||
o := &FieldseekerQalarvcountTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerQalarvcountMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerQalarvcountModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerQalarvcount(m *models.FieldseekerQalarvcount) *FieldseekerQalarvcountTemplate {
|
||||
o := &FieldseekerQalarvcountTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1082,72 +906,7 @@ func (f *Factory) FromExistingFieldseekerQamosquitoinspection(m *models.Fieldsee
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerQaproductobservation(mods ...FieldseekerQaproductobservationMod) *FieldseekerQaproductobservationTemplate {
|
||||
return f.NewFieldseekerQaproductobservationWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerQaproductobservationWithContext(ctx context.Context, mods ...FieldseekerQaproductobservationMod) *FieldseekerQaproductobservationTemplate {
|
||||
o := &FieldseekerQaproductobservationTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerQaproductobservationMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerQaproductobservationModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerQaproductobservation(m *models.FieldseekerQaproductobservation) *FieldseekerQaproductobservationTemplate {
|
||||
o := &FieldseekerQaproductobservationTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerRestrictedarea(mods ...FieldseekerRestrictedareaMod) *FieldseekerRestrictedareaTemplate {
|
||||
return f.NewFieldseekerRestrictedareaWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerRestrictedareaWithContext(ctx context.Context, mods ...FieldseekerRestrictedareaMod) *FieldseekerRestrictedareaTemplate {
|
||||
o := &FieldseekerRestrictedareaTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerRestrictedareaMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerRestrictedareaModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerRestrictedarea(m *models.FieldseekerRestrictedarea) *FieldseekerRestrictedareaTemplate {
|
||||
o := &FieldseekerRestrictedareaTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerRodentinspection(mods ...FieldseekerRodentinspectionMod) *FieldseekerRodentinspectionTemplate {
|
||||
return f.NewFieldseekerRodentinspectionWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerRodentinspectionWithContext(ctx context.Context, mods ...FieldseekerRodentinspectionMod) *FieldseekerRodentinspectionTemplate {
|
||||
o := &FieldseekerRodentinspectionTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerRodentinspectionMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerRodentinspectionModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerRodentinspection(m *models.FieldseekerRodentinspection) *FieldseekerRodentinspectionTemplate {
|
||||
o := &FieldseekerRodentinspectionTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1171,7 +930,6 @@ func (f *Factory) NewFieldseekerRodentlocationWithContext(ctx context.Context, m
|
|||
func (f *Factory) FromExistingFieldseekerRodentlocation(m *models.FieldseekerRodentlocation) *FieldseekerRodentlocationTemplate {
|
||||
o := &FieldseekerRodentlocationTemplate{f: f, alreadyPersisted: true}
|
||||
|
||||
o.OrganizationID = func() int32 { return m.OrganizationID }
|
||||
o.Objectid = func() int64 { return m.Objectid }
|
||||
o.Locationname = func() null.Val[string] { return m.Locationname }
|
||||
o.Zone = func() null.Val[string] { return m.Zone }
|
||||
|
|
@ -1202,11 +960,7 @@ func (f *Factory) FromExistingFieldseekerRodentlocation(m *models.FieldseekerRod
|
|||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction }
|
||||
|
||||
ctx := context.Background()
|
||||
if m.R.Organization != nil {
|
||||
FieldseekerRodentlocationMods.WithExistingOrganization(m.R.Organization).Apply(ctx, o)
|
||||
}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1276,6 +1030,7 @@ func (f *Factory) FromExistingFieldseekerSamplecollection(m *models.FieldseekerS
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1323,6 +1078,7 @@ func (f *Factory) FromExistingFieldseekerSamplelocation(m *models.FieldseekerSam
|
|||
o.Creator = func() null.Val[string] { return m.Creator }
|
||||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1446,6 +1202,7 @@ func (f *Factory) FromExistingFieldseekerServicerequest(m *models.FieldseekerSer
|
|||
o.Notificationtimestamp = func() null.Val[string] { return m.Notificationtimestamp }
|
||||
o.Zone = func() null.Val[string] { return m.Zone }
|
||||
o.Zone2 = func() null.Val[string] { return m.Zone2 }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1498,6 +1255,7 @@ func (f *Factory) FromExistingFieldseekerSpeciesabundance(m *models.FieldseekerS
|
|||
o.R8score = func() null.Val[float64] { return m.R8score }
|
||||
o.H3R7 = func() null.Val[string] { return m.H3R7 }
|
||||
o.H3R8 = func() null.Val[string] { return m.H3R8 }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1540,6 +1298,7 @@ func (f *Factory) FromExistingFieldseekerStormdrain(m *models.FieldseekerStormdr
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Type = func() null.Val[string] { return m.Type }
|
||||
o.Jurisdiction = func() null.Val[string] { return m.Jurisdiction }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1593,28 +1352,7 @@ func (f *Factory) FromExistingFieldseekerTimecard(m *models.FieldseekerTimecard)
|
|||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Rodentlocid = func() null.Val[uuid.UUID] { return m.Rodentlocid }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerTracklog(mods ...FieldseekerTracklogMod) *FieldseekerTracklogTemplate {
|
||||
return f.NewFieldseekerTracklogWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerTracklogWithContext(ctx context.Context, mods ...FieldseekerTracklogMod) *FieldseekerTracklogTemplate {
|
||||
o := &FieldseekerTracklogTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerTracklogMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerTracklogModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerTracklog(m *models.FieldseekerTracklog) *FieldseekerTracklogTemplate {
|
||||
o := &FieldseekerTracklogTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1684,6 +1422,7 @@ func (f *Factory) FromExistingFieldseekerTrapdatum(m *models.FieldseekerTrapdatu
|
|||
o.Lure = func() null.Val[enums.FieldseekerTrapdataTrapdataLure25fe542f077F4254868176e8f436354bEnu] {
|
||||
return m.Lure
|
||||
}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1745,6 +1484,7 @@ func (f *Factory) FromExistingFieldseekerTraplocation(m *models.FieldseekerTrapl
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.H3R7 = func() null.Val[string] { return m.H3R7 }
|
||||
o.H3R8 = func() null.Val[string] { return m.H3R8 }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1832,6 +1572,7 @@ func (f *Factory) FromExistingFieldseekerTreatment(m *models.FieldseekerTreatmen
|
|||
o.Editdate = func() null.Val[time.Time] { return m.Editdate }
|
||||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.Targetspecies = func() null.Val[string] { return m.Targetspecies }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1873,28 +1614,7 @@ func (f *Factory) FromExistingFieldseekerTreatmentarea(m *models.FieldseekerTrea
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.ShapeArea = func() null.Val[float64] { return m.ShapeArea }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerUlvsprayroute(mods ...FieldseekerUlvsprayrouteMod) *FieldseekerUlvsprayrouteTemplate {
|
||||
return f.NewFieldseekerUlvsprayrouteWithContext(context.Background(), mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) NewFieldseekerUlvsprayrouteWithContext(ctx context.Context, mods ...FieldseekerUlvsprayrouteMod) *FieldseekerUlvsprayrouteTemplate {
|
||||
o := &FieldseekerUlvsprayrouteTemplate{f: f}
|
||||
|
||||
if f != nil {
|
||||
f.baseFieldseekerUlvsprayrouteMods.Apply(ctx, o)
|
||||
}
|
||||
|
||||
FieldseekerUlvsprayrouteModSlice(mods).Apply(ctx, o)
|
||||
|
||||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) FromExistingFieldseekerUlvsprayroute(m *models.FieldseekerUlvsprayroute) *FieldseekerUlvsprayrouteTemplate {
|
||||
o := &FieldseekerUlvsprayrouteTemplate{f: f, alreadyPersisted: true}
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1932,6 +1652,7 @@ func (f *Factory) FromExistingFieldseekerZone(m *models.FieldseekerZone) *Fields
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.ShapeArea = func() null.Val[float64] { return m.ShapeArea }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -1968,6 +1689,7 @@ func (f *Factory) FromExistingFieldseekerZones2(m *models.FieldseekerZones2) *Fi
|
|||
o.Editor = func() null.Val[string] { return m.Editor }
|
||||
o.ShapeArea = func() null.Val[float64] { return m.ShapeArea }
|
||||
o.ShapeLength = func() null.Val[float64] { return m.ShapeLength }
|
||||
o.Version = func() int32 { return m.Version }
|
||||
|
||||
return o
|
||||
}
|
||||
|
|
@ -5684,9 +5406,6 @@ func (f *Factory) FromExistingOrganization(m *models.Organization) *Organization
|
|||
o.FieldseekerURL = func() null.Val[string] { return m.FieldseekerURL }
|
||||
|
||||
ctx := context.Background()
|
||||
if len(m.R.Rodentlocations) > 0 {
|
||||
OrganizationMods.AddExistingRodentlocations(m.R.Rodentlocations...).Apply(ctx, o)
|
||||
}
|
||||
if len(m.R.FieldseekerSyncs) > 0 {
|
||||
OrganizationMods.AddExistingFieldseekerSyncs(m.R.FieldseekerSyncs...).Apply(ctx, o)
|
||||
}
|
||||
|
|
@ -6034,38 +5753,6 @@ func (f *Factory) FromExistingUser(m *models.User) *UserTemplate {
|
|||
return o
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerAerialspraylineMods() {
|
||||
f.baseFieldseekerAerialspraylineMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerAerialspraylineMod(mods ...FieldseekerAerialspraylineMod) {
|
||||
f.baseFieldseekerAerialspraylineMods = append(f.baseFieldseekerAerialspraylineMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerAerialspraysessionMods() {
|
||||
f.baseFieldseekerAerialspraysessionMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerAerialspraysessionMod(mods ...FieldseekerAerialspraysessionMod) {
|
||||
f.baseFieldseekerAerialspraysessionMods = append(f.baseFieldseekerAerialspraysessionMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerBarriersprayMods() {
|
||||
f.baseFieldseekerBarriersprayMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerBarriersprayMod(mods ...FieldseekerBarriersprayMod) {
|
||||
f.baseFieldseekerBarriersprayMods = append(f.baseFieldseekerBarriersprayMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerBarriersprayrouteMods() {
|
||||
f.baseFieldseekerBarriersprayrouteMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerBarriersprayrouteMod(mods ...FieldseekerBarriersprayrouteMod) {
|
||||
f.baseFieldseekerBarriersprayrouteMods = append(f.baseFieldseekerBarriersprayrouteMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerContainerrelateMods() {
|
||||
f.baseFieldseekerContainerrelateMods = nil
|
||||
}
|
||||
|
|
@ -6106,22 +5793,6 @@ func (f *Factory) AddBaseFieldseekerInspectionsampledetailMod(mods ...Fieldseeke
|
|||
f.baseFieldseekerInspectionsampledetailMods = append(f.baseFieldseekerInspectionsampledetailMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerLandingcountMods() {
|
||||
f.baseFieldseekerLandingcountMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerLandingcountMod(mods ...FieldseekerLandingcountMod) {
|
||||
f.baseFieldseekerLandingcountMods = append(f.baseFieldseekerLandingcountMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerLandingcountlocationMods() {
|
||||
f.baseFieldseekerLandingcountlocationMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerLandingcountlocationMod(mods ...FieldseekerLandingcountlocationMod) {
|
||||
f.baseFieldseekerLandingcountlocationMods = append(f.baseFieldseekerLandingcountlocationMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerLinelocationMods() {
|
||||
f.baseFieldseekerLinelocationMods = nil
|
||||
}
|
||||
|
|
@ -6170,14 +5841,6 @@ func (f *Factory) AddBaseFieldseekerPoolMod(mods ...FieldseekerPoolMod) {
|
|||
f.baseFieldseekerPoolMods = append(f.baseFieldseekerPoolMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerPoolbufferMods() {
|
||||
f.baseFieldseekerPoolbufferMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerPoolbufferMod(mods ...FieldseekerPoolbufferMod) {
|
||||
f.baseFieldseekerPoolbufferMods = append(f.baseFieldseekerPoolbufferMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerPooldetailMods() {
|
||||
f.baseFieldseekerPooldetailMods = nil
|
||||
}
|
||||
|
|
@ -6194,14 +5857,6 @@ func (f *Factory) AddBaseFieldseekerProposedtreatmentareaMod(mods ...Fieldseeker
|
|||
f.baseFieldseekerProposedtreatmentareaMods = append(f.baseFieldseekerProposedtreatmentareaMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerQalarvcountMods() {
|
||||
f.baseFieldseekerQalarvcountMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerQalarvcountMod(mods ...FieldseekerQalarvcountMod) {
|
||||
f.baseFieldseekerQalarvcountMods = append(f.baseFieldseekerQalarvcountMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerQamosquitoinspectionMods() {
|
||||
f.baseFieldseekerQamosquitoinspectionMods = nil
|
||||
}
|
||||
|
|
@ -6210,30 +5865,6 @@ func (f *Factory) AddBaseFieldseekerQamosquitoinspectionMod(mods ...FieldseekerQ
|
|||
f.baseFieldseekerQamosquitoinspectionMods = append(f.baseFieldseekerQamosquitoinspectionMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerQaproductobservationMods() {
|
||||
f.baseFieldseekerQaproductobservationMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerQaproductobservationMod(mods ...FieldseekerQaproductobservationMod) {
|
||||
f.baseFieldseekerQaproductobservationMods = append(f.baseFieldseekerQaproductobservationMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerRestrictedareaMods() {
|
||||
f.baseFieldseekerRestrictedareaMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerRestrictedareaMod(mods ...FieldseekerRestrictedareaMod) {
|
||||
f.baseFieldseekerRestrictedareaMods = append(f.baseFieldseekerRestrictedareaMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerRodentinspectionMods() {
|
||||
f.baseFieldseekerRodentinspectionMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerRodentinspectionMod(mods ...FieldseekerRodentinspectionMod) {
|
||||
f.baseFieldseekerRodentinspectionMods = append(f.baseFieldseekerRodentinspectionMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerRodentlocationMods() {
|
||||
f.baseFieldseekerRodentlocationMods = nil
|
||||
}
|
||||
|
|
@ -6290,14 +5921,6 @@ func (f *Factory) AddBaseFieldseekerTimecardMod(mods ...FieldseekerTimecardMod)
|
|||
f.baseFieldseekerTimecardMods = append(f.baseFieldseekerTimecardMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerTracklogMods() {
|
||||
f.baseFieldseekerTracklogMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerTracklogMod(mods ...FieldseekerTracklogMod) {
|
||||
f.baseFieldseekerTracklogMods = append(f.baseFieldseekerTracklogMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerTrapdatumMods() {
|
||||
f.baseFieldseekerTrapdatumMods = nil
|
||||
}
|
||||
|
|
@ -6330,14 +5953,6 @@ func (f *Factory) AddBaseFieldseekerTreatmentareaMod(mods ...FieldseekerTreatmen
|
|||
f.baseFieldseekerTreatmentareaMods = append(f.baseFieldseekerTreatmentareaMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerUlvsprayrouteMods() {
|
||||
f.baseFieldseekerUlvsprayrouteMods = nil
|
||||
}
|
||||
|
||||
func (f *Factory) AddBaseFieldseekerUlvsprayrouteMod(mods ...FieldseekerUlvsprayrouteMod) {
|
||||
f.baseFieldseekerUlvsprayrouteMods = append(f.baseFieldseekerUlvsprayrouteMods, mods...)
|
||||
}
|
||||
|
||||
func (f *Factory) ClearBaseFieldseekerZoneMods() {
|
||||
f.baseFieldseekerZoneMods = nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerAerialspraylineMod interface {
|
||||
Apply(context.Context, *FieldseekerAerialspraylineTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerAerialspraylineModFunc func(context.Context, *FieldseekerAerialspraylineTemplate)
|
||||
|
||||
func (f FieldseekerAerialspraylineModFunc) Apply(ctx context.Context, n *FieldseekerAerialspraylineTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerAerialspraylineModSlice []FieldseekerAerialspraylineMod
|
||||
|
||||
func (mods FieldseekerAerialspraylineModSlice) Apply(ctx context.Context, n *FieldseekerAerialspraylineTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerAerialspraylineTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerAerialspraylineTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerAerialspraylineTemplate
|
||||
func (o *FieldseekerAerialspraylineTemplate) Apply(ctx context.Context, mods ...FieldseekerAerialspraylineMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerAerialsprayline
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerAerialspraylineTemplate) setModelRels(o *models.FieldseekerAerialsprayline) {}
|
||||
|
||||
// Build returns an *models.FieldseekerAerialsprayline
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerAerialspraylineTemplate.Create
|
||||
func (o FieldseekerAerialspraylineTemplate) Build() *models.FieldseekerAerialsprayline {
|
||||
m := &models.FieldseekerAerialsprayline{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerAerialspraylineSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerAerialspraylineTemplate.CreateMany
|
||||
func (o FieldseekerAerialspraylineTemplate) BuildMany(number int) models.FieldseekerAerialspraylineSlice {
|
||||
m := make(models.FieldseekerAerialspraylineSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerAerialsprayline has methods that act as mods for the FieldseekerAerialspraylineTemplate
|
||||
var FieldseekerAerialspraylineMods fieldseekerAerialspraylineMods
|
||||
|
||||
type fieldseekerAerialspraylineMods struct{}
|
||||
|
||||
func (m fieldseekerAerialspraylineMods) RandomizeAllColumns(f *faker.Faker) FieldseekerAerialspraylineMod {
|
||||
return FieldseekerAerialspraylineModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerAerialspraylineMods) WithParentsCascading() FieldseekerAerialspraylineMod {
|
||||
return FieldseekerAerialspraylineModFunc(func(ctx context.Context, o *FieldseekerAerialspraylineTemplate) {
|
||||
if isDone, _ := fieldseekerAerialspraylineWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerAerialspraylineWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerAerialspraysessionMod interface {
|
||||
Apply(context.Context, *FieldseekerAerialspraysessionTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerAerialspraysessionModFunc func(context.Context, *FieldseekerAerialspraysessionTemplate)
|
||||
|
||||
func (f FieldseekerAerialspraysessionModFunc) Apply(ctx context.Context, n *FieldseekerAerialspraysessionTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerAerialspraysessionModSlice []FieldseekerAerialspraysessionMod
|
||||
|
||||
func (mods FieldseekerAerialspraysessionModSlice) Apply(ctx context.Context, n *FieldseekerAerialspraysessionTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerAerialspraysessionTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerAerialspraysessionTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerAerialspraysessionTemplate
|
||||
func (o *FieldseekerAerialspraysessionTemplate) Apply(ctx context.Context, mods ...FieldseekerAerialspraysessionMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerAerialspraysession
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerAerialspraysessionTemplate) setModelRels(o *models.FieldseekerAerialspraysession) {
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerAerialspraysession
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerAerialspraysessionTemplate.Create
|
||||
func (o FieldseekerAerialspraysessionTemplate) Build() *models.FieldseekerAerialspraysession {
|
||||
m := &models.FieldseekerAerialspraysession{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerAerialspraysessionSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerAerialspraysessionTemplate.CreateMany
|
||||
func (o FieldseekerAerialspraysessionTemplate) BuildMany(number int) models.FieldseekerAerialspraysessionSlice {
|
||||
m := make(models.FieldseekerAerialspraysessionSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerAerialspraysession has methods that act as mods for the FieldseekerAerialspraysessionTemplate
|
||||
var FieldseekerAerialspraysessionMods fieldseekerAerialspraysessionMods
|
||||
|
||||
type fieldseekerAerialspraysessionMods struct{}
|
||||
|
||||
func (m fieldseekerAerialspraysessionMods) RandomizeAllColumns(f *faker.Faker) FieldseekerAerialspraysessionMod {
|
||||
return FieldseekerAerialspraysessionModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerAerialspraysessionMods) WithParentsCascading() FieldseekerAerialspraysessionMod {
|
||||
return FieldseekerAerialspraysessionModFunc(func(ctx context.Context, o *FieldseekerAerialspraysessionTemplate) {
|
||||
if isDone, _ := fieldseekerAerialspraysessionWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerAerialspraysessionWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerBarriersprayMod interface {
|
||||
Apply(context.Context, *FieldseekerBarriersprayTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerBarriersprayModFunc func(context.Context, *FieldseekerBarriersprayTemplate)
|
||||
|
||||
func (f FieldseekerBarriersprayModFunc) Apply(ctx context.Context, n *FieldseekerBarriersprayTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerBarriersprayModSlice []FieldseekerBarriersprayMod
|
||||
|
||||
func (mods FieldseekerBarriersprayModSlice) Apply(ctx context.Context, n *FieldseekerBarriersprayTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerBarriersprayTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerBarriersprayTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerBarriersprayTemplate
|
||||
func (o *FieldseekerBarriersprayTemplate) Apply(ctx context.Context, mods ...FieldseekerBarriersprayMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerBarrierspray
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerBarriersprayTemplate) setModelRels(o *models.FieldseekerBarrierspray) {}
|
||||
|
||||
// Build returns an *models.FieldseekerBarrierspray
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerBarriersprayTemplate.Create
|
||||
func (o FieldseekerBarriersprayTemplate) Build() *models.FieldseekerBarrierspray {
|
||||
m := &models.FieldseekerBarrierspray{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerBarrierspraySlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerBarriersprayTemplate.CreateMany
|
||||
func (o FieldseekerBarriersprayTemplate) BuildMany(number int) models.FieldseekerBarrierspraySlice {
|
||||
m := make(models.FieldseekerBarrierspraySlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerBarrierspray has methods that act as mods for the FieldseekerBarriersprayTemplate
|
||||
var FieldseekerBarriersprayMods fieldseekerBarriersprayMods
|
||||
|
||||
type fieldseekerBarriersprayMods struct{}
|
||||
|
||||
func (m fieldseekerBarriersprayMods) RandomizeAllColumns(f *faker.Faker) FieldseekerBarriersprayMod {
|
||||
return FieldseekerBarriersprayModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerBarriersprayMods) WithParentsCascading() FieldseekerBarriersprayMod {
|
||||
return FieldseekerBarriersprayModFunc(func(ctx context.Context, o *FieldseekerBarriersprayTemplate) {
|
||||
if isDone, _ := fieldseekerBarriersprayWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerBarriersprayWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerBarriersprayrouteMod interface {
|
||||
Apply(context.Context, *FieldseekerBarriersprayrouteTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerBarriersprayrouteModFunc func(context.Context, *FieldseekerBarriersprayrouteTemplate)
|
||||
|
||||
func (f FieldseekerBarriersprayrouteModFunc) Apply(ctx context.Context, n *FieldseekerBarriersprayrouteTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerBarriersprayrouteModSlice []FieldseekerBarriersprayrouteMod
|
||||
|
||||
func (mods FieldseekerBarriersprayrouteModSlice) Apply(ctx context.Context, n *FieldseekerBarriersprayrouteTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerBarriersprayrouteTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerBarriersprayrouteTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerBarriersprayrouteTemplate
|
||||
func (o *FieldseekerBarriersprayrouteTemplate) Apply(ctx context.Context, mods ...FieldseekerBarriersprayrouteMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerBarriersprayroute
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerBarriersprayrouteTemplate) setModelRels(o *models.FieldseekerBarriersprayroute) {}
|
||||
|
||||
// Build returns an *models.FieldseekerBarriersprayroute
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerBarriersprayrouteTemplate.Create
|
||||
func (o FieldseekerBarriersprayrouteTemplate) Build() *models.FieldseekerBarriersprayroute {
|
||||
m := &models.FieldseekerBarriersprayroute{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerBarriersprayrouteSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerBarriersprayrouteTemplate.CreateMany
|
||||
func (o FieldseekerBarriersprayrouteTemplate) BuildMany(number int) models.FieldseekerBarriersprayrouteSlice {
|
||||
m := make(models.FieldseekerBarriersprayrouteSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerBarriersprayroute has methods that act as mods for the FieldseekerBarriersprayrouteTemplate
|
||||
var FieldseekerBarriersprayrouteMods fieldseekerBarriersprayrouteMods
|
||||
|
||||
type fieldseekerBarriersprayrouteMods struct{}
|
||||
|
||||
func (m fieldseekerBarriersprayrouteMods) RandomizeAllColumns(f *faker.Faker) FieldseekerBarriersprayrouteMod {
|
||||
return FieldseekerBarriersprayrouteModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerBarriersprayrouteMods) WithParentsCascading() FieldseekerBarriersprayrouteMod {
|
||||
return FieldseekerBarriersprayrouteModFunc(func(ctx context.Context, o *FieldseekerBarriersprayrouteTemplate) {
|
||||
if isDone, _ := fieldseekerBarriersprayrouteWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerBarriersprayrouteWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -53,6 +53,7 @@ type FieldseekerContainerrelateTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -131,6 +132,10 @@ func (o FieldseekerContainerrelateTemplate) BuildSetter() *models.FieldseekerCon
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -195,6 +200,9 @@ func (o FieldseekerContainerrelateTemplate) Build() *models.FieldseekerContainer
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -329,6 +337,7 @@ func (m fieldseekerContainerrelateMods) RandomizeAllColumns(f *faker.Faker) Fiel
|
|||
FieldseekerContainerrelateMods.RandomCreator(f),
|
||||
FieldseekerContainerrelateMods.RandomEditdate(f),
|
||||
FieldseekerContainerrelateMods.RandomEditor(f),
|
||||
FieldseekerContainerrelateMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1052,6 +1061,37 @@ func (m fieldseekerContainerrelateMods) RandomEditorNotNull(f *faker.Faker) Fiel
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerContainerrelateMods) Version(val int32) FieldseekerContainerrelateMod {
|
||||
return FieldseekerContainerrelateModFunc(func(_ context.Context, o *FieldseekerContainerrelateTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerContainerrelateMods) VersionFunc(f func() int32) FieldseekerContainerrelateMod {
|
||||
return FieldseekerContainerrelateModFunc(func(_ context.Context, o *FieldseekerContainerrelateTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerContainerrelateMods) UnsetVersion() FieldseekerContainerrelateMod {
|
||||
return FieldseekerContainerrelateModFunc(func(_ context.Context, o *FieldseekerContainerrelateTemplate) {
|
||||
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 fieldseekerContainerrelateMods) RandomVersion(f *faker.Faker) FieldseekerContainerrelateMod {
|
||||
return FieldseekerContainerrelateModFunc(func(_ context.Context, o *FieldseekerContainerrelateTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerContainerrelateMods) WithParentsCascading() FieldseekerContainerrelateMod {
|
||||
return FieldseekerContainerrelateModFunc(func(ctx context.Context, o *FieldseekerContainerrelateTemplate) {
|
||||
if isDone, _ := fieldseekerContainerrelateWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -50,6 +50,7 @@ type FieldseekerFieldscoutinglogTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -116,6 +117,10 @@ func (o FieldseekerFieldscoutinglogTemplate) BuildSetter() *models.FieldseekerFi
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -171,6 +176,9 @@ func (o FieldseekerFieldscoutinglogTemplate) Build() *models.FieldseekerFieldsco
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -302,6 +310,7 @@ func (m fieldseekerFieldscoutinglogMods) RandomizeAllColumns(f *faker.Faker) Fie
|
|||
FieldseekerFieldscoutinglogMods.RandomCreator(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomEditdate(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomEditor(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -866,6 +875,37 @@ func (m fieldseekerFieldscoutinglogMods) RandomEditorNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Version(val int32) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) VersionFunc(f func() int32) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetVersion() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
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 fieldseekerFieldscoutinglogMods) RandomVersion(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerFieldscoutinglogMods) WithParentsCascading() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(ctx context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
if isDone, _ := fieldseekerFieldscoutinglogWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -51,6 +51,7 @@ type FieldseekerHabitatrelateTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -121,6 +122,10 @@ func (o FieldseekerHabitatrelateTemplate) BuildSetter() *models.FieldseekerHabit
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -179,6 +184,9 @@ func (o FieldseekerHabitatrelateTemplate) Build() *models.FieldseekerHabitatrela
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -311,6 +319,7 @@ func (m fieldseekerHabitatrelateMods) RandomizeAllColumns(f *faker.Faker) Fields
|
|||
FieldseekerHabitatrelateMods.RandomCreator(f),
|
||||
FieldseekerHabitatrelateMods.RandomEditdate(f),
|
||||
FieldseekerHabitatrelateMods.RandomEditor(f),
|
||||
FieldseekerHabitatrelateMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -930,6 +939,37 @@ func (m fieldseekerHabitatrelateMods) RandomEditorNotNull(f *faker.Faker) Fields
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Version(val int32) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) VersionFunc(f func() int32) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetVersion() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
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 fieldseekerHabitatrelateMods) RandomVersion(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerHabitatrelateMods) WithParentsCascading() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(ctx context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
if isDone, _ := fieldseekerHabitatrelateWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -53,6 +53,7 @@ type FieldseekerInspectionsampleTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -131,6 +132,10 @@ func (o FieldseekerInspectionsampleTemplate) BuildSetter() *models.FieldseekerIn
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -195,6 +200,9 @@ func (o FieldseekerInspectionsampleTemplate) Build() *models.FieldseekerInspecti
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -329,6 +337,7 @@ func (m fieldseekerInspectionsampleMods) RandomizeAllColumns(f *faker.Faker) Fie
|
|||
FieldseekerInspectionsampleMods.RandomCreator(f),
|
||||
FieldseekerInspectionsampleMods.RandomEditdate(f),
|
||||
FieldseekerInspectionsampleMods.RandomEditor(f),
|
||||
FieldseekerInspectionsampleMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1052,6 +1061,37 @@ func (m fieldseekerInspectionsampleMods) RandomEditorNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerInspectionsampleMods) Version(val int32) FieldseekerInspectionsampleMod {
|
||||
return FieldseekerInspectionsampleModFunc(func(_ context.Context, o *FieldseekerInspectionsampleTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerInspectionsampleMods) VersionFunc(f func() int32) FieldseekerInspectionsampleMod {
|
||||
return FieldseekerInspectionsampleModFunc(func(_ context.Context, o *FieldseekerInspectionsampleTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerInspectionsampleMods) UnsetVersion() FieldseekerInspectionsampleMod {
|
||||
return FieldseekerInspectionsampleModFunc(func(_ context.Context, o *FieldseekerInspectionsampleTemplate) {
|
||||
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 fieldseekerInspectionsampleMods) RandomVersion(f *faker.Faker) FieldseekerInspectionsampleMod {
|
||||
return FieldseekerInspectionsampleModFunc(func(_ context.Context, o *FieldseekerInspectionsampleTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerInspectionsampleMods) WithParentsCascading() FieldseekerInspectionsampleMod {
|
||||
return FieldseekerInspectionsampleModFunc(func(ctx context.Context, o *FieldseekerInspectionsampleTemplate) {
|
||||
if isDone, _ := fieldseekerInspectionsampleWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -64,6 +64,7 @@ type FieldseekerInspectionsampledetailTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -187,6 +188,10 @@ func (o FieldseekerInspectionsampledetailTemplate) BuildSetter() *models.Fieldse
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -284,6 +289,9 @@ func (o FieldseekerInspectionsampledetailTemplate) Build() *models.FieldseekerIn
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -429,6 +437,7 @@ func (m fieldseekerInspectionsampledetailMods) RandomizeAllColumns(f *faker.Fake
|
|||
FieldseekerInspectionsampledetailMods.RandomCreator(f),
|
||||
FieldseekerInspectionsampledetailMods.RandomEditdate(f),
|
||||
FieldseekerInspectionsampledetailMods.RandomEditor(f),
|
||||
FieldseekerInspectionsampledetailMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1735,6 +1744,37 @@ func (m fieldseekerInspectionsampledetailMods) RandomEditorNotNull(f *faker.Fake
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerInspectionsampledetailMods) Version(val int32) FieldseekerInspectionsampledetailMod {
|
||||
return FieldseekerInspectionsampledetailModFunc(func(_ context.Context, o *FieldseekerInspectionsampledetailTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerInspectionsampledetailMods) VersionFunc(f func() int32) FieldseekerInspectionsampledetailMod {
|
||||
return FieldseekerInspectionsampledetailModFunc(func(_ context.Context, o *FieldseekerInspectionsampledetailTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerInspectionsampledetailMods) UnsetVersion() FieldseekerInspectionsampledetailMod {
|
||||
return FieldseekerInspectionsampledetailModFunc(func(_ context.Context, o *FieldseekerInspectionsampledetailTemplate) {
|
||||
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 fieldseekerInspectionsampledetailMods) RandomVersion(f *faker.Faker) FieldseekerInspectionsampledetailMod {
|
||||
return FieldseekerInspectionsampledetailModFunc(func(_ context.Context, o *FieldseekerInspectionsampledetailTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerInspectionsampledetailMods) WithParentsCascading() FieldseekerInspectionsampledetailMod {
|
||||
return FieldseekerInspectionsampledetailModFunc(func(ctx context.Context, o *FieldseekerInspectionsampledetailTemplate) {
|
||||
if isDone, _ := fieldseekerInspectionsampledetailWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerLandingcountMod interface {
|
||||
Apply(context.Context, *FieldseekerLandingcountTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerLandingcountModFunc func(context.Context, *FieldseekerLandingcountTemplate)
|
||||
|
||||
func (f FieldseekerLandingcountModFunc) Apply(ctx context.Context, n *FieldseekerLandingcountTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerLandingcountModSlice []FieldseekerLandingcountMod
|
||||
|
||||
func (mods FieldseekerLandingcountModSlice) Apply(ctx context.Context, n *FieldseekerLandingcountTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerLandingcountTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerLandingcountTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerLandingcountTemplate
|
||||
func (o *FieldseekerLandingcountTemplate) Apply(ctx context.Context, mods ...FieldseekerLandingcountMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerLandingcount
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerLandingcountTemplate) setModelRels(o *models.FieldseekerLandingcount) {}
|
||||
|
||||
// Build returns an *models.FieldseekerLandingcount
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLandingcountTemplate.Create
|
||||
func (o FieldseekerLandingcountTemplate) Build() *models.FieldseekerLandingcount {
|
||||
m := &models.FieldseekerLandingcount{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerLandingcountSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLandingcountTemplate.CreateMany
|
||||
func (o FieldseekerLandingcountTemplate) BuildMany(number int) models.FieldseekerLandingcountSlice {
|
||||
m := make(models.FieldseekerLandingcountSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerLandingcount has methods that act as mods for the FieldseekerLandingcountTemplate
|
||||
var FieldseekerLandingcountMods fieldseekerLandingcountMods
|
||||
|
||||
type fieldseekerLandingcountMods struct{}
|
||||
|
||||
func (m fieldseekerLandingcountMods) RandomizeAllColumns(f *faker.Faker) FieldseekerLandingcountMod {
|
||||
return FieldseekerLandingcountModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerLandingcountMods) WithParentsCascading() FieldseekerLandingcountMod {
|
||||
return FieldseekerLandingcountModFunc(func(ctx context.Context, o *FieldseekerLandingcountTemplate) {
|
||||
if isDone, _ := fieldseekerLandingcountWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerLandingcountWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerLandingcountlocationMod interface {
|
||||
Apply(context.Context, *FieldseekerLandingcountlocationTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerLandingcountlocationModFunc func(context.Context, *FieldseekerLandingcountlocationTemplate)
|
||||
|
||||
func (f FieldseekerLandingcountlocationModFunc) Apply(ctx context.Context, n *FieldseekerLandingcountlocationTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerLandingcountlocationModSlice []FieldseekerLandingcountlocationMod
|
||||
|
||||
func (mods FieldseekerLandingcountlocationModSlice) Apply(ctx context.Context, n *FieldseekerLandingcountlocationTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerLandingcountlocationTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerLandingcountlocationTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerLandingcountlocationTemplate
|
||||
func (o *FieldseekerLandingcountlocationTemplate) Apply(ctx context.Context, mods ...FieldseekerLandingcountlocationMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerLandingcountlocation
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerLandingcountlocationTemplate) setModelRels(o *models.FieldseekerLandingcountlocation) {
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerLandingcountlocation
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLandingcountlocationTemplate.Create
|
||||
func (o FieldseekerLandingcountlocationTemplate) Build() *models.FieldseekerLandingcountlocation {
|
||||
m := &models.FieldseekerLandingcountlocation{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerLandingcountlocationSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLandingcountlocationTemplate.CreateMany
|
||||
func (o FieldseekerLandingcountlocationTemplate) BuildMany(number int) models.FieldseekerLandingcountlocationSlice {
|
||||
m := make(models.FieldseekerLandingcountlocationSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerLandingcountlocation has methods that act as mods for the FieldseekerLandingcountlocationTemplate
|
||||
var FieldseekerLandingcountlocationMods fieldseekerLandingcountlocationMods
|
||||
|
||||
type fieldseekerLandingcountlocationMods struct{}
|
||||
|
||||
func (m fieldseekerLandingcountlocationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerLandingcountlocationMod {
|
||||
return FieldseekerLandingcountlocationModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerLandingcountlocationMods) WithParentsCascading() FieldseekerLandingcountlocationMod {
|
||||
return FieldseekerLandingcountlocationModFunc(func(ctx context.Context, o *FieldseekerLandingcountlocationTemplate) {
|
||||
if isDone, _ := fieldseekerLandingcountlocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerLandingcountlocationWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -87,6 +87,7 @@ type FieldseekerLinelocationTemplate struct {
|
|||
Editor func() null.Val[string]
|
||||
Jurisdiction func() null.Val[string]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -301,6 +302,10 @@ func (o FieldseekerLinelocationTemplate) BuildSetter() *models.FieldseekerLinelo
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -467,6 +472,9 @@ func (o FieldseekerLinelocationTemplate) Build() *models.FieldseekerLinelocation
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -635,6 +643,7 @@ func (m fieldseekerLinelocationMods) RandomizeAllColumns(f *faker.Faker) Fieldse
|
|||
FieldseekerLinelocationMods.RandomEditor(f),
|
||||
FieldseekerLinelocationMods.RandomJurisdiction(f),
|
||||
FieldseekerLinelocationMods.RandomShapeLength(f),
|
||||
FieldseekerLinelocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3164,6 +3173,37 @@ func (m fieldseekerLinelocationMods) RandomShapeLengthNotNull(f *faker.Faker) Fi
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLinelocationMods) Version(val int32) FieldseekerLinelocationMod {
|
||||
return FieldseekerLinelocationModFunc(func(_ context.Context, o *FieldseekerLinelocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLinelocationMods) VersionFunc(f func() int32) FieldseekerLinelocationMod {
|
||||
return FieldseekerLinelocationModFunc(func(_ context.Context, o *FieldseekerLinelocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLinelocationMods) UnsetVersion() FieldseekerLinelocationMod {
|
||||
return FieldseekerLinelocationModFunc(func(_ context.Context, o *FieldseekerLinelocationTemplate) {
|
||||
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 fieldseekerLinelocationMods) RandomVersion(f *faker.Faker) FieldseekerLinelocationMod {
|
||||
return FieldseekerLinelocationModFunc(func(_ context.Context, o *FieldseekerLinelocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerLinelocationMods) WithParentsCascading() FieldseekerLinelocationMod {
|
||||
return FieldseekerLinelocationModFunc(func(ctx context.Context, o *FieldseekerLinelocationTemplate) {
|
||||
if isDone, _ := fieldseekerLinelocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -50,6 +50,7 @@ type FieldseekerLocationtrackingTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -120,6 +121,10 @@ func (o FieldseekerLocationtrackingTemplate) BuildSetter() *models.FieldseekerLo
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -178,6 +183,9 @@ func (o FieldseekerLocationtrackingTemplate) Build() *models.FieldseekerLocation
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -310,6 +318,7 @@ func (m fieldseekerLocationtrackingMods) RandomizeAllColumns(f *faker.Faker) Fie
|
|||
FieldseekerLocationtrackingMods.RandomCreator(f),
|
||||
FieldseekerLocationtrackingMods.RandomEditdate(f),
|
||||
FieldseekerLocationtrackingMods.RandomEditor(f),
|
||||
FieldseekerLocationtrackingMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -927,6 +936,37 @@ func (m fieldseekerLocationtrackingMods) RandomEditorNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Version(val int32) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) VersionFunc(f func() int32) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetVersion() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
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 fieldseekerLocationtrackingMods) RandomVersion(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerLocationtrackingMods) WithParentsCascading() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(ctx context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
if isDone, _ := fieldseekerLocationtrackingWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -96,6 +96,7 @@ type FieldseekerMosquitoinspectionTemplate struct {
|
|||
Vmcomments func() null.Val[string]
|
||||
Adminaction func() null.Val[enums.FieldseekerMosquitoinspectionMosquitoinspectionAdminactionB74ae1bbC98B]
|
||||
Ptaid func() null.Val[uuid.UUID]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -347,6 +348,10 @@ func (o FieldseekerMosquitoinspectionTemplate) BuildSetter() *models.Fieldseeker
|
|||
val := o.Ptaid()
|
||||
m.Ptaid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -540,6 +545,9 @@ func (o FieldseekerMosquitoinspectionTemplate) Build() *models.FieldseekerMosqui
|
|||
if o.Ptaid != nil {
|
||||
m.Ptaid = o.Ptaid()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -717,6 +725,7 @@ func (m fieldseekerMosquitoinspectionMods) RandomizeAllColumns(f *faker.Faker) F
|
|||
FieldseekerMosquitoinspectionMods.RandomVmcomments(f),
|
||||
FieldseekerMosquitoinspectionMods.RandomAdminaction(f),
|
||||
FieldseekerMosquitoinspectionMods.RandomPtaid(f),
|
||||
FieldseekerMosquitoinspectionMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3727,6 +3736,37 @@ func (m fieldseekerMosquitoinspectionMods) RandomPtaidNotNull(f *faker.Faker) Fi
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerMosquitoinspectionMods) Version(val int32) FieldseekerMosquitoinspectionMod {
|
||||
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerMosquitoinspectionMods) VersionFunc(f func() int32) FieldseekerMosquitoinspectionMod {
|
||||
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerMosquitoinspectionMods) UnsetVersion() FieldseekerMosquitoinspectionMod {
|
||||
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
|
||||
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 fieldseekerMosquitoinspectionMods) RandomVersion(f *faker.Faker) FieldseekerMosquitoinspectionMod {
|
||||
return FieldseekerMosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerMosquitoinspectionTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerMosquitoinspectionMods) WithParentsCascading() FieldseekerMosquitoinspectionMod {
|
||||
return FieldseekerMosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerMosquitoinspectionTemplate) {
|
||||
if isDone, _ := fieldseekerMosquitoinspectionWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -83,6 +83,7 @@ type FieldseekerPointlocationTemplate struct {
|
|||
DeactivateReason func() null.Val[enums.FieldseekerPointlocationPointlocationDeactivateReasonDD303085B33C489]
|
||||
Scalarpriority func() null.Val[int32]
|
||||
Sourcestatus func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -281,6 +282,10 @@ func (o FieldseekerPointlocationTemplate) BuildSetter() *models.FieldseekerPoint
|
|||
val := o.Sourcestatus()
|
||||
m.Sourcestatus = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -435,6 +440,9 @@ func (o FieldseekerPointlocationTemplate) Build() *models.FieldseekerPointlocati
|
|||
if o.Sourcestatus != nil {
|
||||
m.Sourcestatus = o.Sourcestatus()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -599,6 +607,7 @@ func (m fieldseekerPointlocationMods) RandomizeAllColumns(f *faker.Faker) Fields
|
|||
FieldseekerPointlocationMods.RandomDeactivateReason(f),
|
||||
FieldseekerPointlocationMods.RandomScalarpriority(f),
|
||||
FieldseekerPointlocationMods.RandomSourcestatus(f),
|
||||
FieldseekerPointlocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2920,6 +2929,37 @@ func (m fieldseekerPointlocationMods) RandomSourcestatusNotNull(f *faker.Faker)
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerPointlocationMods) Version(val int32) FieldseekerPointlocationMod {
|
||||
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerPointlocationMods) VersionFunc(f func() int32) FieldseekerPointlocationMod {
|
||||
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerPointlocationMods) UnsetVersion() FieldseekerPointlocationMod {
|
||||
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
||||
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 fieldseekerPointlocationMods) RandomVersion(f *faker.Faker) FieldseekerPointlocationMod {
|
||||
return FieldseekerPointlocationModFunc(func(_ context.Context, o *FieldseekerPointlocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerPointlocationMods) WithParentsCascading() FieldseekerPointlocationMod {
|
||||
return FieldseekerPointlocationModFunc(func(ctx context.Context, o *FieldseekerPointlocationTemplate) {
|
||||
if isDone, _ := fieldseekerPointlocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -81,6 +81,7 @@ type FieldseekerPolygonlocationTemplate struct {
|
|||
Jurisdiction func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -271,6 +272,10 @@ func (o FieldseekerPolygonlocationTemplate) BuildSetter() *models.FieldseekerPol
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -419,6 +424,9 @@ func (o FieldseekerPolygonlocationTemplate) Build() *models.FieldseekerPolygonlo
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -581,6 +589,7 @@ func (m fieldseekerPolygonlocationMods) RandomizeAllColumns(f *faker.Faker) Fiel
|
|||
FieldseekerPolygonlocationMods.RandomJurisdiction(f),
|
||||
FieldseekerPolygonlocationMods.RandomShapeArea(f),
|
||||
FieldseekerPolygonlocationMods.RandomShapeLength(f),
|
||||
FieldseekerPolygonlocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2794,6 +2803,37 @@ func (m fieldseekerPolygonlocationMods) RandomShapeLengthNotNull(f *faker.Faker)
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerPolygonlocationMods) Version(val int32) FieldseekerPolygonlocationMod {
|
||||
return FieldseekerPolygonlocationModFunc(func(_ context.Context, o *FieldseekerPolygonlocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerPolygonlocationMods) VersionFunc(f func() int32) FieldseekerPolygonlocationMod {
|
||||
return FieldseekerPolygonlocationModFunc(func(_ context.Context, o *FieldseekerPolygonlocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerPolygonlocationMods) UnsetVersion() FieldseekerPolygonlocationMod {
|
||||
return FieldseekerPolygonlocationModFunc(func(_ context.Context, o *FieldseekerPolygonlocationTemplate) {
|
||||
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 fieldseekerPolygonlocationMods) RandomVersion(f *faker.Faker) FieldseekerPolygonlocationMod {
|
||||
return FieldseekerPolygonlocationModFunc(func(_ context.Context, o *FieldseekerPolygonlocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerPolygonlocationMods) WithParentsCascading() FieldseekerPolygonlocationMod {
|
||||
return FieldseekerPolygonlocationModFunc(func(ctx context.Context, o *FieldseekerPolygonlocationTemplate) {
|
||||
if isDone, _ := fieldseekerPolygonlocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -67,6 +67,7 @@ type FieldseekerPoolTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -201,6 +202,10 @@ func (o FieldseekerPoolTemplate) BuildSetter() *models.FieldseekerPoolSetter {
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -307,6 +312,9 @@ func (o FieldseekerPoolTemplate) Build() *models.FieldseekerPool {
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -455,6 +463,7 @@ func (m fieldseekerPoolMods) RandomizeAllColumns(f *faker.Faker) FieldseekerPool
|
|||
FieldseekerPoolMods.RandomCreator(f),
|
||||
FieldseekerPoolMods.RandomEditdate(f),
|
||||
FieldseekerPoolMods.RandomEditor(f),
|
||||
FieldseekerPoolMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1922,6 +1931,37 @@ func (m fieldseekerPoolMods) RandomEditorNotNull(f *faker.Faker) FieldseekerPool
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerPoolMods) Version(val int32) FieldseekerPoolMod {
|
||||
return FieldseekerPoolModFunc(func(_ context.Context, o *FieldseekerPoolTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerPoolMods) VersionFunc(f func() int32) FieldseekerPoolMod {
|
||||
return FieldseekerPoolModFunc(func(_ context.Context, o *FieldseekerPoolTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerPoolMods) UnsetVersion() FieldseekerPoolMod {
|
||||
return FieldseekerPoolModFunc(func(_ context.Context, o *FieldseekerPoolTemplate) {
|
||||
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 fieldseekerPoolMods) RandomVersion(f *faker.Faker) FieldseekerPoolMod {
|
||||
return FieldseekerPoolModFunc(func(_ context.Context, o *FieldseekerPoolTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerPoolMods) WithParentsCascading() FieldseekerPoolMod {
|
||||
return FieldseekerPoolModFunc(func(ctx context.Context, o *FieldseekerPoolTemplate) {
|
||||
if isDone, _ := fieldseekerPoolWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerPoolbufferMod interface {
|
||||
Apply(context.Context, *FieldseekerPoolbufferTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerPoolbufferModFunc func(context.Context, *FieldseekerPoolbufferTemplate)
|
||||
|
||||
func (f FieldseekerPoolbufferModFunc) Apply(ctx context.Context, n *FieldseekerPoolbufferTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerPoolbufferModSlice []FieldseekerPoolbufferMod
|
||||
|
||||
func (mods FieldseekerPoolbufferModSlice) Apply(ctx context.Context, n *FieldseekerPoolbufferTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerPoolbufferTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerPoolbufferTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerPoolbufferTemplate
|
||||
func (o *FieldseekerPoolbufferTemplate) Apply(ctx context.Context, mods ...FieldseekerPoolbufferMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerPoolbuffer
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerPoolbufferTemplate) setModelRels(o *models.FieldseekerPoolbuffer) {}
|
||||
|
||||
// Build returns an *models.FieldseekerPoolbuffer
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerPoolbufferTemplate.Create
|
||||
func (o FieldseekerPoolbufferTemplate) Build() *models.FieldseekerPoolbuffer {
|
||||
m := &models.FieldseekerPoolbuffer{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerPoolbufferSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerPoolbufferTemplate.CreateMany
|
||||
func (o FieldseekerPoolbufferTemplate) BuildMany(number int) models.FieldseekerPoolbufferSlice {
|
||||
m := make(models.FieldseekerPoolbufferSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerPoolbuffer has methods that act as mods for the FieldseekerPoolbufferTemplate
|
||||
var FieldseekerPoolbufferMods fieldseekerPoolbufferMods
|
||||
|
||||
type fieldseekerPoolbufferMods struct{}
|
||||
|
||||
func (m fieldseekerPoolbufferMods) RandomizeAllColumns(f *faker.Faker) FieldseekerPoolbufferMod {
|
||||
return FieldseekerPoolbufferModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerPoolbufferMods) WithParentsCascading() FieldseekerPoolbufferMod {
|
||||
return FieldseekerPoolbufferModFunc(func(ctx context.Context, o *FieldseekerPoolbufferTemplate) {
|
||||
if isDone, _ := fieldseekerPoolbufferWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerPoolbufferWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -52,6 +52,7 @@ type FieldseekerPooldetailTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -130,6 +131,10 @@ func (o FieldseekerPooldetailTemplate) BuildSetter() *models.FieldseekerPooldeta
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -194,6 +199,9 @@ func (o FieldseekerPooldetailTemplate) Build() *models.FieldseekerPooldetail {
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -328,6 +336,7 @@ func (m fieldseekerPooldetailMods) RandomizeAllColumns(f *faker.Faker) Fieldseek
|
|||
FieldseekerPooldetailMods.RandomCreator(f),
|
||||
FieldseekerPooldetailMods.RandomEditdate(f),
|
||||
FieldseekerPooldetailMods.RandomEditor(f),
|
||||
FieldseekerPooldetailMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1051,6 +1060,37 @@ func (m fieldseekerPooldetailMods) RandomEditorNotNull(f *faker.Faker) Fieldseek
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerPooldetailMods) Version(val int32) FieldseekerPooldetailMod {
|
||||
return FieldseekerPooldetailModFunc(func(_ context.Context, o *FieldseekerPooldetailTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerPooldetailMods) VersionFunc(f func() int32) FieldseekerPooldetailMod {
|
||||
return FieldseekerPooldetailModFunc(func(_ context.Context, o *FieldseekerPooldetailTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerPooldetailMods) UnsetVersion() FieldseekerPooldetailMod {
|
||||
return FieldseekerPooldetailModFunc(func(_ context.Context, o *FieldseekerPooldetailTemplate) {
|
||||
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 fieldseekerPooldetailMods) RandomVersion(f *faker.Faker) FieldseekerPooldetailMod {
|
||||
return FieldseekerPooldetailModFunc(func(_ context.Context, o *FieldseekerPooldetailTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerPooldetailMods) WithParentsCascading() FieldseekerPooldetailMod {
|
||||
return FieldseekerPooldetailModFunc(func(ctx context.Context, o *FieldseekerPooldetailTemplate) {
|
||||
if isDone, _ := fieldseekerPooldetailWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -72,6 +72,7 @@ type FieldseekerProposedtreatmentareaTemplate struct {
|
|||
Targetspecies func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -227,6 +228,10 @@ func (o FieldseekerProposedtreatmentareaTemplate) BuildSetter() *models.Fieldsee
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -348,6 +353,9 @@ func (o FieldseekerProposedtreatmentareaTemplate) Build() *models.FieldseekerPro
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -501,6 +509,7 @@ func (m fieldseekerProposedtreatmentareaMods) RandomizeAllColumns(f *faker.Faker
|
|||
FieldseekerProposedtreatmentareaMods.RandomTargetspecies(f),
|
||||
FieldseekerProposedtreatmentareaMods.RandomShapeArea(f),
|
||||
FieldseekerProposedtreatmentareaMods.RandomShapeLength(f),
|
||||
FieldseekerProposedtreatmentareaMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2231,6 +2240,37 @@ func (m fieldseekerProposedtreatmentareaMods) RandomShapeLengthNotNull(f *faker.
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerProposedtreatmentareaMods) Version(val int32) FieldseekerProposedtreatmentareaMod {
|
||||
return FieldseekerProposedtreatmentareaModFunc(func(_ context.Context, o *FieldseekerProposedtreatmentareaTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerProposedtreatmentareaMods) VersionFunc(f func() int32) FieldseekerProposedtreatmentareaMod {
|
||||
return FieldseekerProposedtreatmentareaModFunc(func(_ context.Context, o *FieldseekerProposedtreatmentareaTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerProposedtreatmentareaMods) UnsetVersion() FieldseekerProposedtreatmentareaMod {
|
||||
return FieldseekerProposedtreatmentareaModFunc(func(_ context.Context, o *FieldseekerProposedtreatmentareaTemplate) {
|
||||
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 fieldseekerProposedtreatmentareaMods) RandomVersion(f *faker.Faker) FieldseekerProposedtreatmentareaMod {
|
||||
return FieldseekerProposedtreatmentareaModFunc(func(_ context.Context, o *FieldseekerProposedtreatmentareaTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerProposedtreatmentareaMods) WithParentsCascading() FieldseekerProposedtreatmentareaMod {
|
||||
return FieldseekerProposedtreatmentareaModFunc(func(ctx context.Context, o *FieldseekerProposedtreatmentareaTemplate) {
|
||||
if isDone, _ := fieldseekerProposedtreatmentareaWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerQalarvcountMod interface {
|
||||
Apply(context.Context, *FieldseekerQalarvcountTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerQalarvcountModFunc func(context.Context, *FieldseekerQalarvcountTemplate)
|
||||
|
||||
func (f FieldseekerQalarvcountModFunc) Apply(ctx context.Context, n *FieldseekerQalarvcountTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerQalarvcountModSlice []FieldseekerQalarvcountMod
|
||||
|
||||
func (mods FieldseekerQalarvcountModSlice) Apply(ctx context.Context, n *FieldseekerQalarvcountTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerQalarvcountTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerQalarvcountTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerQalarvcountTemplate
|
||||
func (o *FieldseekerQalarvcountTemplate) Apply(ctx context.Context, mods ...FieldseekerQalarvcountMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerQalarvcount
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerQalarvcountTemplate) setModelRels(o *models.FieldseekerQalarvcount) {}
|
||||
|
||||
// Build returns an *models.FieldseekerQalarvcount
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerQalarvcountTemplate.Create
|
||||
func (o FieldseekerQalarvcountTemplate) Build() *models.FieldseekerQalarvcount {
|
||||
m := &models.FieldseekerQalarvcount{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerQalarvcountSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerQalarvcountTemplate.CreateMany
|
||||
func (o FieldseekerQalarvcountTemplate) BuildMany(number int) models.FieldseekerQalarvcountSlice {
|
||||
m := make(models.FieldseekerQalarvcountSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerQalarvcount has methods that act as mods for the FieldseekerQalarvcountTemplate
|
||||
var FieldseekerQalarvcountMods fieldseekerQalarvcountMods
|
||||
|
||||
type fieldseekerQalarvcountMods struct{}
|
||||
|
||||
func (m fieldseekerQalarvcountMods) RandomizeAllColumns(f *faker.Faker) FieldseekerQalarvcountMod {
|
||||
return FieldseekerQalarvcountModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerQalarvcountMods) WithParentsCascading() FieldseekerQalarvcountMod {
|
||||
return FieldseekerQalarvcountModFunc(func(ctx context.Context, o *FieldseekerQalarvcountTemplate) {
|
||||
if isDone, _ := fieldseekerQalarvcountWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerQalarvcountWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -101,6 +101,7 @@ type FieldseekerQamosquitoinspectionTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -372,6 +373,10 @@ func (o FieldseekerQamosquitoinspectionTemplate) BuildSetter() *models.Fieldseek
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -580,6 +585,9 @@ func (o FieldseekerQamosquitoinspectionTemplate) Build() *models.FieldseekerQamo
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -762,6 +770,7 @@ func (m fieldseekerQamosquitoinspectionMods) RandomizeAllColumns(f *faker.Faker)
|
|||
FieldseekerQamosquitoinspectionMods.RandomCreator(f),
|
||||
FieldseekerQamosquitoinspectionMods.RandomEditdate(f),
|
||||
FieldseekerQamosquitoinspectionMods.RandomEditor(f),
|
||||
FieldseekerQamosquitoinspectionMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -4029,6 +4038,37 @@ func (m fieldseekerQamosquitoinspectionMods) RandomEditorNotNull(f *faker.Faker)
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerQamosquitoinspectionMods) Version(val int32) FieldseekerQamosquitoinspectionMod {
|
||||
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerQamosquitoinspectionMods) VersionFunc(f func() int32) FieldseekerQamosquitoinspectionMod {
|
||||
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerQamosquitoinspectionMods) UnsetVersion() FieldseekerQamosquitoinspectionMod {
|
||||
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
|
||||
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 fieldseekerQamosquitoinspectionMods) RandomVersion(f *faker.Faker) FieldseekerQamosquitoinspectionMod {
|
||||
return FieldseekerQamosquitoinspectionModFunc(func(_ context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerQamosquitoinspectionMods) WithParentsCascading() FieldseekerQamosquitoinspectionMod {
|
||||
return FieldseekerQamosquitoinspectionModFunc(func(ctx context.Context, o *FieldseekerQamosquitoinspectionTemplate) {
|
||||
if isDone, _ := fieldseekerQamosquitoinspectionWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,91 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerQaproductobservationMod interface {
|
||||
Apply(context.Context, *FieldseekerQaproductobservationTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerQaproductobservationModFunc func(context.Context, *FieldseekerQaproductobservationTemplate)
|
||||
|
||||
func (f FieldseekerQaproductobservationModFunc) Apply(ctx context.Context, n *FieldseekerQaproductobservationTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerQaproductobservationModSlice []FieldseekerQaproductobservationMod
|
||||
|
||||
func (mods FieldseekerQaproductobservationModSlice) Apply(ctx context.Context, n *FieldseekerQaproductobservationTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerQaproductobservationTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerQaproductobservationTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerQaproductobservationTemplate
|
||||
func (o *FieldseekerQaproductobservationTemplate) Apply(ctx context.Context, mods ...FieldseekerQaproductobservationMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerQaproductobservation
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerQaproductobservationTemplate) setModelRels(o *models.FieldseekerQaproductobservation) {
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerQaproductobservation
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerQaproductobservationTemplate.Create
|
||||
func (o FieldseekerQaproductobservationTemplate) Build() *models.FieldseekerQaproductobservation {
|
||||
m := &models.FieldseekerQaproductobservation{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerQaproductobservationSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerQaproductobservationTemplate.CreateMany
|
||||
func (o FieldseekerQaproductobservationTemplate) BuildMany(number int) models.FieldseekerQaproductobservationSlice {
|
||||
m := make(models.FieldseekerQaproductobservationSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerQaproductobservation has methods that act as mods for the FieldseekerQaproductobservationTemplate
|
||||
var FieldseekerQaproductobservationMods fieldseekerQaproductobservationMods
|
||||
|
||||
type fieldseekerQaproductobservationMods struct{}
|
||||
|
||||
func (m fieldseekerQaproductobservationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerQaproductobservationMod {
|
||||
return FieldseekerQaproductobservationModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerQaproductobservationMods) WithParentsCascading() FieldseekerQaproductobservationMod {
|
||||
return FieldseekerQaproductobservationModFunc(func(ctx context.Context, o *FieldseekerQaproductobservationTemplate) {
|
||||
if isDone, _ := fieldseekerQaproductobservationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerQaproductobservationWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerRestrictedareaMod interface {
|
||||
Apply(context.Context, *FieldseekerRestrictedareaTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerRestrictedareaModFunc func(context.Context, *FieldseekerRestrictedareaTemplate)
|
||||
|
||||
func (f FieldseekerRestrictedareaModFunc) Apply(ctx context.Context, n *FieldseekerRestrictedareaTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerRestrictedareaModSlice []FieldseekerRestrictedareaMod
|
||||
|
||||
func (mods FieldseekerRestrictedareaModSlice) Apply(ctx context.Context, n *FieldseekerRestrictedareaTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerRestrictedareaTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerRestrictedareaTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerRestrictedareaTemplate
|
||||
func (o *FieldseekerRestrictedareaTemplate) Apply(ctx context.Context, mods ...FieldseekerRestrictedareaMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerRestrictedarea
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerRestrictedareaTemplate) setModelRels(o *models.FieldseekerRestrictedarea) {}
|
||||
|
||||
// Build returns an *models.FieldseekerRestrictedarea
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerRestrictedareaTemplate.Create
|
||||
func (o FieldseekerRestrictedareaTemplate) Build() *models.FieldseekerRestrictedarea {
|
||||
m := &models.FieldseekerRestrictedarea{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerRestrictedareaSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerRestrictedareaTemplate.CreateMany
|
||||
func (o FieldseekerRestrictedareaTemplate) BuildMany(number int) models.FieldseekerRestrictedareaSlice {
|
||||
m := make(models.FieldseekerRestrictedareaSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerRestrictedarea has methods that act as mods for the FieldseekerRestrictedareaTemplate
|
||||
var FieldseekerRestrictedareaMods fieldseekerRestrictedareaMods
|
||||
|
||||
type fieldseekerRestrictedareaMods struct{}
|
||||
|
||||
func (m fieldseekerRestrictedareaMods) RandomizeAllColumns(f *faker.Faker) FieldseekerRestrictedareaMod {
|
||||
return FieldseekerRestrictedareaModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerRestrictedareaMods) WithParentsCascading() FieldseekerRestrictedareaMod {
|
||||
return FieldseekerRestrictedareaModFunc(func(ctx context.Context, o *FieldseekerRestrictedareaTemplate) {
|
||||
if isDone, _ := fieldseekerRestrictedareaWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerRestrictedareaWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerRodentinspectionMod interface {
|
||||
Apply(context.Context, *FieldseekerRodentinspectionTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerRodentinspectionModFunc func(context.Context, *FieldseekerRodentinspectionTemplate)
|
||||
|
||||
func (f FieldseekerRodentinspectionModFunc) Apply(ctx context.Context, n *FieldseekerRodentinspectionTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerRodentinspectionModSlice []FieldseekerRodentinspectionMod
|
||||
|
||||
func (mods FieldseekerRodentinspectionModSlice) Apply(ctx context.Context, n *FieldseekerRodentinspectionTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerRodentinspectionTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerRodentinspectionTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerRodentinspectionTemplate
|
||||
func (o *FieldseekerRodentinspectionTemplate) Apply(ctx context.Context, mods ...FieldseekerRodentinspectionMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerRodentinspection
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerRodentinspectionTemplate) setModelRels(o *models.FieldseekerRodentinspection) {}
|
||||
|
||||
// Build returns an *models.FieldseekerRodentinspection
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerRodentinspectionTemplate.Create
|
||||
func (o FieldseekerRodentinspectionTemplate) Build() *models.FieldseekerRodentinspection {
|
||||
m := &models.FieldseekerRodentinspection{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerRodentinspectionSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerRodentinspectionTemplate.CreateMany
|
||||
func (o FieldseekerRodentinspectionTemplate) BuildMany(number int) models.FieldseekerRodentinspectionSlice {
|
||||
m := make(models.FieldseekerRodentinspectionSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerRodentinspection has methods that act as mods for the FieldseekerRodentinspectionTemplate
|
||||
var FieldseekerRodentinspectionMods fieldseekerRodentinspectionMods
|
||||
|
||||
type fieldseekerRodentinspectionMods struct{}
|
||||
|
||||
func (m fieldseekerRodentinspectionMods) RandomizeAllColumns(f *faker.Faker) FieldseekerRodentinspectionMod {
|
||||
return FieldseekerRodentinspectionModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentinspectionMods) WithParentsCascading() FieldseekerRodentinspectionMod {
|
||||
return FieldseekerRodentinspectionModFunc(func(ctx context.Context, o *FieldseekerRodentinspectionTemplate) {
|
||||
if isDone, _ := fieldseekerRodentinspectionWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerRodentinspectionWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -39,7 +39,6 @@ func (mods FieldseekerRodentlocationModSlice) Apply(ctx context.Context, n *Fiel
|
|||
// FieldseekerRodentlocationTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerRodentlocationTemplate struct {
|
||||
OrganizationID func() int32
|
||||
Objectid func() int64
|
||||
Locationname func() null.Val[string]
|
||||
Zone func() null.Val[string]
|
||||
|
|
@ -70,21 +69,13 @@ type FieldseekerRodentlocationTemplate struct {
|
|||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Jurisdiction func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
r fieldseekerRodentlocationR
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
type fieldseekerRodentlocationR struct {
|
||||
Organization *fieldseekerRodentlocationROrganizationR
|
||||
}
|
||||
|
||||
type fieldseekerRodentlocationROrganizationR struct {
|
||||
o *OrganizationTemplate
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerRodentlocationTemplate
|
||||
func (o *FieldseekerRodentlocationTemplate) Apply(ctx context.Context, mods ...FieldseekerRodentlocationMod) {
|
||||
for _, mod := range mods {
|
||||
|
|
@ -94,24 +85,13 @@ func (o *FieldseekerRodentlocationTemplate) Apply(ctx context.Context, mods ...F
|
|||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerRodentlocation
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerRodentlocationTemplate) setModelRels(o *models.FieldseekerRodentlocation) {
|
||||
if t.r.Organization != nil {
|
||||
rel := t.r.Organization.o.Build()
|
||||
rel.R.Rodentlocations = append(rel.R.Rodentlocations, o)
|
||||
o.OrganizationID = rel.ID // h2
|
||||
o.R.Organization = rel
|
||||
}
|
||||
}
|
||||
func (t FieldseekerRodentlocationTemplate) setModelRels(o *models.FieldseekerRodentlocation) {}
|
||||
|
||||
// BuildSetter returns an *models.FieldseekerRodentlocationSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerRodentlocationTemplate) BuildSetter() *models.FieldseekerRodentlocationSetter {
|
||||
m := &models.FieldseekerRodentlocationSetter{}
|
||||
|
||||
if o.OrganizationID != nil {
|
||||
val := o.OrganizationID()
|
||||
m.OrganizationID = omit.From(val)
|
||||
}
|
||||
if o.Objectid != nil {
|
||||
val := o.Objectid()
|
||||
m.Objectid = omit.From(val)
|
||||
|
|
@ -232,6 +212,10 @@ func (o FieldseekerRodentlocationTemplate) BuildSetter() *models.FieldseekerRode
|
|||
val := o.Jurisdiction()
|
||||
m.Jurisdiction = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -254,9 +238,6 @@ func (o FieldseekerRodentlocationTemplate) BuildManySetter(number int) []*models
|
|||
func (o FieldseekerRodentlocationTemplate) Build() *models.FieldseekerRodentlocation {
|
||||
m := &models.FieldseekerRodentlocation{}
|
||||
|
||||
if o.OrganizationID != nil {
|
||||
m.OrganizationID = o.OrganizationID()
|
||||
}
|
||||
if o.Objectid != nil {
|
||||
m.Objectid = o.Objectid()
|
||||
}
|
||||
|
|
@ -347,6 +328,9 @@ func (o FieldseekerRodentlocationTemplate) Build() *models.FieldseekerRodentloca
|
|||
if o.Jurisdiction != nil {
|
||||
m.Jurisdiction = o.Jurisdiction()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -367,10 +351,6 @@ func (o FieldseekerRodentlocationTemplate) BuildMany(number int) models.Fieldsee
|
|||
}
|
||||
|
||||
func ensureCreatableFieldseekerRodentlocation(m *models.FieldseekerRodentlocationSetter) {
|
||||
if !(m.OrganizationID.IsValue()) {
|
||||
val := random_int32(nil)
|
||||
m.OrganizationID = omit.From(val)
|
||||
}
|
||||
}
|
||||
|
||||
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerRodentlocation
|
||||
|
|
@ -389,30 +369,11 @@ func (o *FieldseekerRodentlocationTemplate) Create(ctx context.Context, exec bob
|
|||
opt := o.BuildSetter()
|
||||
ensureCreatableFieldseekerRodentlocation(opt)
|
||||
|
||||
if o.r.Organization == nil {
|
||||
FieldseekerRodentlocationMods.WithNewOrganization().Apply(ctx, o)
|
||||
}
|
||||
|
||||
var rel0 *models.Organization
|
||||
|
||||
if o.r.Organization.o.alreadyPersisted {
|
||||
rel0 = o.r.Organization.o.Build()
|
||||
} else {
|
||||
rel0, err = o.r.Organization.o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
opt.OrganizationID = omit.From(rel0.ID)
|
||||
|
||||
m, err := models.FieldseekerRodentlocations.Insert(opt).One(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
m.R.Organization = rel0
|
||||
|
||||
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -490,7 +451,6 @@ type fieldseekerRodentlocationMods struct{}
|
|||
|
||||
func (m fieldseekerRodentlocationMods) RandomizeAllColumns(f *faker.Faker) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModSlice{
|
||||
FieldseekerRodentlocationMods.RandomOrganizationID(f),
|
||||
FieldseekerRodentlocationMods.RandomObjectid(f),
|
||||
FieldseekerRodentlocationMods.RandomLocationname(f),
|
||||
FieldseekerRodentlocationMods.RandomZone(f),
|
||||
|
|
@ -521,40 +481,10 @@ func (m fieldseekerRodentlocationMods) RandomizeAllColumns(f *faker.Faker) Field
|
|||
FieldseekerRodentlocationMods.RandomEditdate(f),
|
||||
FieldseekerRodentlocationMods.RandomEditor(f),
|
||||
FieldseekerRodentlocationMods.RandomJurisdiction(f),
|
||||
FieldseekerRodentlocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerRodentlocationMods) OrganizationID(val int32) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.OrganizationID = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerRodentlocationMods) OrganizationIDFunc(f func() int32) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.OrganizationID = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerRodentlocationMods) UnsetOrganizationID() FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.OrganizationID = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerRodentlocationMods) RandomOrganizationID(f *faker.Faker) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.OrganizationID = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerRodentlocationMods) Objectid(val int64) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
|
|
@ -2123,46 +2053,42 @@ func (m fieldseekerRodentlocationMods) RandomJurisdictionNotNull(f *faker.Faker)
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerRodentlocationMods) Version(val int32) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerRodentlocationMods) VersionFunc(f func() int32) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerRodentlocationMods) UnsetVersion() FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.Version = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerRodentlocationMods) RandomVersion(f *faker.Faker) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(_ context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentlocationMods) WithParentsCascading() FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
if isDone, _ := fieldseekerRodentlocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerRodentlocationWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
{
|
||||
|
||||
related := o.f.NewOrganizationWithContext(ctx, OrganizationMods.WithParentsCascading())
|
||||
m.WithOrganization(related).Apply(ctx, o)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentlocationMods) WithOrganization(rel *OrganizationTemplate) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.r.Organization = &fieldseekerRodentlocationROrganizationR{
|
||||
o: rel,
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentlocationMods) WithNewOrganization(mods ...OrganizationMod) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
related := o.f.NewOrganizationWithContext(ctx, mods...)
|
||||
|
||||
m.WithOrganization(related).Apply(ctx, o)
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentlocationMods) WithExistingOrganization(em *models.Organization) FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.r.Organization = &fieldseekerRodentlocationROrganizationR{
|
||||
o: o.f.FromExistingOrganization(em),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerRodentlocationMods) WithoutOrganization() FieldseekerRodentlocationMod {
|
||||
return FieldseekerRodentlocationModFunc(func(ctx context.Context, o *FieldseekerRodentlocationTemplate) {
|
||||
o.r.Organization = nil
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -85,6 +85,7 @@ type FieldseekerSamplecollectionTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -291,6 +292,10 @@ func (o FieldseekerSamplecollectionTemplate) BuildSetter() *models.FieldseekerSa
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -451,6 +456,9 @@ func (o FieldseekerSamplecollectionTemplate) Build() *models.FieldseekerSampleco
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -617,6 +625,7 @@ func (m fieldseekerSamplecollectionMods) RandomizeAllColumns(f *faker.Faker) Fie
|
|||
FieldseekerSamplecollectionMods.RandomCreator(f),
|
||||
FieldseekerSamplecollectionMods.RandomEditdate(f),
|
||||
FieldseekerSamplecollectionMods.RandomEditor(f),
|
||||
FieldseekerSamplecollectionMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3036,6 +3045,37 @@ func (m fieldseekerSamplecollectionMods) RandomEditorNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerSamplecollectionMods) Version(val int32) FieldseekerSamplecollectionMod {
|
||||
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerSamplecollectionMods) VersionFunc(f func() int32) FieldseekerSamplecollectionMod {
|
||||
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerSamplecollectionMods) UnsetVersion() FieldseekerSamplecollectionMod {
|
||||
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
|
||||
o.Version = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerSamplecollectionMods) RandomVersion(f *faker.Faker) FieldseekerSamplecollectionMod {
|
||||
return FieldseekerSamplecollectionModFunc(func(_ context.Context, o *FieldseekerSamplecollectionTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerSamplecollectionMods) WithParentsCascading() FieldseekerSamplecollectionMod {
|
||||
return FieldseekerSamplecollectionModFunc(func(ctx context.Context, o *FieldseekerSamplecollectionTemplate) {
|
||||
if isDone, _ := fieldseekerSamplecollectionWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -63,6 +63,7 @@ type FieldseekerSamplelocationTemplate struct {
|
|||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -181,6 +182,10 @@ func (o FieldseekerSamplelocationTemplate) BuildSetter() *models.FieldseekerSamp
|
|||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -275,6 +280,9 @@ func (o FieldseekerSamplelocationTemplate) Build() *models.FieldseekerSampleloca
|
|||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -419,6 +427,7 @@ func (m fieldseekerSamplelocationMods) RandomizeAllColumns(f *faker.Faker) Field
|
|||
FieldseekerSamplelocationMods.RandomCreator(f),
|
||||
FieldseekerSamplelocationMods.RandomEditdate(f),
|
||||
FieldseekerSamplelocationMods.RandomEditor(f),
|
||||
FieldseekerSamplelocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1672,6 +1681,37 @@ func (m fieldseekerSamplelocationMods) RandomEditorNotNull(f *faker.Faker) Field
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerSamplelocationMods) Version(val int32) FieldseekerSamplelocationMod {
|
||||
return FieldseekerSamplelocationModFunc(func(_ context.Context, o *FieldseekerSamplelocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerSamplelocationMods) VersionFunc(f func() int32) FieldseekerSamplelocationMod {
|
||||
return FieldseekerSamplelocationModFunc(func(_ context.Context, o *FieldseekerSamplelocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerSamplelocationMods) UnsetVersion() FieldseekerSamplelocationMod {
|
||||
return FieldseekerSamplelocationModFunc(func(_ context.Context, o *FieldseekerSamplelocationTemplate) {
|
||||
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 fieldseekerSamplelocationMods) RandomVersion(f *faker.Faker) FieldseekerSamplelocationMod {
|
||||
return FieldseekerSamplelocationModFunc(func(_ context.Context, o *FieldseekerSamplelocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerSamplelocationMods) WithParentsCascading() FieldseekerSamplelocationMod {
|
||||
return FieldseekerSamplelocationModFunc(func(ctx context.Context, o *FieldseekerSamplelocationTemplate) {
|
||||
if isDone, _ := fieldseekerSamplelocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -125,6 +125,7 @@ type FieldseekerServicerequestTemplate struct {
|
|||
Notificationtimestamp func() null.Val[string]
|
||||
Zone func() null.Val[string]
|
||||
Zone2 func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -491,6 +492,10 @@ func (o FieldseekerServicerequestTemplate) BuildSetter() *models.FieldseekerServ
|
|||
val := o.Zone2()
|
||||
m.Zone2 = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -771,6 +776,9 @@ func (o FieldseekerServicerequestTemplate) Build() *models.FieldseekerServicereq
|
|||
if o.Zone2 != nil {
|
||||
m.Zone2 = o.Zone2()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -977,6 +985,7 @@ func (m fieldseekerServicerequestMods) RandomizeAllColumns(f *faker.Faker) Field
|
|||
FieldseekerServicerequestMods.RandomNotificationtimestamp(f),
|
||||
FieldseekerServicerequestMods.RandomZone(f),
|
||||
FieldseekerServicerequestMods.RandomZone2(f),
|
||||
FieldseekerServicerequestMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -5522,6 +5531,37 @@ func (m fieldseekerServicerequestMods) RandomZone2NotNull(f *faker.Faker) Fields
|
|||
})
|
||||
}
|
||||
|
||||
// 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)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerServicerequestMods) WithParentsCascading() FieldseekerServicerequestMod {
|
||||
return FieldseekerServicerequestModFunc(func(ctx context.Context, o *FieldseekerServicerequestTemplate) {
|
||||
if isDone, _ := fieldseekerServicerequestWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -68,6 +68,7 @@ type FieldseekerSpeciesabundanceTemplate struct {
|
|||
R8score func() null.Val[float64]
|
||||
H3R7 func() null.Val[string]
|
||||
H3R8 func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -206,6 +207,10 @@ func (o FieldseekerSpeciesabundanceTemplate) BuildSetter() *models.FieldseekerSp
|
|||
val := o.H3R8()
|
||||
m.H3R8 = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -315,6 +320,9 @@ func (o FieldseekerSpeciesabundanceTemplate) Build() *models.FieldseekerSpeciesa
|
|||
if o.H3R8 != nil {
|
||||
m.H3R8 = o.H3R8()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -464,6 +472,7 @@ func (m fieldseekerSpeciesabundanceMods) RandomizeAllColumns(f *faker.Faker) Fie
|
|||
FieldseekerSpeciesabundanceMods.RandomR8score(f),
|
||||
FieldseekerSpeciesabundanceMods.RandomH3R7(f),
|
||||
FieldseekerSpeciesabundanceMods.RandomH3R8(f),
|
||||
FieldseekerSpeciesabundanceMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1982,6 +1991,37 @@ func (m fieldseekerSpeciesabundanceMods) RandomH3R8NotNull(f *faker.Faker) Field
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerSpeciesabundanceMods) Version(val int32) FieldseekerSpeciesabundanceMod {
|
||||
return FieldseekerSpeciesabundanceModFunc(func(_ context.Context, o *FieldseekerSpeciesabundanceTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerSpeciesabundanceMods) VersionFunc(f func() int32) FieldseekerSpeciesabundanceMod {
|
||||
return FieldseekerSpeciesabundanceModFunc(func(_ context.Context, o *FieldseekerSpeciesabundanceTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerSpeciesabundanceMods) UnsetVersion() FieldseekerSpeciesabundanceMod {
|
||||
return FieldseekerSpeciesabundanceModFunc(func(_ context.Context, o *FieldseekerSpeciesabundanceTemplate) {
|
||||
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 fieldseekerSpeciesabundanceMods) RandomVersion(f *faker.Faker) FieldseekerSpeciesabundanceMod {
|
||||
return FieldseekerSpeciesabundanceModFunc(func(_ context.Context, o *FieldseekerSpeciesabundanceTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerSpeciesabundanceMods) WithParentsCascading() FieldseekerSpeciesabundanceMod {
|
||||
return FieldseekerSpeciesabundanceModFunc(func(ctx context.Context, o *FieldseekerSpeciesabundanceTemplate) {
|
||||
if isDone, _ := fieldseekerSpeciesabundanceWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -58,6 +58,7 @@ type FieldseekerStormdrainTemplate struct {
|
|||
Editor func() null.Val[string]
|
||||
Type func() null.Val[string]
|
||||
Jurisdiction func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -156,6 +157,10 @@ func (o FieldseekerStormdrainTemplate) BuildSetter() *models.FieldseekerStormdra
|
|||
val := o.Jurisdiction()
|
||||
m.Jurisdiction = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -235,6 +240,9 @@ func (o FieldseekerStormdrainTemplate) Build() *models.FieldseekerStormdrain {
|
|||
if o.Jurisdiction != nil {
|
||||
m.Jurisdiction = o.Jurisdiction()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -374,6 +382,7 @@ func (m fieldseekerStormdrainMods) RandomizeAllColumns(f *faker.Faker) Fieldseek
|
|||
FieldseekerStormdrainMods.RandomEditor(f),
|
||||
FieldseekerStormdrainMods.RandomType(f),
|
||||
FieldseekerStormdrainMods.RandomJurisdiction(f),
|
||||
FieldseekerStormdrainMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1362,6 +1371,37 @@ func (m fieldseekerStormdrainMods) RandomJurisdictionNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerStormdrainMods) Version(val int32) FieldseekerStormdrainMod {
|
||||
return FieldseekerStormdrainModFunc(func(_ context.Context, o *FieldseekerStormdrainTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerStormdrainMods) VersionFunc(f func() int32) FieldseekerStormdrainMod {
|
||||
return FieldseekerStormdrainModFunc(func(_ context.Context, o *FieldseekerStormdrainTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerStormdrainMods) UnsetVersion() FieldseekerStormdrainMod {
|
||||
return FieldseekerStormdrainModFunc(func(_ context.Context, o *FieldseekerStormdrainTemplate) {
|
||||
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 fieldseekerStormdrainMods) RandomVersion(f *faker.Faker) FieldseekerStormdrainMod {
|
||||
return FieldseekerStormdrainModFunc(func(_ context.Context, o *FieldseekerStormdrainTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerStormdrainMods) WithParentsCascading() FieldseekerStormdrainMod {
|
||||
return FieldseekerStormdrainModFunc(func(ctx context.Context, o *FieldseekerStormdrainTemplate) {
|
||||
if isDone, _ := fieldseekerStormdrainWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -67,6 +67,7 @@ type FieldseekerTimecardTemplate struct {
|
|||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Rodentlocid func() null.Val[uuid.UUID]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -201,6 +202,10 @@ func (o FieldseekerTimecardTemplate) BuildSetter() *models.FieldseekerTimecardSe
|
|||
val := o.Rodentlocid()
|
||||
m.Rodentlocid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -307,6 +312,9 @@ func (o FieldseekerTimecardTemplate) Build() *models.FieldseekerTimecard {
|
|||
if o.Rodentlocid != nil {
|
||||
m.Rodentlocid = o.Rodentlocid()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -455,6 +463,7 @@ func (m fieldseekerTimecardMods) RandomizeAllColumns(f *faker.Faker) Fieldseeker
|
|||
FieldseekerTimecardMods.RandomEditdate(f),
|
||||
FieldseekerTimecardMods.RandomEditor(f),
|
||||
FieldseekerTimecardMods.RandomRodentlocid(f),
|
||||
FieldseekerTimecardMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1922,6 +1931,37 @@ func (m fieldseekerTimecardMods) RandomRodentlocidNotNull(f *faker.Faker) Fields
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerTimecardMods) Version(val int32) FieldseekerTimecardMod {
|
||||
return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerTimecardMods) VersionFunc(f func() int32) FieldseekerTimecardMod {
|
||||
return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerTimecardMods) UnsetVersion() FieldseekerTimecardMod {
|
||||
return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
|
||||
o.Version = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerTimecardMods) RandomVersion(f *faker.Faker) FieldseekerTimecardMod {
|
||||
return FieldseekerTimecardModFunc(func(_ context.Context, o *FieldseekerTimecardTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerTimecardMods) WithParentsCascading() FieldseekerTimecardMod {
|
||||
return FieldseekerTimecardModFunc(func(ctx context.Context, o *FieldseekerTimecardTemplate) {
|
||||
if isDone, _ := fieldseekerTimecardWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerTracklogMod interface {
|
||||
Apply(context.Context, *FieldseekerTracklogTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerTracklogModFunc func(context.Context, *FieldseekerTracklogTemplate)
|
||||
|
||||
func (f FieldseekerTracklogModFunc) Apply(ctx context.Context, n *FieldseekerTracklogTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerTracklogModSlice []FieldseekerTracklogMod
|
||||
|
||||
func (mods FieldseekerTracklogModSlice) Apply(ctx context.Context, n *FieldseekerTracklogTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerTracklogTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerTracklogTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerTracklogTemplate
|
||||
func (o *FieldseekerTracklogTemplate) Apply(ctx context.Context, mods ...FieldseekerTracklogMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerTracklog
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerTracklogTemplate) setModelRels(o *models.FieldseekerTracklog) {}
|
||||
|
||||
// Build returns an *models.FieldseekerTracklog
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerTracklogTemplate.Create
|
||||
func (o FieldseekerTracklogTemplate) Build() *models.FieldseekerTracklog {
|
||||
m := &models.FieldseekerTracklog{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerTracklogSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerTracklogTemplate.CreateMany
|
||||
func (o FieldseekerTracklogTemplate) BuildMany(number int) models.FieldseekerTracklogSlice {
|
||||
m := make(models.FieldseekerTracklogSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerTracklog has methods that act as mods for the FieldseekerTracklogTemplate
|
||||
var FieldseekerTracklogMods fieldseekerTracklogMods
|
||||
|
||||
type fieldseekerTracklogMods struct{}
|
||||
|
||||
func (m fieldseekerTracklogMods) RandomizeAllColumns(f *faker.Faker) FieldseekerTracklogMod {
|
||||
return FieldseekerTracklogModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerTracklogMods) WithParentsCascading() FieldseekerTracklogMod {
|
||||
return FieldseekerTracklogModFunc(func(ctx context.Context, o *FieldseekerTracklogTemplate) {
|
||||
if isDone, _ := fieldseekerTracklogWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerTracklogWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -81,6 +81,7 @@ type FieldseekerTrapdatumTemplate struct {
|
|||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Lure func() null.Val[enums.FieldseekerTrapdataTrapdataLure25fe542f077F4254868176e8f436354bEnu]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -271,6 +272,10 @@ func (o FieldseekerTrapdatumTemplate) BuildSetter() *models.FieldseekerTrapdatum
|
|||
val := o.Lure()
|
||||
m.Lure = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -419,6 +424,9 @@ func (o FieldseekerTrapdatumTemplate) Build() *models.FieldseekerTrapdatum {
|
|||
if o.Lure != nil {
|
||||
m.Lure = o.Lure()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -581,6 +589,7 @@ func (m fieldseekerTrapdatumMods) RandomizeAllColumns(f *faker.Faker) Fieldseeke
|
|||
FieldseekerTrapdatumMods.RandomEditdate(f),
|
||||
FieldseekerTrapdatumMods.RandomEditor(f),
|
||||
FieldseekerTrapdatumMods.RandomLure(f),
|
||||
FieldseekerTrapdatumMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2788,6 +2797,37 @@ func (m fieldseekerTrapdatumMods) RandomLureNotNull(f *faker.Faker) FieldseekerT
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerTrapdatumMods) Version(val int32) FieldseekerTrapdatumMod {
|
||||
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerTrapdatumMods) VersionFunc(f func() int32) FieldseekerTrapdatumMod {
|
||||
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerTrapdatumMods) UnsetVersion() FieldseekerTrapdatumMod {
|
||||
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
|
||||
o.Version = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerTrapdatumMods) RandomVersion(f *faker.Faker) FieldseekerTrapdatumMod {
|
||||
return FieldseekerTrapdatumModFunc(func(_ context.Context, o *FieldseekerTrapdatumTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerTrapdatumMods) WithParentsCascading() FieldseekerTrapdatumMod {
|
||||
return FieldseekerTrapdatumModFunc(func(ctx context.Context, o *FieldseekerTrapdatumTemplate) {
|
||||
if isDone, _ := fieldseekerTrapdatumWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -69,6 +69,7 @@ type FieldseekerTraplocationTemplate struct {
|
|||
Editor func() null.Val[string]
|
||||
H3R7 func() null.Val[string]
|
||||
H3R8 func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -211,6 +212,10 @@ func (o FieldseekerTraplocationTemplate) BuildSetter() *models.FieldseekerTraplo
|
|||
val := o.H3R8()
|
||||
m.H3R8 = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -323,6 +328,9 @@ func (o FieldseekerTraplocationTemplate) Build() *models.FieldseekerTraplocation
|
|||
if o.H3R8 != nil {
|
||||
m.H3R8 = o.H3R8()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -473,6 +481,7 @@ func (m fieldseekerTraplocationMods) RandomizeAllColumns(f *faker.Faker) Fieldse
|
|||
FieldseekerTraplocationMods.RandomEditor(f),
|
||||
FieldseekerTraplocationMods.RandomH3R7(f),
|
||||
FieldseekerTraplocationMods.RandomH3R8(f),
|
||||
FieldseekerTraplocationMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2050,6 +2059,37 @@ func (m fieldseekerTraplocationMods) RandomH3R8NotNull(f *faker.Faker) Fieldseek
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerTraplocationMods) Version(val int32) FieldseekerTraplocationMod {
|
||||
return FieldseekerTraplocationModFunc(func(_ context.Context, o *FieldseekerTraplocationTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerTraplocationMods) VersionFunc(f func() int32) FieldseekerTraplocationMod {
|
||||
return FieldseekerTraplocationModFunc(func(_ context.Context, o *FieldseekerTraplocationTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerTraplocationMods) UnsetVersion() FieldseekerTraplocationMod {
|
||||
return FieldseekerTraplocationModFunc(func(_ context.Context, o *FieldseekerTraplocationTemplate) {
|
||||
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 fieldseekerTraplocationMods) RandomVersion(f *faker.Faker) FieldseekerTraplocationMod {
|
||||
return FieldseekerTraplocationModFunc(func(_ context.Context, o *FieldseekerTraplocationTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerTraplocationMods) WithParentsCascading() FieldseekerTraplocationMod {
|
||||
return FieldseekerTraplocationModFunc(func(ctx context.Context, o *FieldseekerTraplocationTemplate) {
|
||||
if isDone, _ := fieldseekerTraplocationWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -93,6 +93,7 @@ type FieldseekerTreatmentTemplate struct {
|
|||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
Targetspecies func() null.Val[string]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -331,6 +332,10 @@ func (o FieldseekerTreatmentTemplate) BuildSetter() *models.FieldseekerTreatment
|
|||
val := o.Targetspecies()
|
||||
m.Targetspecies = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -515,6 +520,9 @@ func (o FieldseekerTreatmentTemplate) Build() *models.FieldseekerTreatment {
|
|||
if o.Targetspecies != nil {
|
||||
m.Targetspecies = o.Targetspecies()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -689,6 +697,7 @@ func (m fieldseekerTreatmentMods) RandomizeAllColumns(f *faker.Faker) Fieldseeke
|
|||
FieldseekerTreatmentMods.RandomEditdate(f),
|
||||
FieldseekerTreatmentMods.RandomEditor(f),
|
||||
FieldseekerTreatmentMods.RandomTargetspecies(f),
|
||||
FieldseekerTreatmentMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -3538,6 +3547,37 @@ func (m fieldseekerTreatmentMods) RandomTargetspeciesNotNull(f *faker.Faker) Fie
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerTreatmentMods) Version(val int32) FieldseekerTreatmentMod {
|
||||
return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerTreatmentMods) VersionFunc(f func() int32) FieldseekerTreatmentMod {
|
||||
return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerTreatmentMods) UnsetVersion() FieldseekerTreatmentMod {
|
||||
return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) {
|
||||
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 fieldseekerTreatmentMods) RandomVersion(f *faker.Faker) FieldseekerTreatmentMod {
|
||||
return FieldseekerTreatmentModFunc(func(_ context.Context, o *FieldseekerTreatmentTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerTreatmentMods) WithParentsCascading() FieldseekerTreatmentMod {
|
||||
return FieldseekerTreatmentModFunc(func(ctx context.Context, o *FieldseekerTreatmentTemplate) {
|
||||
if isDone, _ := fieldseekerTreatmentWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -56,6 +56,7 @@ type FieldseekerTreatmentareaTemplate struct {
|
|||
Editor func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -150,6 +151,10 @@ func (o FieldseekerTreatmentareaTemplate) BuildSetter() *models.FieldseekerTreat
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -226,6 +231,9 @@ func (o FieldseekerTreatmentareaTemplate) Build() *models.FieldseekerTreatmentar
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -364,6 +372,7 @@ func (m fieldseekerTreatmentareaMods) RandomizeAllColumns(f *faker.Faker) Fields
|
|||
FieldseekerTreatmentareaMods.RandomEditor(f),
|
||||
FieldseekerTreatmentareaMods.RandomShapeArea(f),
|
||||
FieldseekerTreatmentareaMods.RandomShapeLength(f),
|
||||
FieldseekerTreatmentareaMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1299,6 +1308,37 @@ func (m fieldseekerTreatmentareaMods) RandomShapeLengthNotNull(f *faker.Faker) F
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerTreatmentareaMods) Version(val int32) FieldseekerTreatmentareaMod {
|
||||
return FieldseekerTreatmentareaModFunc(func(_ context.Context, o *FieldseekerTreatmentareaTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerTreatmentareaMods) VersionFunc(f func() int32) FieldseekerTreatmentareaMod {
|
||||
return FieldseekerTreatmentareaModFunc(func(_ context.Context, o *FieldseekerTreatmentareaTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerTreatmentareaMods) UnsetVersion() FieldseekerTreatmentareaMod {
|
||||
return FieldseekerTreatmentareaModFunc(func(_ context.Context, o *FieldseekerTreatmentareaTemplate) {
|
||||
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 fieldseekerTreatmentareaMods) RandomVersion(f *faker.Faker) FieldseekerTreatmentareaMod {
|
||||
return FieldseekerTreatmentareaModFunc(func(_ context.Context, o *FieldseekerTreatmentareaTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerTreatmentareaMods) WithParentsCascading() FieldseekerTreatmentareaMod {
|
||||
return FieldseekerTreatmentareaModFunc(func(ctx context.Context, o *FieldseekerTreatmentareaTemplate) {
|
||||
if isDone, _ := fieldseekerTreatmentareaWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,90 +0,0 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
)
|
||||
|
||||
type FieldseekerUlvsprayrouteMod interface {
|
||||
Apply(context.Context, *FieldseekerUlvsprayrouteTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerUlvsprayrouteModFunc func(context.Context, *FieldseekerUlvsprayrouteTemplate)
|
||||
|
||||
func (f FieldseekerUlvsprayrouteModFunc) Apply(ctx context.Context, n *FieldseekerUlvsprayrouteTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerUlvsprayrouteModSlice []FieldseekerUlvsprayrouteMod
|
||||
|
||||
func (mods FieldseekerUlvsprayrouteModSlice) Apply(ctx context.Context, n *FieldseekerUlvsprayrouteTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerUlvsprayrouteTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerUlvsprayrouteTemplate struct {
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerUlvsprayrouteTemplate
|
||||
func (o *FieldseekerUlvsprayrouteTemplate) Apply(ctx context.Context, mods ...FieldseekerUlvsprayrouteMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerUlvsprayroute
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerUlvsprayrouteTemplate) setModelRels(o *models.FieldseekerUlvsprayroute) {}
|
||||
|
||||
// Build returns an *models.FieldseekerUlvsprayroute
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerUlvsprayrouteTemplate.Create
|
||||
func (o FieldseekerUlvsprayrouteTemplate) Build() *models.FieldseekerUlvsprayroute {
|
||||
m := &models.FieldseekerUlvsprayroute{}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerUlvsprayrouteSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerUlvsprayrouteTemplate.CreateMany
|
||||
func (o FieldseekerUlvsprayrouteTemplate) BuildMany(number int) models.FieldseekerUlvsprayrouteSlice {
|
||||
m := make(models.FieldseekerUlvsprayrouteSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerUlvsprayroute has methods that act as mods for the FieldseekerUlvsprayrouteTemplate
|
||||
var FieldseekerUlvsprayrouteMods fieldseekerUlvsprayrouteMods
|
||||
|
||||
type fieldseekerUlvsprayrouteMods struct{}
|
||||
|
||||
func (m fieldseekerUlvsprayrouteMods) RandomizeAllColumns(f *faker.Faker) FieldseekerUlvsprayrouteMod {
|
||||
return FieldseekerUlvsprayrouteModSlice{}
|
||||
}
|
||||
|
||||
func (m fieldseekerUlvsprayrouteMods) WithParentsCascading() FieldseekerUlvsprayrouteMod {
|
||||
return FieldseekerUlvsprayrouteModFunc(func(ctx context.Context, o *FieldseekerUlvsprayrouteTemplate) {
|
||||
if isDone, _ := fieldseekerUlvsprayrouteWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerUlvsprayrouteWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -52,6 +52,7 @@ type FieldseekerZoneTemplate struct {
|
|||
Editor func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -130,6 +131,10 @@ func (o FieldseekerZoneTemplate) BuildSetter() *models.FieldseekerZoneSetter {
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -194,6 +199,9 @@ func (o FieldseekerZoneTemplate) Build() *models.FieldseekerZone {
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -328,6 +336,7 @@ func (m fieldseekerZoneMods) RandomizeAllColumns(f *faker.Faker) FieldseekerZone
|
|||
FieldseekerZoneMods.RandomEditor(f),
|
||||
FieldseekerZoneMods.RandomShapeArea(f),
|
||||
FieldseekerZoneMods.RandomShapeLength(f),
|
||||
FieldseekerZoneMods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1051,6 +1060,37 @@ func (m fieldseekerZoneMods) RandomShapeLengthNotNull(f *faker.Faker) Fieldseeke
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZoneMods) Version(val int32) FieldseekerZoneMod {
|
||||
return FieldseekerZoneModFunc(func(_ context.Context, o *FieldseekerZoneTemplate) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZoneMods) VersionFunc(f func() int32) FieldseekerZoneMod {
|
||||
return FieldseekerZoneModFunc(func(_ context.Context, o *FieldseekerZoneTemplate) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZoneMods) UnsetVersion() FieldseekerZoneMod {
|
||||
return FieldseekerZoneModFunc(func(_ context.Context, o *FieldseekerZoneTemplate) {
|
||||
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 fieldseekerZoneMods) RandomVersion(f *faker.Faker) FieldseekerZoneMod {
|
||||
return FieldseekerZoneModFunc(func(_ context.Context, o *FieldseekerZoneTemplate) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerZoneMods) WithParentsCascading() FieldseekerZoneMod {
|
||||
return FieldseekerZoneModFunc(func(ctx context.Context, o *FieldseekerZoneTemplate) {
|
||||
if isDone, _ := fieldseekerZoneWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
@ -51,6 +51,7 @@ type FieldseekerZones2Template struct {
|
|||
Editor func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
Version func() int32
|
||||
|
||||
f *Factory
|
||||
|
||||
|
|
@ -125,6 +126,10 @@ func (o FieldseekerZones2Template) BuildSetter() *models.FieldseekerZones2Setter
|
|||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Version != nil {
|
||||
val := o.Version()
|
||||
m.Version = omit.From(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
@ -186,6 +191,9 @@ func (o FieldseekerZones2Template) Build() *models.FieldseekerZones2 {
|
|||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
if o.Version != nil {
|
||||
m.Version = o.Version()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
|
|
@ -319,6 +327,7 @@ func (m fieldseekerZones2Mods) RandomizeAllColumns(f *faker.Faker) FieldseekerZo
|
|||
FieldseekerZones2Mods.RandomEditor(f),
|
||||
FieldseekerZones2Mods.RandomShapeArea(f),
|
||||
FieldseekerZones2Mods.RandomShapeLength(f),
|
||||
FieldseekerZones2Mods.RandomVersion(f),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -989,6 +998,37 @@ func (m fieldseekerZones2Mods) RandomShapeLengthNotNull(f *faker.Faker) Fieldsee
|
|||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Version(val int32) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Version = func() int32 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) VersionFunc(f func() int32) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Version = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetVersion() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
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 fieldseekerZones2Mods) RandomVersion(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Version = func() int32 {
|
||||
return random_int32(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerZones2Mods) WithParentsCascading() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(ctx context.Context, o *FieldseekerZones2Template) {
|
||||
if isDone, _ := fieldseekerZones2WithParentsCascadingCtx.Value(ctx); isDone {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.3-0.20251202003046-49148fc66a73+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package factory
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue