Move to latest bobgen, add fieldseeker schema references
This is an intermediate step between shifting from the old fs_* prefixed table names to an entire fieldseeker schema. At this point we have both, and we aren't doing much with the new schema but compiling.
This commit is contained in:
parent
683c5134df
commit
7c4fb02908
452 changed files with 119980 additions and 879 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
@ -8,6 +8,127 @@ 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")
|
||||
|
||||
// Relationship Contexts for fieldseeker.fieldscoutinglog
|
||||
fieldseekerFieldscoutinglogWithParentsCascadingCtx = newContextual[bool]("fieldseekerFieldscoutinglogWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.habitatrelate
|
||||
fieldseekerHabitatrelateWithParentsCascadingCtx = newContextual[bool]("fieldseekerHabitatrelateWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.inspectionsample
|
||||
fieldseekerInspectionsampleWithParentsCascadingCtx = newContextual[bool]("fieldseekerInspectionsampleWithParentsCascading")
|
||||
|
||||
// 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")
|
||||
|
||||
// Relationship Contexts for fieldseeker.locationtracking
|
||||
fieldseekerLocationtrackingWithParentsCascadingCtx = newContextual[bool]("fieldseekerLocationtrackingWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.mosquitoinspection
|
||||
fieldseekerMosquitoinspectionWithParentsCascadingCtx = newContextual[bool]("fieldseekerMosquitoinspectionWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.pointlocation
|
||||
fieldseekerPointlocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerPointlocationWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.polygonlocation
|
||||
fieldseekerPolygonlocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerPolygonlocationWithParentsCascading")
|
||||
|
||||
// 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")
|
||||
|
||||
// Relationship Contexts for fieldseeker.samplelocation
|
||||
fieldseekerSamplelocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerSamplelocationWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.servicerequest
|
||||
fieldseekerServicerequestWithParentsCascadingCtx = newContextual[bool]("fieldseekerServicerequestWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.speciesabundance
|
||||
fieldseekerSpeciesabundanceWithParentsCascadingCtx = newContextual[bool]("fieldseekerSpeciesabundanceWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.stormdrain
|
||||
fieldseekerStormdrainWithParentsCascadingCtx = newContextual[bool]("fieldseekerStormdrainWithParentsCascading")
|
||||
|
||||
// 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")
|
||||
|
||||
// Relationship Contexts for fieldseeker.traplocation
|
||||
fieldseekerTraplocationWithParentsCascadingCtx = newContextual[bool]("fieldseekerTraplocationWithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker.treatment
|
||||
fieldseekerTreatmentWithParentsCascadingCtx = newContextual[bool]("fieldseekerTreatmentWithParentsCascading")
|
||||
|
||||
// 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")
|
||||
|
||||
// Relationship Contexts for fieldseeker.zones2
|
||||
fieldseekerZones2WithParentsCascadingCtx = newContextual[bool]("fieldseekerZones2WithParentsCascading")
|
||||
|
||||
// Relationship Contexts for fieldseeker_sync
|
||||
fieldseekerSyncWithParentsCascadingCtx = newContextual[bool]("fieldseekerSyncWithParentsCascading")
|
||||
fieldseekerSyncRelOrganizationCtx = newContextual[bool]("fieldseeker_sync.organization.fieldseeker_sync.fieldseeker_sync_organization_id_fkey")
|
||||
|
|
@ -251,6 +372,7 @@ 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")
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
@ -8,6 +8,654 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func TestCreateFieldseekerContainerrelate(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerContainerrelateWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerContainerrelate: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerFieldscoutinglog(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerFieldscoutinglogWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerFieldscoutinglog: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerHabitatrelate(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerHabitatrelateWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerHabitatrelate: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerInspectionsample(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerInspectionsampleWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerInspectionsample: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerInspectionsampledetail(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerInspectionsampledetailWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerInspectionsampledetail: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerLinelocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerLinelocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerLinelocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerLocationtracking(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerLocationtrackingWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerLocationtracking: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerMosquitoinspection(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerMosquitoinspectionWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerMosquitoinspection: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerPointlocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerPointlocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerPointlocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerPolygonlocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerPolygonlocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerPolygonlocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerPool(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerPoolWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerPool: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerPooldetail(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerPooldetailWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerPooldetail: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerProposedtreatmentarea(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerProposedtreatmentareaWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerProposedtreatmentarea: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerQamosquitoinspection(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerQamosquitoinspectionWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerQamosquitoinspection: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerRodentlocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerRodentlocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerRodentlocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerSamplecollection(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerSamplecollectionWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerSamplecollection: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerSamplelocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerSamplelocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerSamplelocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerServicerequest(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerServicerequestWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerServicerequest: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerSpeciesabundance(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerSpeciesabundanceWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerSpeciesabundance: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerStormdrain(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerStormdrainWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerStormdrain: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerTimecard(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerTimecardWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerTimecard: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerTrapdatum(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerTrapdatumWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerTrapdatum: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerTraplocation(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerTraplocationWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerTraplocation: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerTreatment(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerTreatmentWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerTreatment: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerTreatmentarea(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerTreatmentareaWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerTreatmentarea: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerZone(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerZoneWithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerZone: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerZones2(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithCancel(t.Context())
|
||||
t.Cleanup(cancel)
|
||||
|
||||
tx, err := testDB.Begin(ctx)
|
||||
if err != nil {
|
||||
t.Fatalf("Error starting transaction: %v", err)
|
||||
}
|
||||
|
||||
defer func() {
|
||||
if err := tx.Rollback(ctx); err != nil {
|
||||
t.Fatalf("Error rolling back transaction: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
if _, err := New().NewFieldseekerZones2WithContext(ctx).Create(ctx, tx); err != nil {
|
||||
t.Fatalf("Error creating FieldseekerZones2: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateFieldseekerSync(t *testing.T) {
|
||||
if testDB == nil {
|
||||
t.Skip("skipping test, no DSN provided")
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
@ -112,3 +112,14 @@ func TestRandom_time_Time(t *testing.T) {
|
|||
t.Fatalf("random_time_Time() returned the same value twice: %v", val1)
|
||||
}
|
||||
}
|
||||
|
||||
func TestRandom_uuid_UUID(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
val1 := random_uuid_UUID(nil)
|
||||
val2 := random_uuid_UUID(nil)
|
||||
|
||||
if val1 == val2 {
|
||||
t.Fatalf("random_uuid_UUID() returned the same value twice: %v", val1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
90
db/factory/fieldseeker.aerialsprayline.bob.go
Normal file
90
db/factory/fieldseeker.aerialsprayline.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
91
db/factory/fieldseeker.aerialspraysession.bob.go
Normal file
91
db/factory/fieldseeker.aerialspraysession.bob.go
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
90
db/factory/fieldseeker.barrierspray.bob.go
Normal file
90
db/factory/fieldseeker.barrierspray.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
90
db/factory/fieldseeker.barriersprayroute.bob.go
Normal file
90
db/factory/fieldseeker.barriersprayroute.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
1062
db/factory/fieldseeker.containerrelate.bob.go
Normal file
1062
db/factory/fieldseeker.containerrelate.bob.go
Normal file
File diff suppressed because it is too large
Load diff
876
db/factory/fieldseeker.fieldscoutinglog.bob.go
Normal file
876
db/factory/fieldseeker.fieldscoutinglog.bob.go
Normal file
|
|
@ -0,0 +1,876 @@
|
|||
// 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"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
enums "github.com/Gleipnir-Technology/nidus-sync/db/enums"
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/aarondl/opt/null"
|
||||
"github.com/aarondl/opt/omit"
|
||||
"github.com/aarondl/opt/omitnull"
|
||||
"github.com/gofrs/uuid/v5"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
"github.com/stephenafamo/bob"
|
||||
)
|
||||
|
||||
type FieldseekerFieldscoutinglogMod interface {
|
||||
Apply(context.Context, *FieldseekerFieldscoutinglogTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerFieldscoutinglogModFunc func(context.Context, *FieldseekerFieldscoutinglogTemplate)
|
||||
|
||||
func (f FieldseekerFieldscoutinglogModFunc) Apply(ctx context.Context, n *FieldseekerFieldscoutinglogTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerFieldscoutinglogModSlice []FieldseekerFieldscoutinglogMod
|
||||
|
||||
func (mods FieldseekerFieldscoutinglogModSlice) Apply(ctx context.Context, n *FieldseekerFieldscoutinglogTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerFieldscoutinglogTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerFieldscoutinglogTemplate struct {
|
||||
Objectid func() int64
|
||||
Status func() null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum]
|
||||
Globalid func() null.Val[uuid.UUID]
|
||||
CreatedUser func() null.Val[string]
|
||||
CreatedDate func() null.Val[time.Time]
|
||||
LastEditedUser func() null.Val[string]
|
||||
LastEditedDate func() null.Val[time.Time]
|
||||
Creationdate func() null.Val[time.Time]
|
||||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerFieldscoutinglogTemplate
|
||||
func (o *FieldseekerFieldscoutinglogTemplate) Apply(ctx context.Context, mods ...FieldseekerFieldscoutinglogMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerFieldscoutinglog
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerFieldscoutinglogTemplate) setModelRels(o *models.FieldseekerFieldscoutinglog) {}
|
||||
|
||||
// BuildSetter returns an *models.FieldseekerFieldscoutinglogSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerFieldscoutinglogTemplate) BuildSetter() *models.FieldseekerFieldscoutinglogSetter {
|
||||
m := &models.FieldseekerFieldscoutinglogSetter{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
val := o.Objectid()
|
||||
m.Objectid = omit.From(val)
|
||||
}
|
||||
if o.Status != nil {
|
||||
val := o.Status()
|
||||
m.Status = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
val := o.Globalid()
|
||||
m.Globalid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
val := o.CreatedUser()
|
||||
m.CreatedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
val := o.CreatedDate()
|
||||
m.CreatedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
val := o.LastEditedUser()
|
||||
m.LastEditedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
val := o.LastEditedDate()
|
||||
m.LastEditedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
val := o.Creationdate()
|
||||
m.Creationdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creator != nil {
|
||||
val := o.Creator()
|
||||
m.Creator = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
val := o.Editdate()
|
||||
m.Editdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editor != nil {
|
||||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildManySetter returns an []*models.FieldseekerFieldscoutinglogSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerFieldscoutinglogTemplate) BuildManySetter(number int) []*models.FieldseekerFieldscoutinglogSetter {
|
||||
m := make([]*models.FieldseekerFieldscoutinglogSetter, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.BuildSetter()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerFieldscoutinglog
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerFieldscoutinglogTemplate.Create
|
||||
func (o FieldseekerFieldscoutinglogTemplate) Build() *models.FieldseekerFieldscoutinglog {
|
||||
m := &models.FieldseekerFieldscoutinglog{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
m.Objectid = o.Objectid()
|
||||
}
|
||||
if o.Status != nil {
|
||||
m.Status = o.Status()
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
m.Globalid = o.Globalid()
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
m.CreatedUser = o.CreatedUser()
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
m.CreatedDate = o.CreatedDate()
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
m.LastEditedUser = o.LastEditedUser()
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
m.LastEditedDate = o.LastEditedDate()
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
m.Creationdate = o.Creationdate()
|
||||
}
|
||||
if o.Creator != nil {
|
||||
m.Creator = o.Creator()
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
m.Editdate = o.Editdate()
|
||||
}
|
||||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerFieldscoutinglogSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerFieldscoutinglogTemplate.CreateMany
|
||||
func (o FieldseekerFieldscoutinglogTemplate) BuildMany(number int) models.FieldseekerFieldscoutinglogSlice {
|
||||
m := make(models.FieldseekerFieldscoutinglogSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func ensureCreatableFieldseekerFieldscoutinglog(m *models.FieldseekerFieldscoutinglogSetter) {
|
||||
}
|
||||
|
||||
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerFieldscoutinglog
|
||||
// according to the relationships in the template.
|
||||
// any required relationship should have already exist on the model
|
||||
func (o *FieldseekerFieldscoutinglogTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerFieldscoutinglog) error {
|
||||
var err error
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Create builds a fieldseekerFieldscoutinglog and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o *FieldseekerFieldscoutinglogTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerFieldscoutinglog, error) {
|
||||
var err error
|
||||
opt := o.BuildSetter()
|
||||
ensureCreatableFieldseekerFieldscoutinglog(opt)
|
||||
|
||||
m, err := models.FieldseekerFieldscoutinglogs.Insert(opt).One(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
|
||||
// MustCreate builds a fieldseekerFieldscoutinglog and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o *FieldseekerFieldscoutinglogTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerFieldscoutinglog {
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateOrFail builds a fieldseekerFieldscoutinglog and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o *FieldseekerFieldscoutinglogTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerFieldscoutinglog {
|
||||
tb.Helper()
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateMany builds multiple fieldseekerFieldscoutinglogs and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o FieldseekerFieldscoutinglogTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerFieldscoutinglogSlice, error) {
|
||||
var err error
|
||||
m := make(models.FieldseekerFieldscoutinglogSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i], err = o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// MustCreateMany builds multiple fieldseekerFieldscoutinglogs and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o FieldseekerFieldscoutinglogTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerFieldscoutinglogSlice {
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateManyOrFail builds multiple fieldseekerFieldscoutinglogs and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o FieldseekerFieldscoutinglogTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerFieldscoutinglogSlice {
|
||||
tb.Helper()
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerFieldscoutinglog has methods that act as mods for the FieldseekerFieldscoutinglogTemplate
|
||||
var FieldseekerFieldscoutinglogMods fieldseekerFieldscoutinglogMods
|
||||
|
||||
type fieldseekerFieldscoutinglogMods struct{}
|
||||
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomizeAllColumns(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModSlice{
|
||||
FieldseekerFieldscoutinglogMods.RandomObjectid(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomStatus(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomGlobalid(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomCreatedUser(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomCreatedDate(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomLastEditedUser(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomLastEditedDate(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomCreationdate(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomCreator(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomEditdate(f),
|
||||
FieldseekerFieldscoutinglogMods.RandomEditor(f),
|
||||
}
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Objectid(val int64) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Objectid = func() int64 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) ObjectidFunc(f func() int64) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Objectid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetObjectid() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Objectid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomObjectid(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Objectid = func() int64 {
|
||||
return random_int64(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Status(val null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Status = func() null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) StatusFunc(f func() null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Status = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetStatus() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Status = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomStatus(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Status = func() null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_enums_FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomStatusNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Status = func() null.Val[enums.FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_enums_FieldseekerFieldscoutinglogFieldscoutingsymbologyEnum(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Globalid(val null.Val[uuid.UUID]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Globalid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetGlobalid() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Globalid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomGlobalid(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) CreatedUser(val null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetCreatedUser() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreatedUser(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) CreatedDate(val null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetCreatedDate() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreatedDate(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) LastEditedUser(val null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetLastEditedUser() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomLastEditedUser(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) LastEditedDate(val null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetLastEditedDate() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomLastEditedDate(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Creationdate(val null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creationdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetCreationdate() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creationdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreationdate(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Creator(val null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creator = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) CreatorFunc(f func() null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creator = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetCreator() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creator = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreator(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Editdate(val null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetEditdate() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomEditdate(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerFieldscoutinglogMods) Editor(val null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editor = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerFieldscoutinglogMods) EditorFunc(f func() null.Val[string]) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editor = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerFieldscoutinglogMods) UnsetEditor() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editor = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomEditor(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerFieldscoutinglogMods) RandomEditorNotNull(f *faker.Faker) FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(_ context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerFieldscoutinglogMods) WithParentsCascading() FieldseekerFieldscoutinglogMod {
|
||||
return FieldseekerFieldscoutinglogModFunc(func(ctx context.Context, o *FieldseekerFieldscoutinglogTemplate) {
|
||||
if isDone, _ := fieldseekerFieldscoutinglogWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerFieldscoutinglogWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
940
db/factory/fieldseeker.habitatrelate.bob.go
Normal file
940
db/factory/fieldseeker.habitatrelate.bob.go
Normal file
|
|
@ -0,0 +1,940 @@
|
|||
// 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"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
enums "github.com/Gleipnir-Technology/nidus-sync/db/enums"
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/aarondl/opt/null"
|
||||
"github.com/aarondl/opt/omit"
|
||||
"github.com/aarondl/opt/omitnull"
|
||||
"github.com/gofrs/uuid/v5"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
"github.com/stephenafamo/bob"
|
||||
)
|
||||
|
||||
type FieldseekerHabitatrelateMod interface {
|
||||
Apply(context.Context, *FieldseekerHabitatrelateTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerHabitatrelateModFunc func(context.Context, *FieldseekerHabitatrelateTemplate)
|
||||
|
||||
func (f FieldseekerHabitatrelateModFunc) Apply(ctx context.Context, n *FieldseekerHabitatrelateTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerHabitatrelateModSlice []FieldseekerHabitatrelateMod
|
||||
|
||||
func (mods FieldseekerHabitatrelateModSlice) Apply(ctx context.Context, n *FieldseekerHabitatrelateTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerHabitatrelateTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerHabitatrelateTemplate struct {
|
||||
Objectid func() int64
|
||||
ForeignID func() null.Val[uuid.UUID]
|
||||
Globalid func() null.Val[uuid.UUID]
|
||||
CreatedUser func() null.Val[string]
|
||||
CreatedDate func() null.Val[time.Time]
|
||||
LastEditedUser func() null.Val[string]
|
||||
LastEditedDate func() null.Val[time.Time]
|
||||
Habitattype func() null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284]
|
||||
Creationdate func() null.Val[time.Time]
|
||||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerHabitatrelateTemplate
|
||||
func (o *FieldseekerHabitatrelateTemplate) Apply(ctx context.Context, mods ...FieldseekerHabitatrelateMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerHabitatrelate
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerHabitatrelateTemplate) setModelRels(o *models.FieldseekerHabitatrelate) {}
|
||||
|
||||
// BuildSetter returns an *models.FieldseekerHabitatrelateSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerHabitatrelateTemplate) BuildSetter() *models.FieldseekerHabitatrelateSetter {
|
||||
m := &models.FieldseekerHabitatrelateSetter{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
val := o.Objectid()
|
||||
m.Objectid = omit.From(val)
|
||||
}
|
||||
if o.ForeignID != nil {
|
||||
val := o.ForeignID()
|
||||
m.ForeignID = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
val := o.Globalid()
|
||||
m.Globalid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
val := o.CreatedUser()
|
||||
m.CreatedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
val := o.CreatedDate()
|
||||
m.CreatedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
val := o.LastEditedUser()
|
||||
m.LastEditedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
val := o.LastEditedDate()
|
||||
m.LastEditedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Habitattype != nil {
|
||||
val := o.Habitattype()
|
||||
m.Habitattype = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
val := o.Creationdate()
|
||||
m.Creationdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creator != nil {
|
||||
val := o.Creator()
|
||||
m.Creator = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
val := o.Editdate()
|
||||
m.Editdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editor != nil {
|
||||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildManySetter returns an []*models.FieldseekerHabitatrelateSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerHabitatrelateTemplate) BuildManySetter(number int) []*models.FieldseekerHabitatrelateSetter {
|
||||
m := make([]*models.FieldseekerHabitatrelateSetter, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.BuildSetter()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerHabitatrelate
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerHabitatrelateTemplate.Create
|
||||
func (o FieldseekerHabitatrelateTemplate) Build() *models.FieldseekerHabitatrelate {
|
||||
m := &models.FieldseekerHabitatrelate{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
m.Objectid = o.Objectid()
|
||||
}
|
||||
if o.ForeignID != nil {
|
||||
m.ForeignID = o.ForeignID()
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
m.Globalid = o.Globalid()
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
m.CreatedUser = o.CreatedUser()
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
m.CreatedDate = o.CreatedDate()
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
m.LastEditedUser = o.LastEditedUser()
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
m.LastEditedDate = o.LastEditedDate()
|
||||
}
|
||||
if o.Habitattype != nil {
|
||||
m.Habitattype = o.Habitattype()
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
m.Creationdate = o.Creationdate()
|
||||
}
|
||||
if o.Creator != nil {
|
||||
m.Creator = o.Creator()
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
m.Editdate = o.Editdate()
|
||||
}
|
||||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerHabitatrelateSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerHabitatrelateTemplate.CreateMany
|
||||
func (o FieldseekerHabitatrelateTemplate) BuildMany(number int) models.FieldseekerHabitatrelateSlice {
|
||||
m := make(models.FieldseekerHabitatrelateSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func ensureCreatableFieldseekerHabitatrelate(m *models.FieldseekerHabitatrelateSetter) {
|
||||
}
|
||||
|
||||
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerHabitatrelate
|
||||
// according to the relationships in the template.
|
||||
// any required relationship should have already exist on the model
|
||||
func (o *FieldseekerHabitatrelateTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerHabitatrelate) error {
|
||||
var err error
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Create builds a fieldseekerHabitatrelate and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o *FieldseekerHabitatrelateTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerHabitatrelate, error) {
|
||||
var err error
|
||||
opt := o.BuildSetter()
|
||||
ensureCreatableFieldseekerHabitatrelate(opt)
|
||||
|
||||
m, err := models.FieldseekerHabitatrelates.Insert(opt).One(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
|
||||
// MustCreate builds a fieldseekerHabitatrelate and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o *FieldseekerHabitatrelateTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerHabitatrelate {
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateOrFail builds a fieldseekerHabitatrelate and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o *FieldseekerHabitatrelateTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerHabitatrelate {
|
||||
tb.Helper()
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateMany builds multiple fieldseekerHabitatrelates and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o FieldseekerHabitatrelateTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerHabitatrelateSlice, error) {
|
||||
var err error
|
||||
m := make(models.FieldseekerHabitatrelateSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i], err = o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// MustCreateMany builds multiple fieldseekerHabitatrelates and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o FieldseekerHabitatrelateTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerHabitatrelateSlice {
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateManyOrFail builds multiple fieldseekerHabitatrelates and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o FieldseekerHabitatrelateTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerHabitatrelateSlice {
|
||||
tb.Helper()
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerHabitatrelate has methods that act as mods for the FieldseekerHabitatrelateTemplate
|
||||
var FieldseekerHabitatrelateMods fieldseekerHabitatrelateMods
|
||||
|
||||
type fieldseekerHabitatrelateMods struct{}
|
||||
|
||||
func (m fieldseekerHabitatrelateMods) RandomizeAllColumns(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModSlice{
|
||||
FieldseekerHabitatrelateMods.RandomObjectid(f),
|
||||
FieldseekerHabitatrelateMods.RandomForeignID(f),
|
||||
FieldseekerHabitatrelateMods.RandomGlobalid(f),
|
||||
FieldseekerHabitatrelateMods.RandomCreatedUser(f),
|
||||
FieldseekerHabitatrelateMods.RandomCreatedDate(f),
|
||||
FieldseekerHabitatrelateMods.RandomLastEditedUser(f),
|
||||
FieldseekerHabitatrelateMods.RandomLastEditedDate(f),
|
||||
FieldseekerHabitatrelateMods.RandomHabitattype(f),
|
||||
FieldseekerHabitatrelateMods.RandomCreationdate(f),
|
||||
FieldseekerHabitatrelateMods.RandomCreator(f),
|
||||
FieldseekerHabitatrelateMods.RandomEditdate(f),
|
||||
FieldseekerHabitatrelateMods.RandomEditor(f),
|
||||
}
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Objectid(val int64) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Objectid = func() int64 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) ObjectidFunc(f func() int64) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Objectid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetObjectid() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Objectid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerHabitatrelateMods) RandomObjectid(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Objectid = func() int64 {
|
||||
return random_int64(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) ForeignID(val null.Val[uuid.UUID]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.ForeignID = func() null.Val[uuid.UUID] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) ForeignIDFunc(f func() null.Val[uuid.UUID]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.ForeignID = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetForeignID() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.ForeignID = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomForeignID(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.ForeignID = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomForeignIDNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.ForeignID = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Globalid(val null.Val[uuid.UUID]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Globalid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetGlobalid() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Globalid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomGlobalid(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) CreatedUser(val null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetCreatedUser() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreatedUser(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) CreatedDate(val null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetCreatedDate() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreatedDate(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) LastEditedUser(val null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetLastEditedUser() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomLastEditedUser(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) LastEditedDate(val null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetLastEditedDate() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomLastEditedDate(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Habitattype(val null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Habitattype = func() null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284] {
|
||||
return val
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) HabitattypeFunc(f func() null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Habitattype = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetHabitattype() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Habitattype = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomHabitattype(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Habitattype = func() null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_enums_FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomHabitattypeNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Habitattype = func() null.Val[enums.FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_enums_FieldseekerHabitatrelateHabitatrelateHabitattype2e81cf2f550e400783cf284(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Creationdate(val null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creationdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetCreationdate() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creationdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreationdate(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Creator(val null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creator = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) CreatorFunc(f func() null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creator = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetCreator() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creator = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreator(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Editdate(val null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetEditdate() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomEditdate(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerHabitatrelateMods) Editor(val null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editor = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerHabitatrelateMods) EditorFunc(f func() null.Val[string]) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editor = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerHabitatrelateMods) UnsetEditor() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editor = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerHabitatrelateMods) RandomEditor(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerHabitatrelateMods) RandomEditorNotNull(f *faker.Faker) FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(_ context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerHabitatrelateMods) WithParentsCascading() FieldseekerHabitatrelateMod {
|
||||
return FieldseekerHabitatrelateModFunc(func(ctx context.Context, o *FieldseekerHabitatrelateTemplate) {
|
||||
if isDone, _ := fieldseekerHabitatrelateWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerHabitatrelateWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
1062
db/factory/fieldseeker.inspectionsample.bob.go
Normal file
1062
db/factory/fieldseeker.inspectionsample.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1745
db/factory/fieldseeker.inspectionsampledetail.bob.go
Normal file
1745
db/factory/fieldseeker.inspectionsampledetail.bob.go
Normal file
File diff suppressed because it is too large
Load diff
90
db/factory/fieldseeker.landingcount.bob.go
Normal file
90
db/factory/fieldseeker.landingcount.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
91
db/factory/fieldseeker.landingcountlocation.bob.go
Normal file
91
db/factory/fieldseeker.landingcountlocation.bob.go
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
3174
db/factory/fieldseeker.linelocation.bob.go
Normal file
3174
db/factory/fieldseeker.linelocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
937
db/factory/fieldseeker.locationtracking.bob.go
Normal file
937
db/factory/fieldseeker.locationtracking.bob.go
Normal file
|
|
@ -0,0 +1,937 @@
|
|||
// 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"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/aarondl/opt/null"
|
||||
"github.com/aarondl/opt/omit"
|
||||
"github.com/aarondl/opt/omitnull"
|
||||
"github.com/gofrs/uuid/v5"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
"github.com/stephenafamo/bob"
|
||||
)
|
||||
|
||||
type FieldseekerLocationtrackingMod interface {
|
||||
Apply(context.Context, *FieldseekerLocationtrackingTemplate)
|
||||
}
|
||||
|
||||
type FieldseekerLocationtrackingModFunc func(context.Context, *FieldseekerLocationtrackingTemplate)
|
||||
|
||||
func (f FieldseekerLocationtrackingModFunc) Apply(ctx context.Context, n *FieldseekerLocationtrackingTemplate) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerLocationtrackingModSlice []FieldseekerLocationtrackingMod
|
||||
|
||||
func (mods FieldseekerLocationtrackingModSlice) Apply(ctx context.Context, n *FieldseekerLocationtrackingTemplate) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerLocationtrackingTemplate is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerLocationtrackingTemplate struct {
|
||||
Objectid func() int64
|
||||
Accuracy func() null.Val[float64]
|
||||
CreatedUser func() null.Val[string]
|
||||
CreatedDate func() null.Val[time.Time]
|
||||
LastEditedUser func() null.Val[string]
|
||||
LastEditedDate func() null.Val[time.Time]
|
||||
Globalid func() null.Val[uuid.UUID]
|
||||
Fieldtech func() null.Val[string]
|
||||
Creationdate func() null.Val[time.Time]
|
||||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerLocationtrackingTemplate
|
||||
func (o *FieldseekerLocationtrackingTemplate) Apply(ctx context.Context, mods ...FieldseekerLocationtrackingMod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerLocationtracking
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerLocationtrackingTemplate) setModelRels(o *models.FieldseekerLocationtracking) {}
|
||||
|
||||
// BuildSetter returns an *models.FieldseekerLocationtrackingSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerLocationtrackingTemplate) BuildSetter() *models.FieldseekerLocationtrackingSetter {
|
||||
m := &models.FieldseekerLocationtrackingSetter{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
val := o.Objectid()
|
||||
m.Objectid = omit.From(val)
|
||||
}
|
||||
if o.Accuracy != nil {
|
||||
val := o.Accuracy()
|
||||
m.Accuracy = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
val := o.CreatedUser()
|
||||
m.CreatedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
val := o.CreatedDate()
|
||||
m.CreatedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
val := o.LastEditedUser()
|
||||
m.LastEditedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
val := o.LastEditedDate()
|
||||
m.LastEditedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
val := o.Globalid()
|
||||
m.Globalid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Fieldtech != nil {
|
||||
val := o.Fieldtech()
|
||||
m.Fieldtech = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
val := o.Creationdate()
|
||||
m.Creationdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creator != nil {
|
||||
val := o.Creator()
|
||||
m.Creator = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
val := o.Editdate()
|
||||
m.Editdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editor != nil {
|
||||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildManySetter returns an []*models.FieldseekerLocationtrackingSetter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerLocationtrackingTemplate) BuildManySetter(number int) []*models.FieldseekerLocationtrackingSetter {
|
||||
m := make([]*models.FieldseekerLocationtrackingSetter, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.BuildSetter()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerLocationtracking
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLocationtrackingTemplate.Create
|
||||
func (o FieldseekerLocationtrackingTemplate) Build() *models.FieldseekerLocationtracking {
|
||||
m := &models.FieldseekerLocationtracking{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
m.Objectid = o.Objectid()
|
||||
}
|
||||
if o.Accuracy != nil {
|
||||
m.Accuracy = o.Accuracy()
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
m.CreatedUser = o.CreatedUser()
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
m.CreatedDate = o.CreatedDate()
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
m.LastEditedUser = o.LastEditedUser()
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
m.LastEditedDate = o.LastEditedDate()
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
m.Globalid = o.Globalid()
|
||||
}
|
||||
if o.Fieldtech != nil {
|
||||
m.Fieldtech = o.Fieldtech()
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
m.Creationdate = o.Creationdate()
|
||||
}
|
||||
if o.Creator != nil {
|
||||
m.Creator = o.Creator()
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
m.Editdate = o.Editdate()
|
||||
}
|
||||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerLocationtrackingSlice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerLocationtrackingTemplate.CreateMany
|
||||
func (o FieldseekerLocationtrackingTemplate) BuildMany(number int) models.FieldseekerLocationtrackingSlice {
|
||||
m := make(models.FieldseekerLocationtrackingSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func ensureCreatableFieldseekerLocationtracking(m *models.FieldseekerLocationtrackingSetter) {
|
||||
}
|
||||
|
||||
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerLocationtracking
|
||||
// according to the relationships in the template.
|
||||
// any required relationship should have already exist on the model
|
||||
func (o *FieldseekerLocationtrackingTemplate) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerLocationtracking) error {
|
||||
var err error
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Create builds a fieldseekerLocationtracking and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o *FieldseekerLocationtrackingTemplate) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerLocationtracking, error) {
|
||||
var err error
|
||||
opt := o.BuildSetter()
|
||||
ensureCreatableFieldseekerLocationtracking(opt)
|
||||
|
||||
m, err := models.FieldseekerLocationtrackings.Insert(opt).One(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
|
||||
// MustCreate builds a fieldseekerLocationtracking and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o *FieldseekerLocationtrackingTemplate) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerLocationtracking {
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateOrFail builds a fieldseekerLocationtracking and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o *FieldseekerLocationtrackingTemplate) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerLocationtracking {
|
||||
tb.Helper()
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateMany builds multiple fieldseekerLocationtrackings and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o FieldseekerLocationtrackingTemplate) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerLocationtrackingSlice, error) {
|
||||
var err error
|
||||
m := make(models.FieldseekerLocationtrackingSlice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i], err = o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// MustCreateMany builds multiple fieldseekerLocationtrackings and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o FieldseekerLocationtrackingTemplate) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerLocationtrackingSlice {
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateManyOrFail builds multiple fieldseekerLocationtrackings and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o FieldseekerLocationtrackingTemplate) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerLocationtrackingSlice {
|
||||
tb.Helper()
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerLocationtracking has methods that act as mods for the FieldseekerLocationtrackingTemplate
|
||||
var FieldseekerLocationtrackingMods fieldseekerLocationtrackingMods
|
||||
|
||||
type fieldseekerLocationtrackingMods struct{}
|
||||
|
||||
func (m fieldseekerLocationtrackingMods) RandomizeAllColumns(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModSlice{
|
||||
FieldseekerLocationtrackingMods.RandomObjectid(f),
|
||||
FieldseekerLocationtrackingMods.RandomAccuracy(f),
|
||||
FieldseekerLocationtrackingMods.RandomCreatedUser(f),
|
||||
FieldseekerLocationtrackingMods.RandomCreatedDate(f),
|
||||
FieldseekerLocationtrackingMods.RandomLastEditedUser(f),
|
||||
FieldseekerLocationtrackingMods.RandomLastEditedDate(f),
|
||||
FieldseekerLocationtrackingMods.RandomGlobalid(f),
|
||||
FieldseekerLocationtrackingMods.RandomFieldtech(f),
|
||||
FieldseekerLocationtrackingMods.RandomCreationdate(f),
|
||||
FieldseekerLocationtrackingMods.RandomCreator(f),
|
||||
FieldseekerLocationtrackingMods.RandomEditdate(f),
|
||||
FieldseekerLocationtrackingMods.RandomEditor(f),
|
||||
}
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Objectid(val int64) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Objectid = func() int64 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) ObjectidFunc(f func() int64) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Objectid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetObjectid() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Objectid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerLocationtrackingMods) RandomObjectid(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Objectid = func() int64 {
|
||||
return random_int64(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Accuracy(val null.Val[float64]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Accuracy = func() null.Val[float64] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) AccuracyFunc(f func() null.Val[float64]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Accuracy = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetAccuracy() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Accuracy = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomAccuracy(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Accuracy = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomAccuracyNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Accuracy = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) CreatedUser(val null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) CreatedUserFunc(f func() null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetCreatedUser() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreatedUser(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) CreatedDate(val null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetCreatedDate() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreatedDate(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) LastEditedUser(val null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetLastEditedUser() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomLastEditedUser(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) LastEditedDate(val null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetLastEditedDate() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomLastEditedDate(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Globalid(val null.Val[uuid.UUID]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Globalid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetGlobalid() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Globalid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomGlobalid(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Fieldtech(val null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Fieldtech = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) FieldtechFunc(f func() null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Fieldtech = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetFieldtech() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Fieldtech = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomFieldtech(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Fieldtech = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "25")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomFieldtechNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Fieldtech = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "25")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Creationdate(val null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creationdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetCreationdate() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creationdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreationdate(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Creator(val null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creator = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) CreatorFunc(f func() null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creator = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetCreator() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creator = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreator(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomCreatorNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Editdate(val null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetEditdate() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomEditdate(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomEditdateNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerLocationtrackingMods) Editor(val null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editor = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerLocationtrackingMods) EditorFunc(f func() null.Val[string]) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editor = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerLocationtrackingMods) UnsetEditor() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editor = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerLocationtrackingMods) RandomEditor(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerLocationtrackingMods) RandomEditorNotNull(f *faker.Faker) FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(_ context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerLocationtrackingMods) WithParentsCascading() FieldseekerLocationtrackingMod {
|
||||
return FieldseekerLocationtrackingModFunc(func(ctx context.Context, o *FieldseekerLocationtrackingTemplate) {
|
||||
if isDone, _ := fieldseekerLocationtrackingWithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerLocationtrackingWithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
3737
db/factory/fieldseeker.mosquitoinspection.bob.go
Normal file
3737
db/factory/fieldseeker.mosquitoinspection.bob.go
Normal file
File diff suppressed because it is too large
Load diff
2930
db/factory/fieldseeker.pointlocation.bob.go
Normal file
2930
db/factory/fieldseeker.pointlocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
2804
db/factory/fieldseeker.polygonlocation.bob.go
Normal file
2804
db/factory/fieldseeker.polygonlocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1932
db/factory/fieldseeker.pool.bob.go
Normal file
1932
db/factory/fieldseeker.pool.bob.go
Normal file
File diff suppressed because it is too large
Load diff
90
db/factory/fieldseeker.poolbuffer.bob.go
Normal file
90
db/factory/fieldseeker.poolbuffer.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
1061
db/factory/fieldseeker.pooldetail.bob.go
Normal file
1061
db/factory/fieldseeker.pooldetail.bob.go
Normal file
File diff suppressed because it is too large
Load diff
2241
db/factory/fieldseeker.proposedtreatmentarea.bob.go
Normal file
2241
db/factory/fieldseeker.proposedtreatmentarea.bob.go
Normal file
File diff suppressed because it is too large
Load diff
90
db/factory/fieldseeker.qalarvcount.bob.go
Normal file
90
db/factory/fieldseeker.qalarvcount.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
4039
db/factory/fieldseeker.qamosquitoinspection.bob.go
Normal file
4039
db/factory/fieldseeker.qamosquitoinspection.bob.go
Normal file
File diff suppressed because it is too large
Load diff
91
db/factory/fieldseeker.qaproductobservation.bob.go
Normal file
91
db/factory/fieldseeker.qaproductobservation.bob.go
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
90
db/factory/fieldseeker.restrictedarea.bob.go
Normal file
90
db/factory/fieldseeker.restrictedarea.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
90
db/factory/fieldseeker.rodentinspection.bob.go
Normal file
90
db/factory/fieldseeker.rodentinspection.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
2168
db/factory/fieldseeker.rodentlocation.bob.go
Normal file
2168
db/factory/fieldseeker.rodentlocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
3046
db/factory/fieldseeker.samplecollection.bob.go
Normal file
3046
db/factory/fieldseeker.samplecollection.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1682
db/factory/fieldseeker.samplelocation.bob.go
Normal file
1682
db/factory/fieldseeker.samplelocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
5532
db/factory/fieldseeker.servicerequest.bob.go
Normal file
5532
db/factory/fieldseeker.servicerequest.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1992
db/factory/fieldseeker.speciesabundance.bob.go
Normal file
1992
db/factory/fieldseeker.speciesabundance.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1372
db/factory/fieldseeker.stormdrain.bob.go
Normal file
1372
db/factory/fieldseeker.stormdrain.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1932
db/factory/fieldseeker.timecard.bob.go
Normal file
1932
db/factory/fieldseeker.timecard.bob.go
Normal file
File diff suppressed because it is too large
Load diff
90
db/factory/fieldseeker.tracklog.bob.go
Normal file
90
db/factory/fieldseeker.tracklog.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
2798
db/factory/fieldseeker.trapdata.bob.go
Normal file
2798
db/factory/fieldseeker.trapdata.bob.go
Normal file
File diff suppressed because it is too large
Load diff
2060
db/factory/fieldseeker.traplocation.bob.go
Normal file
2060
db/factory/fieldseeker.traplocation.bob.go
Normal file
File diff suppressed because it is too large
Load diff
3548
db/factory/fieldseeker.treatment.bob.go
Normal file
3548
db/factory/fieldseeker.treatment.bob.go
Normal file
File diff suppressed because it is too large
Load diff
1309
db/factory/fieldseeker.treatmentarea.bob.go
Normal file
1309
db/factory/fieldseeker.treatmentarea.bob.go
Normal file
File diff suppressed because it is too large
Load diff
90
db/factory/fieldseeker.ulvsprayroute.bob.go
Normal file
90
db/factory/fieldseeker.ulvsprayroute.bob.go
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
// 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)
|
||||
})
|
||||
}
|
||||
1061
db/factory/fieldseeker.zones.bob.go
Normal file
1061
db/factory/fieldseeker.zones.bob.go
Normal file
File diff suppressed because it is too large
Load diff
999
db/factory/fieldseeker.zones2.bob.go
Normal file
999
db/factory/fieldseeker.zones2.bob.go
Normal file
|
|
@ -0,0 +1,999 @@
|
|||
// 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"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
|
||||
"github.com/aarondl/opt/null"
|
||||
"github.com/aarondl/opt/omit"
|
||||
"github.com/aarondl/opt/omitnull"
|
||||
"github.com/gofrs/uuid/v5"
|
||||
"github.com/jaswdr/faker/v2"
|
||||
"github.com/stephenafamo/bob"
|
||||
)
|
||||
|
||||
type FieldseekerZones2Mod interface {
|
||||
Apply(context.Context, *FieldseekerZones2Template)
|
||||
}
|
||||
|
||||
type FieldseekerZones2ModFunc func(context.Context, *FieldseekerZones2Template)
|
||||
|
||||
func (f FieldseekerZones2ModFunc) Apply(ctx context.Context, n *FieldseekerZones2Template) {
|
||||
f(ctx, n)
|
||||
}
|
||||
|
||||
type FieldseekerZones2ModSlice []FieldseekerZones2Mod
|
||||
|
||||
func (mods FieldseekerZones2ModSlice) Apply(ctx context.Context, n *FieldseekerZones2Template) {
|
||||
for _, f := range mods {
|
||||
f.Apply(ctx, n)
|
||||
}
|
||||
}
|
||||
|
||||
// FieldseekerZones2Template is an object representing the database table.
|
||||
// all columns are optional and should be set by mods
|
||||
type FieldseekerZones2Template struct {
|
||||
Objectid func() int64
|
||||
Name func() null.Val[string]
|
||||
Globalid func() null.Val[uuid.UUID]
|
||||
CreatedUser func() null.Val[string]
|
||||
CreatedDate func() null.Val[time.Time]
|
||||
LastEditedUser func() null.Val[string]
|
||||
LastEditedDate func() null.Val[time.Time]
|
||||
Creationdate func() null.Val[time.Time]
|
||||
Creator func() null.Val[string]
|
||||
Editdate func() null.Val[time.Time]
|
||||
Editor func() null.Val[string]
|
||||
ShapeArea func() null.Val[float64]
|
||||
ShapeLength func() null.Val[float64]
|
||||
|
||||
f *Factory
|
||||
|
||||
alreadyPersisted bool
|
||||
}
|
||||
|
||||
// Apply mods to the FieldseekerZones2Template
|
||||
func (o *FieldseekerZones2Template) Apply(ctx context.Context, mods ...FieldseekerZones2Mod) {
|
||||
for _, mod := range mods {
|
||||
mod.Apply(ctx, o)
|
||||
}
|
||||
}
|
||||
|
||||
// setModelRels creates and sets the relationships on *models.FieldseekerZones2
|
||||
// according to the relationships in the template. Nothing is inserted into the db
|
||||
func (t FieldseekerZones2Template) setModelRels(o *models.FieldseekerZones2) {}
|
||||
|
||||
// BuildSetter returns an *models.FieldseekerZones2Setter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerZones2Template) BuildSetter() *models.FieldseekerZones2Setter {
|
||||
m := &models.FieldseekerZones2Setter{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
val := o.Objectid()
|
||||
m.Objectid = omit.From(val)
|
||||
}
|
||||
if o.Name != nil {
|
||||
val := o.Name()
|
||||
m.Name = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
val := o.Globalid()
|
||||
m.Globalid = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
val := o.CreatedUser()
|
||||
m.CreatedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
val := o.CreatedDate()
|
||||
m.CreatedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
val := o.LastEditedUser()
|
||||
m.LastEditedUser = omitnull.FromNull(val)
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
val := o.LastEditedDate()
|
||||
m.LastEditedDate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
val := o.Creationdate()
|
||||
m.Creationdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Creator != nil {
|
||||
val := o.Creator()
|
||||
m.Creator = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
val := o.Editdate()
|
||||
m.Editdate = omitnull.FromNull(val)
|
||||
}
|
||||
if o.Editor != nil {
|
||||
val := o.Editor()
|
||||
m.Editor = omitnull.FromNull(val)
|
||||
}
|
||||
if o.ShapeArea != nil {
|
||||
val := o.ShapeArea()
|
||||
m.ShapeArea = omitnull.FromNull(val)
|
||||
}
|
||||
if o.ShapeLength != nil {
|
||||
val := o.ShapeLength()
|
||||
m.ShapeLength = omitnull.FromNull(val)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildManySetter returns an []*models.FieldseekerZones2Setter
|
||||
// this does nothing with the relationship templates
|
||||
func (o FieldseekerZones2Template) BuildManySetter(number int) []*models.FieldseekerZones2Setter {
|
||||
m := make([]*models.FieldseekerZones2Setter, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.BuildSetter()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// Build returns an *models.FieldseekerZones2
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerZones2Template.Create
|
||||
func (o FieldseekerZones2Template) Build() *models.FieldseekerZones2 {
|
||||
m := &models.FieldseekerZones2{}
|
||||
|
||||
if o.Objectid != nil {
|
||||
m.Objectid = o.Objectid()
|
||||
}
|
||||
if o.Name != nil {
|
||||
m.Name = o.Name()
|
||||
}
|
||||
if o.Globalid != nil {
|
||||
m.Globalid = o.Globalid()
|
||||
}
|
||||
if o.CreatedUser != nil {
|
||||
m.CreatedUser = o.CreatedUser()
|
||||
}
|
||||
if o.CreatedDate != nil {
|
||||
m.CreatedDate = o.CreatedDate()
|
||||
}
|
||||
if o.LastEditedUser != nil {
|
||||
m.LastEditedUser = o.LastEditedUser()
|
||||
}
|
||||
if o.LastEditedDate != nil {
|
||||
m.LastEditedDate = o.LastEditedDate()
|
||||
}
|
||||
if o.Creationdate != nil {
|
||||
m.Creationdate = o.Creationdate()
|
||||
}
|
||||
if o.Creator != nil {
|
||||
m.Creator = o.Creator()
|
||||
}
|
||||
if o.Editdate != nil {
|
||||
m.Editdate = o.Editdate()
|
||||
}
|
||||
if o.Editor != nil {
|
||||
m.Editor = o.Editor()
|
||||
}
|
||||
if o.ShapeArea != nil {
|
||||
m.ShapeArea = o.ShapeArea()
|
||||
}
|
||||
if o.ShapeLength != nil {
|
||||
m.ShapeLength = o.ShapeLength()
|
||||
}
|
||||
|
||||
o.setModelRels(m)
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
// BuildMany returns an models.FieldseekerZones2Slice
|
||||
// Related objects are also created and placed in the .R field
|
||||
// NOTE: Objects are not inserted into the database. Use FieldseekerZones2Template.CreateMany
|
||||
func (o FieldseekerZones2Template) BuildMany(number int) models.FieldseekerZones2Slice {
|
||||
m := make(models.FieldseekerZones2Slice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i] = o.Build()
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
func ensureCreatableFieldseekerZones2(m *models.FieldseekerZones2Setter) {
|
||||
}
|
||||
|
||||
// insertOptRels creates and inserts any optional the relationships on *models.FieldseekerZones2
|
||||
// according to the relationships in the template.
|
||||
// any required relationship should have already exist on the model
|
||||
func (o *FieldseekerZones2Template) insertOptRels(ctx context.Context, exec bob.Executor, m *models.FieldseekerZones2) error {
|
||||
var err error
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
// Create builds a fieldseekerZones2 and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o *FieldseekerZones2Template) Create(ctx context.Context, exec bob.Executor) (*models.FieldseekerZones2, error) {
|
||||
var err error
|
||||
opt := o.BuildSetter()
|
||||
ensureCreatableFieldseekerZones2(opt)
|
||||
|
||||
m, err := models.FieldseekerZones2s.Insert(opt).One(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if err := o.insertOptRels(ctx, exec, m); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return m, err
|
||||
}
|
||||
|
||||
// MustCreate builds a fieldseekerZones2 and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o *FieldseekerZones2Template) MustCreate(ctx context.Context, exec bob.Executor) *models.FieldseekerZones2 {
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateOrFail builds a fieldseekerZones2 and inserts it into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o *FieldseekerZones2Template) CreateOrFail(ctx context.Context, tb testing.TB, exec bob.Executor) *models.FieldseekerZones2 {
|
||||
tb.Helper()
|
||||
m, err := o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateMany builds multiple fieldseekerZones2s and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
func (o FieldseekerZones2Template) CreateMany(ctx context.Context, exec bob.Executor, number int) (models.FieldseekerZones2Slice, error) {
|
||||
var err error
|
||||
m := make(models.FieldseekerZones2Slice, number)
|
||||
|
||||
for i := range m {
|
||||
m[i], err = o.Create(ctx, exec)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// MustCreateMany builds multiple fieldseekerZones2s and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// panics if an error occurs
|
||||
func (o FieldseekerZones2Template) MustCreateMany(ctx context.Context, exec bob.Executor, number int) models.FieldseekerZones2Slice {
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// CreateManyOrFail builds multiple fieldseekerZones2s and inserts them into the database
|
||||
// Relations objects are also inserted and placed in the .R field
|
||||
// It calls `tb.Fatal(err)` on the test/benchmark if an error occurs
|
||||
func (o FieldseekerZones2Template) CreateManyOrFail(ctx context.Context, tb testing.TB, exec bob.Executor, number int) models.FieldseekerZones2Slice {
|
||||
tb.Helper()
|
||||
m, err := o.CreateMany(ctx, exec, number)
|
||||
if err != nil {
|
||||
tb.Fatal(err)
|
||||
return nil
|
||||
}
|
||||
return m
|
||||
}
|
||||
|
||||
// FieldseekerZones2 has methods that act as mods for the FieldseekerZones2Template
|
||||
var FieldseekerZones2Mods fieldseekerZones2Mods
|
||||
|
||||
type fieldseekerZones2Mods struct{}
|
||||
|
||||
func (m fieldseekerZones2Mods) RandomizeAllColumns(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModSlice{
|
||||
FieldseekerZones2Mods.RandomObjectid(f),
|
||||
FieldseekerZones2Mods.RandomName(f),
|
||||
FieldseekerZones2Mods.RandomGlobalid(f),
|
||||
FieldseekerZones2Mods.RandomCreatedUser(f),
|
||||
FieldseekerZones2Mods.RandomCreatedDate(f),
|
||||
FieldseekerZones2Mods.RandomLastEditedUser(f),
|
||||
FieldseekerZones2Mods.RandomLastEditedDate(f),
|
||||
FieldseekerZones2Mods.RandomCreationdate(f),
|
||||
FieldseekerZones2Mods.RandomCreator(f),
|
||||
FieldseekerZones2Mods.RandomEditdate(f),
|
||||
FieldseekerZones2Mods.RandomEditor(f),
|
||||
FieldseekerZones2Mods.RandomShapeArea(f),
|
||||
FieldseekerZones2Mods.RandomShapeLength(f),
|
||||
}
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Objectid(val int64) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Objectid = func() int64 { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) ObjectidFunc(f func() int64) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Objectid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetObjectid() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Objectid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
func (m fieldseekerZones2Mods) RandomObjectid(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Objectid = func() int64 {
|
||||
return random_int64(f)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Name(val null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Name = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) NameFunc(f func() null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Name = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetName() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Name = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomName(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Name = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "50")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomNameNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Name = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "50")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Globalid(val null.Val[uuid.UUID]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) GlobalidFunc(f func() null.Val[uuid.UUID]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Globalid = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetGlobalid() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Globalid = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomGlobalid(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomGlobalidNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Globalid = func() null.Val[uuid.UUID] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_uuid_UUID(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) CreatedUser(val null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) CreatedUserFunc(f func() null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetCreatedUser() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomCreatedUser(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomCreatedUserNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) CreatedDate(val null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) CreatedDateFunc(f func() null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetCreatedDate() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomCreatedDate(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomCreatedDateNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.CreatedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) LastEditedUser(val null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedUser = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) LastEditedUserFunc(f func() null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedUser = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetLastEditedUser() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedUser = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomLastEditedUser(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomLastEditedUserNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedUser = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "255")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) LastEditedDate(val null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) LastEditedDateFunc(f func() null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedDate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetLastEditedDate() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedDate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomLastEditedDate(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomLastEditedDateNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.LastEditedDate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Creationdate(val null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creationdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) CreationdateFunc(f func() null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creationdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetCreationdate() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creationdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomCreationdate(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomCreationdateNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creationdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Creator(val null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creator = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) CreatorFunc(f func() null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creator = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetCreator() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creator = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomCreator(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomCreatorNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Creator = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Editdate(val null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editdate = func() null.Val[time.Time] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) EditdateFunc(f func() null.Val[time.Time]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editdate = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetEditdate() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editdate = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomEditdate(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomEditdateNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editdate = func() null.Val[time.Time] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_time_Time(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) Editor(val null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editor = func() null.Val[string] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) EditorFunc(f func() null.Val[string]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editor = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetEditor() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editor = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomEditor(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomEditorNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.Editor = func() null.Val[string] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_string(f, "128")
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) ShapeArea(val null.Val[float64]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeArea = func() null.Val[float64] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) ShapeAreaFunc(f func() null.Val[float64]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeArea = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetShapeArea() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeArea = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomShapeArea(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeArea = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomShapeAreaNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeArea = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Set the model columns to this value
|
||||
func (m fieldseekerZones2Mods) ShapeLength(val null.Val[float64]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeLength = func() null.Val[float64] { return val }
|
||||
})
|
||||
}
|
||||
|
||||
// Set the Column from the function
|
||||
func (m fieldseekerZones2Mods) ShapeLengthFunc(f func() null.Val[float64]) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeLength = f
|
||||
})
|
||||
}
|
||||
|
||||
// Clear any values for the column
|
||||
func (m fieldseekerZones2Mods) UnsetShapeLength() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeLength = nil
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is sometimes null
|
||||
func (m fieldseekerZones2Mods) RandomShapeLength(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeLength = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Generates a random value for the column using the given faker
|
||||
// if faker is nil, a default faker is used
|
||||
// The generated value is never null
|
||||
func (m fieldseekerZones2Mods) RandomShapeLengthNotNull(f *faker.Faker) FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(_ context.Context, o *FieldseekerZones2Template) {
|
||||
o.ShapeLength = func() null.Val[float64] {
|
||||
if f == nil {
|
||||
f = &defaultFaker
|
||||
}
|
||||
|
||||
val := random_float64(f)
|
||||
return null.From(val)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
func (m fieldseekerZones2Mods) WithParentsCascading() FieldseekerZones2Mod {
|
||||
return FieldseekerZones2ModFunc(func(ctx context.Context, o *FieldseekerZones2Template) {
|
||||
if isDone, _ := fieldseekerZones2WithParentsCascadingCtx.Value(ctx); isDone {
|
||||
return
|
||||
}
|
||||
ctx = fieldseekerZones2WithParentsCascadingCtx.WithValue(ctx, true)
|
||||
})
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
|
||||
// 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
|
||||
|
|
|
|||
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