Move database logic into separate subdirectory

I'm trying to see if this speeds up builds a bit. May not without a
module boundary, but for now it's nice organization to have as the
program grows.
This commit is contained in:
Eli Ribble 2025-11-24 18:08:24 +00:00
parent 338f90708e
commit 41587c3694
No known key found for this signature in database
333 changed files with 206 additions and 200 deletions

1
db/bob Submodule

@ -0,0 +1 @@
Subproject commit 96da65fd88a50ae532079e8ea69746183f4af3a1

10
db/bobgen.yaml Normal file
View file

@ -0,0 +1,10 @@
aliases:
user_:
up_plural: "Users"
up_singular: "User"
down_plural: "users"
down_singular: "user"
psql:
queries:
- ./sql
plugins_preset: "all"

145
db/connection.go Normal file
View file

@ -0,0 +1,145 @@
package db
import (
"context"
"database/sql"
"embed"
"errors"
"fmt"
"io/fs"
"sync"
//"github.com/georgysavva/scany/v2/pgxscan"
//"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
"github.com/jackc/pgx/v5/stdlib"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/pressly/goose/v3"
"github.com/rs/zerolog/log"
"github.com/stephenafamo/bob"
)
//go:embed migrations/*.sql
var embedMigrations embed.FS
type postgres struct {
BobDB bob.DB
PGXPool *pgxpool.Pool
}
var (
PGInstance *postgres
pgOnce sync.Once
)
func doMigrations(connection_string string) error {
log.Info().Str("dsn", connection_string).Msg("Connecting to database")
db, err := sql.Open("pgx", connection_string)
if err != nil {
return fmt.Errorf("Failed to open database connection: %w", err)
}
defer db.Close()
row := db.QueryRowContext(context.Background(), "SELECT version()")
var val string
if err := row.Scan(&val); err != nil {
return fmt.Errorf("Failed to get database version query result: %w", err)
}
log.Info().Str("version", val).Msg("Connected to database")
fsys, err := fs.Sub(embedMigrations, "migrations")
if err != nil {
return fmt.Errorf("Failed to get migrations embedded directory: %w", err)
}
provider, err := goose.NewProvider(goose.DialectPostgres, db, fsys)
if err != nil {
return fmt.Errorf("Failed to create goose provider: %w", err)
}
//goose.SetBaseFS(embedMigrations)
current, target, err := provider.GetVersions(context.Background())
if err != nil {
return fmt.Errorf("Faield to get goose versions: %w", err)
}
log.Info().Int("current", int(current)).Int("target", int(target)).Msg("Migration status")
results, err := provider.Up(context.Background())
if err != nil {
return fmt.Errorf("Failed to run migrations: %w", err)
}
if len(results) > 0 {
for _, r := range results {
log.Info().Int("version", int(r.Source.Version)).Str("direction", r.Direction).Msg("Migration done")
}
} else {
log.Info().Msg("No migrations necessary.")
}
return nil
}
func InitializeDatabase(ctx context.Context, uri string) error {
needs, err := needsMigrations(uri)
if err != nil {
return fmt.Errorf("Failed to determine if migrations are needed: %w", err)
}
if needs == nil {
return errors.New("Can't read variable 'needs' - it's nil")
}
if *needs {
//return errors.New(fmt.Sprintf("Must migrate database before connecting: %t", *needs))
log.Info().Msg("Handling database migrations")
err = doMigrations(uri)
if err != nil {
return fmt.Errorf("Failed to handle migrations: %w", err)
}
} else {
log.Info().Msg("No database migrations necessary")
}
pgOnce.Do(func() {
db, e := pgxpool.New(ctx, uri)
bobDB := bob.NewDB(stdlib.OpenDBFromPool(db))
PGInstance = &postgres{bobDB, db}
err = e
})
if err != nil {
return fmt.Errorf("unable to create connection pool: %w", err)
}
var current string
query := `SELECT current_database()`
err = PGInstance.BobDB.QueryRow(query).Scan(&current)
if err != nil {
return fmt.Errorf("Failed to get database current: %w", err)
}
log.Info().Str("database", current).Msg("Connected to database")
return nil
}
func needsMigrations(connection_string string) (*bool, error) {
log.Info().Str("dsn", connection_string).Msg("Connecting to database")
db, err := sql.Open("pgx", connection_string)
if err != nil {
return nil, fmt.Errorf("Failed to open database connection: %w", err)
}
defer db.Close()
row := db.QueryRowContext(context.Background(), "SELECT version()")
var val string
if err := row.Scan(&val); err != nil {
return nil, fmt.Errorf("Failed to get database version query result: %w", err)
}
log.Info().Str("dsn", val).Msg("Connected to database")
fsys, err := fs.Sub(embedMigrations, "migrations")
if err != nil {
return nil, fmt.Errorf("Failed to get migrations embedded directory: %w", err)
}
provider, err := goose.NewProvider(goose.DialectPostgres, db, fsys)
if err != nil {
return nil, fmt.Errorf("Failed to create goose provider: %w", err)
}
hasPending, err := provider.HasPending(context.Background())
if err != nil {
return nil, err
}
return &hasPending, nil
}

View file

@ -0,0 +1,32 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
import "github.com/lib/pq"
// ErrUniqueConstraint captures all unique constraint errors by explicitly leaving `s` empty.
var ErrUniqueConstraint = &UniqueConstraintError{s: ""}
type UniqueConstraintError struct {
// schema is the schema where the unique constraint is defined.
schema string
// table is the name of the table where the unique constraint is defined.
table string
// columns are the columns constituting the unique constraint.
columns []string
// s is a string uniquely identifying the constraint in the raw error message returned from the database.
s string
}
func (e *UniqueConstraintError) Error() string {
return e.s
}
func (e *UniqueConstraintError) Is(target error) bool {
err, ok := target.(*pq.Error)
if !ok {
return false
}
return err.Code == "23505" && (e.s == "" || err.Constraint == e.s)
}

View file

@ -0,0 +1,9 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
import "github.com/stephenafamo/bob"
// Set the testDB to enable tests that use the database
var testDB bob.Transactor[bob.Tx]

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FieldseekerSyncErrors = &fieldseekerSyncErrors{
ErrUniqueFieldseekerSyncPkey: &UniqueConstraintError{
schema: "",
table: "fieldseeker_sync",
columns: []string{"id"},
s: "fieldseeker_sync_pkey",
},
}
type fieldseekerSyncErrors struct {
ErrUniqueFieldseekerSyncPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSContainerrelateErrors = &fsContainerrelateErrors{
ErrUniqueFsContainerrelatePkey: &UniqueConstraintError{
schema: "",
table: "fs_containerrelate",
columns: []string{"objectid"},
s: "fs_containerrelate_pkey",
},
}
type fsContainerrelateErrors struct {
ErrUniqueFsContainerrelatePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSFieldscoutinglogErrors = &fsFieldscoutinglogErrors{
ErrUniqueFsFieldscoutinglogPkey: &UniqueConstraintError{
schema: "",
table: "fs_fieldscoutinglog",
columns: []string{"objectid"},
s: "fs_fieldscoutinglog_pkey",
},
}
type fsFieldscoutinglogErrors struct {
ErrUniqueFsFieldscoutinglogPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSHabitatrelateErrors = &fsHabitatrelateErrors{
ErrUniqueFsHabitatrelatePkey: &UniqueConstraintError{
schema: "",
table: "fs_habitatrelate",
columns: []string{"objectid"},
s: "fs_habitatrelate_pkey",
},
}
type fsHabitatrelateErrors struct {
ErrUniqueFsHabitatrelatePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSInspectionsampleErrors = &fsInspectionsampleErrors{
ErrUniqueFsInspectionsamplePkey: &UniqueConstraintError{
schema: "",
table: "fs_inspectionsample",
columns: []string{"objectid"},
s: "fs_inspectionsample_pkey",
},
}
type fsInspectionsampleErrors struct {
ErrUniqueFsInspectionsamplePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSInspectionsampledetailErrors = &fsInspectionsampledetailErrors{
ErrUniqueFsInspectionsampledetailPkey: &UniqueConstraintError{
schema: "",
table: "fs_inspectionsampledetail",
columns: []string{"objectid"},
s: "fs_inspectionsampledetail_pkey",
},
}
type fsInspectionsampledetailErrors struct {
ErrUniqueFsInspectionsampledetailPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSLinelocationErrors = &fsLinelocationErrors{
ErrUniqueFsLinelocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_linelocation",
columns: []string{"objectid"},
s: "fs_linelocation_pkey",
},
}
type fsLinelocationErrors struct {
ErrUniqueFsLinelocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSLocationtrackingErrors = &fsLocationtrackingErrors{
ErrUniqueFsLocationtrackingPkey: &UniqueConstraintError{
schema: "",
table: "fs_locationtracking",
columns: []string{"objectid"},
s: "fs_locationtracking_pkey",
},
}
type fsLocationtrackingErrors struct {
ErrUniqueFsLocationtrackingPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSMosquitoinspectionErrors = &fsMosquitoinspectionErrors{
ErrUniqueFsMosquitoinspectionPkey: &UniqueConstraintError{
schema: "",
table: "fs_mosquitoinspection",
columns: []string{"objectid"},
s: "fs_mosquitoinspection_pkey",
},
}
type fsMosquitoinspectionErrors struct {
ErrUniqueFsMosquitoinspectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSPointlocationErrors = &fsPointlocationErrors{
ErrUniqueFsPointlocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_pointlocation",
columns: []string{"objectid"},
s: "fs_pointlocation_pkey",
},
}
type fsPointlocationErrors struct {
ErrUniqueFsPointlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSPolygonlocationErrors = &fsPolygonlocationErrors{
ErrUniqueFsPolygonlocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_polygonlocation",
columns: []string{"objectid"},
s: "fs_polygonlocation_pkey",
},
}
type fsPolygonlocationErrors struct {
ErrUniqueFsPolygonlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSPoolErrors = &fsPoolErrors{
ErrUniqueFsPoolPkey: &UniqueConstraintError{
schema: "",
table: "fs_pool",
columns: []string{"objectid"},
s: "fs_pool_pkey",
},
}
type fsPoolErrors struct {
ErrUniqueFsPoolPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSPooldetailErrors = &fsPooldetailErrors{
ErrUniqueFsPooldetailPkey: &UniqueConstraintError{
schema: "",
table: "fs_pooldetail",
columns: []string{"objectid"},
s: "fs_pooldetail_pkey",
},
}
type fsPooldetailErrors struct {
ErrUniqueFsPooldetailPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSProposedtreatmentareaErrors = &fsProposedtreatmentareaErrors{
ErrUniqueFsProposedtreatmentareaPkey: &UniqueConstraintError{
schema: "",
table: "fs_proposedtreatmentarea",
columns: []string{"objectid"},
s: "fs_proposedtreatmentarea_pkey",
},
}
type fsProposedtreatmentareaErrors struct {
ErrUniqueFsProposedtreatmentareaPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSQamosquitoinspectionErrors = &fsQamosquitoinspectionErrors{
ErrUniqueFsQamosquitoinspectionPkey: &UniqueConstraintError{
schema: "",
table: "fs_qamosquitoinspection",
columns: []string{"objectid"},
s: "fs_qamosquitoinspection_pkey",
},
}
type fsQamosquitoinspectionErrors struct {
ErrUniqueFsQamosquitoinspectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSRodentlocationErrors = &fsRodentlocationErrors{
ErrUniqueFsRodentlocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_rodentlocation",
columns: []string{"objectid"},
s: "fs_rodentlocation_pkey",
},
}
type fsRodentlocationErrors struct {
ErrUniqueFsRodentlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSSamplecollectionErrors = &fsSamplecollectionErrors{
ErrUniqueFsSamplecollectionPkey: &UniqueConstraintError{
schema: "",
table: "fs_samplecollection",
columns: []string{"objectid"},
s: "fs_samplecollection_pkey",
},
}
type fsSamplecollectionErrors struct {
ErrUniqueFsSamplecollectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSSamplelocationErrors = &fsSamplelocationErrors{
ErrUniqueFsSamplelocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_samplelocation",
columns: []string{"objectid"},
s: "fs_samplelocation_pkey",
},
}
type fsSamplelocationErrors struct {
ErrUniqueFsSamplelocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSServicerequestErrors = &fsServicerequestErrors{
ErrUniqueFsServicerequestPkey: &UniqueConstraintError{
schema: "",
table: "fs_servicerequest",
columns: []string{"objectid"},
s: "fs_servicerequest_pkey",
},
}
type fsServicerequestErrors struct {
ErrUniqueFsServicerequestPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSSpeciesabundanceErrors = &fsSpeciesabundanceErrors{
ErrUniqueFsSpeciesabundancePkey: &UniqueConstraintError{
schema: "",
table: "fs_speciesabundance",
columns: []string{"objectid"},
s: "fs_speciesabundance_pkey",
},
}
type fsSpeciesabundanceErrors struct {
ErrUniqueFsSpeciesabundancePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSStormdrainErrors = &fsStormdrainErrors{
ErrUniqueFsStormdrainPkey: &UniqueConstraintError{
schema: "",
table: "fs_stormdrain",
columns: []string{"objectid"},
s: "fs_stormdrain_pkey",
},
}
type fsStormdrainErrors struct {
ErrUniqueFsStormdrainPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSTimecardErrors = &fsTimecardErrors{
ErrUniqueFsTimecardPkey: &UniqueConstraintError{
schema: "",
table: "fs_timecard",
columns: []string{"objectid"},
s: "fs_timecard_pkey",
},
}
type fsTimecardErrors struct {
ErrUniqueFsTimecardPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSTrapdatumErrors = &fsTrapdatumErrors{
ErrUniqueFsTrapdataPkey: &UniqueConstraintError{
schema: "",
table: "fs_trapdata",
columns: []string{"objectid"},
s: "fs_trapdata_pkey",
},
}
type fsTrapdatumErrors struct {
ErrUniqueFsTrapdataPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSTraplocationErrors = &fsTraplocationErrors{
ErrUniqueFsTraplocationPkey: &UniqueConstraintError{
schema: "",
table: "fs_traplocation",
columns: []string{"objectid"},
s: "fs_traplocation_pkey",
},
}
type fsTraplocationErrors struct {
ErrUniqueFsTraplocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSTreatmentErrors = &fsTreatmentErrors{
ErrUniqueFsTreatmentPkey: &UniqueConstraintError{
schema: "",
table: "fs_treatment",
columns: []string{"objectid"},
s: "fs_treatment_pkey",
},
}
type fsTreatmentErrors struct {
ErrUniqueFsTreatmentPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSTreatmentareaErrors = &fsTreatmentareaErrors{
ErrUniqueFsTreatmentareaPkey: &UniqueConstraintError{
schema: "",
table: "fs_treatmentarea",
columns: []string{"objectid"},
s: "fs_treatmentarea_pkey",
},
}
type fsTreatmentareaErrors struct {
ErrUniqueFsTreatmentareaPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSZoneErrors = &fsZoneErrors{
ErrUniqueFsZonesPkey: &UniqueConstraintError{
schema: "",
table: "fs_zones",
columns: []string{"objectid"},
s: "fs_zones_pkey",
},
}
type fsZoneErrors struct {
ErrUniqueFsZonesPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var FSZones2Errors = &fsZones2Errors{
ErrUniqueFsZones2Pkey: &UniqueConstraintError{
schema: "",
table: "fs_zones2",
columns: []string{"objectid"},
s: "fs_zones2_pkey",
},
}
type fsZones2Errors struct {
ErrUniqueFsZones2Pkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var GooseDBVersionErrors = &gooseDBVersionErrors{
ErrUniqueGooseDbVersionPkey: &UniqueConstraintError{
schema: "",
table: "goose_db_version",
columns: []string{"id"},
s: "goose_db_version_pkey",
},
}
type gooseDBVersionErrors struct {
ErrUniqueGooseDbVersionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,26 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var H3AggregationErrors = &h3AggregationErrors{
ErrUniqueH3AggregationPkey: &UniqueConstraintError{
schema: "",
table: "h3_aggregation",
columns: []string{"id"},
s: "h3_aggregation_pkey",
},
ErrUniqueH3AggregationCellOrganizationIdType_Key: &UniqueConstraintError{
schema: "",
table: "h3_aggregation",
columns: []string{"cell", "organization_id", "type_"},
s: "h3_aggregation_cell_organization_id_type__key",
},
}
type h3AggregationErrors struct {
ErrUniqueH3AggregationPkey *UniqueConstraintError
ErrUniqueH3AggregationCellOrganizationIdType_Key *UniqueConstraintError
}

View file

@ -0,0 +1,110 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
import (
"context"
"errors"
"testing"
factory "github.com/Gleipnir-Technology/nidus-sync/db/factory"
models "github.com/Gleipnir-Technology/nidus-sync/db/models"
"github.com/stephenafamo/bob"
)
func TestH3AggregationUniqueConstraintErrors(t *testing.T) {
if testDB == nil {
t.Skip("No database connection provided")
}
f := factory.New()
tests := []struct {
name string
expectedErr *UniqueConstraintError
conflictMods func(context.Context, *testing.T, bob.Executor, *models.H3Aggregation) factory.H3AggregationModSlice
}{
{
name: "ErrUniqueH3AggregationPkey",
expectedErr: H3AggregationErrors.ErrUniqueH3AggregationPkey,
conflictMods: func(ctx context.Context, t *testing.T, exec bob.Executor, obj *models.H3Aggregation) factory.H3AggregationModSlice {
shouldUpdate := false
updateMods := make(factory.H3AggregationModSlice, 0, 1)
if shouldUpdate {
if err := obj.Update(ctx, exec, f.NewH3AggregationWithContext(ctx, updateMods...).BuildSetter()); err != nil {
t.Fatalf("Error updating object: %v", err)
}
}
return factory.H3AggregationModSlice{
factory.H3AggregationMods.ID(obj.ID),
}
},
},
{
name: "ErrUniqueH3AggregationCellOrganizationIdType_Key",
expectedErr: H3AggregationErrors.ErrUniqueH3AggregationCellOrganizationIdType_Key,
conflictMods: func(ctx context.Context, t *testing.T, exec bob.Executor, obj *models.H3Aggregation) factory.H3AggregationModSlice {
shouldUpdate := false
updateMods := make(factory.H3AggregationModSlice, 0, 3)
if shouldUpdate {
if err := obj.Update(ctx, exec, f.NewH3AggregationWithContext(ctx, updateMods...).BuildSetter()); err != nil {
t.Fatalf("Error updating object: %v", err)
}
}
return factory.H3AggregationModSlice{
factory.H3AggregationMods.Cell(obj.Cell),
factory.H3AggregationMods.OrganizationID(obj.OrganizationID),
factory.H3AggregationMods.Type(obj.Type),
}
},
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ctx, cancel := context.WithCancel(t.Context())
t.Cleanup(cancel)
tx, err := testDB.Begin(ctx)
if err != nil {
t.Fatalf("Couldn't start database transaction: %v", err)
}
defer func() {
if err := tx.Rollback(ctx); err != nil {
t.Fatalf("Error rolling back transaction: %v", err)
}
}()
var exec bob.Executor = tx
obj, err := f.NewH3AggregationWithContext(ctx, factory.H3AggregationMods.WithParentsCascading()).Create(ctx, exec)
if err != nil {
t.Fatal(err)
}
obj2, err := f.NewH3AggregationWithContext(ctx).Create(ctx, exec)
if err != nil {
t.Fatal(err)
}
err = obj2.Update(ctx, exec, f.NewH3AggregationWithContext(ctx, tt.conflictMods(ctx, t, exec, obj)...).BuildSetter())
if !errors.Is(ErrUniqueConstraint, err) {
t.Fatalf("Expected: %s, Got: %v", tt.name, err)
}
if !errors.Is(tt.expectedErr, err) {
t.Fatalf("Expected: %s, Got: %v", tt.expectedErr.Error(), err)
}
if !ErrUniqueConstraint.Is(err) {
t.Fatalf("Expected: %s, Got: %v", tt.name, err)
}
if !tt.expectedErr.Is(err) {
t.Fatalf("Expected: %s, Got: %v", tt.expectedErr.Error(), err)
}
})
}
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryContainerrelateErrors = &historyContainerrelateErrors{
ErrUniqueHistoryContainerrelatePkey: &UniqueConstraintError{
schema: "",
table: "history_containerrelate",
columns: []string{"objectid", "version"},
s: "history_containerrelate_pkey",
},
}
type historyContainerrelateErrors struct {
ErrUniqueHistoryContainerrelatePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryFieldscoutinglogErrors = &historyFieldscoutinglogErrors{
ErrUniqueHistoryFieldscoutinglogPkey: &UniqueConstraintError{
schema: "",
table: "history_fieldscoutinglog",
columns: []string{"objectid", "version"},
s: "history_fieldscoutinglog_pkey",
},
}
type historyFieldscoutinglogErrors struct {
ErrUniqueHistoryFieldscoutinglogPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryHabitatrelateErrors = &historyHabitatrelateErrors{
ErrUniqueHistoryHabitatrelatePkey: &UniqueConstraintError{
schema: "",
table: "history_habitatrelate",
columns: []string{"objectid", "version"},
s: "history_habitatrelate_pkey",
},
}
type historyHabitatrelateErrors struct {
ErrUniqueHistoryHabitatrelatePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryInspectionsampleErrors = &historyInspectionsampleErrors{
ErrUniqueHistoryInspectionsamplePkey: &UniqueConstraintError{
schema: "",
table: "history_inspectionsample",
columns: []string{"objectid", "version"},
s: "history_inspectionsample_pkey",
},
}
type historyInspectionsampleErrors struct {
ErrUniqueHistoryInspectionsamplePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryInspectionsampledetailErrors = &historyInspectionsampledetailErrors{
ErrUniqueHistoryInspectionsampledetailPkey: &UniqueConstraintError{
schema: "",
table: "history_inspectionsampledetail",
columns: []string{"objectid", "version"},
s: "history_inspectionsampledetail_pkey",
},
}
type historyInspectionsampledetailErrors struct {
ErrUniqueHistoryInspectionsampledetailPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryLinelocationErrors = &historyLinelocationErrors{
ErrUniqueHistoryLinelocationPkey: &UniqueConstraintError{
schema: "",
table: "history_linelocation",
columns: []string{"objectid", "version"},
s: "history_linelocation_pkey",
},
}
type historyLinelocationErrors struct {
ErrUniqueHistoryLinelocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryLocationtrackingErrors = &historyLocationtrackingErrors{
ErrUniqueHistoryLocationtrackingPkey: &UniqueConstraintError{
schema: "",
table: "history_locationtracking",
columns: []string{"objectid", "version"},
s: "history_locationtracking_pkey",
},
}
type historyLocationtrackingErrors struct {
ErrUniqueHistoryLocationtrackingPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryMosquitoinspectionErrors = &historyMosquitoinspectionErrors{
ErrUniqueHistoryMosquitoinspectionPkey: &UniqueConstraintError{
schema: "",
table: "history_mosquitoinspection",
columns: []string{"objectid", "version"},
s: "history_mosquitoinspection_pkey",
},
}
type historyMosquitoinspectionErrors struct {
ErrUniqueHistoryMosquitoinspectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryPointlocationErrors = &historyPointlocationErrors{
ErrUniqueHistoryPointlocationPkey: &UniqueConstraintError{
schema: "",
table: "history_pointlocation",
columns: []string{"objectid", "version"},
s: "history_pointlocation_pkey",
},
}
type historyPointlocationErrors struct {
ErrUniqueHistoryPointlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryPolygonlocationErrors = &historyPolygonlocationErrors{
ErrUniqueHistoryPolygonlocationPkey: &UniqueConstraintError{
schema: "",
table: "history_polygonlocation",
columns: []string{"objectid", "version"},
s: "history_polygonlocation_pkey",
},
}
type historyPolygonlocationErrors struct {
ErrUniqueHistoryPolygonlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryPoolErrors = &historyPoolErrors{
ErrUniqueHistoryPoolPkey: &UniqueConstraintError{
schema: "",
table: "history_pool",
columns: []string{"objectid", "version"},
s: "history_pool_pkey",
},
}
type historyPoolErrors struct {
ErrUniqueHistoryPoolPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryPooldetailErrors = &historyPooldetailErrors{
ErrUniqueHistoryPooldetailPkey: &UniqueConstraintError{
schema: "",
table: "history_pooldetail",
columns: []string{"objectid", "version"},
s: "history_pooldetail_pkey",
},
}
type historyPooldetailErrors struct {
ErrUniqueHistoryPooldetailPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryProposedtreatmentareaErrors = &historyProposedtreatmentareaErrors{
ErrUniqueHistoryProposedtreatmentareaPkey: &UniqueConstraintError{
schema: "",
table: "history_proposedtreatmentarea",
columns: []string{"objectid", "version"},
s: "history_proposedtreatmentarea_pkey",
},
}
type historyProposedtreatmentareaErrors struct {
ErrUniqueHistoryProposedtreatmentareaPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryQamosquitoinspectionErrors = &historyQamosquitoinspectionErrors{
ErrUniqueHistoryQamosquitoinspectionPkey: &UniqueConstraintError{
schema: "",
table: "history_qamosquitoinspection",
columns: []string{"objectid", "version"},
s: "history_qamosquitoinspection_pkey",
},
}
type historyQamosquitoinspectionErrors struct {
ErrUniqueHistoryQamosquitoinspectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryRodentlocationErrors = &historyRodentlocationErrors{
ErrUniqueHistoryRodentlocationPkey: &UniqueConstraintError{
schema: "",
table: "history_rodentlocation",
columns: []string{"objectid", "version"},
s: "history_rodentlocation_pkey",
},
}
type historyRodentlocationErrors struct {
ErrUniqueHistoryRodentlocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistorySamplecollectionErrors = &historySamplecollectionErrors{
ErrUniqueHistorySamplecollectionPkey: &UniqueConstraintError{
schema: "",
table: "history_samplecollection",
columns: []string{"objectid", "version"},
s: "history_samplecollection_pkey",
},
}
type historySamplecollectionErrors struct {
ErrUniqueHistorySamplecollectionPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistorySamplelocationErrors = &historySamplelocationErrors{
ErrUniqueHistorySamplelocationPkey: &UniqueConstraintError{
schema: "",
table: "history_samplelocation",
columns: []string{"objectid", "version"},
s: "history_samplelocation_pkey",
},
}
type historySamplelocationErrors struct {
ErrUniqueHistorySamplelocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryServicerequestErrors = &historyServicerequestErrors{
ErrUniqueHistoryServicerequestPkey: &UniqueConstraintError{
schema: "",
table: "history_servicerequest",
columns: []string{"objectid", "version"},
s: "history_servicerequest_pkey",
},
}
type historyServicerequestErrors struct {
ErrUniqueHistoryServicerequestPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistorySpeciesabundanceErrors = &historySpeciesabundanceErrors{
ErrUniqueHistorySpeciesabundancePkey: &UniqueConstraintError{
schema: "",
table: "history_speciesabundance",
columns: []string{"objectid", "version"},
s: "history_speciesabundance_pkey",
},
}
type historySpeciesabundanceErrors struct {
ErrUniqueHistorySpeciesabundancePkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryStormdrainErrors = &historyStormdrainErrors{
ErrUniqueHistoryStormdrainPkey: &UniqueConstraintError{
schema: "",
table: "history_stormdrain",
columns: []string{"objectid", "version"},
s: "history_stormdrain_pkey",
},
}
type historyStormdrainErrors struct {
ErrUniqueHistoryStormdrainPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryTimecardErrors = &historyTimecardErrors{
ErrUniqueHistoryTimecardPkey: &UniqueConstraintError{
schema: "",
table: "history_timecard",
columns: []string{"objectid", "version"},
s: "history_timecard_pkey",
},
}
type historyTimecardErrors struct {
ErrUniqueHistoryTimecardPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryTrapdatumErrors = &historyTrapdatumErrors{
ErrUniqueHistoryTrapdataPkey: &UniqueConstraintError{
schema: "",
table: "history_trapdata",
columns: []string{"objectid", "version"},
s: "history_trapdata_pkey",
},
}
type historyTrapdatumErrors struct {
ErrUniqueHistoryTrapdataPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryTraplocationErrors = &historyTraplocationErrors{
ErrUniqueHistoryTraplocationPkey: &UniqueConstraintError{
schema: "",
table: "history_traplocation",
columns: []string{"objectid", "version"},
s: "history_traplocation_pkey",
},
}
type historyTraplocationErrors struct {
ErrUniqueHistoryTraplocationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryTreatmentErrors = &historyTreatmentErrors{
ErrUniqueHistoryTreatmentPkey: &UniqueConstraintError{
schema: "",
table: "history_treatment",
columns: []string{"objectid", "version"},
s: "history_treatment_pkey",
},
}
type historyTreatmentErrors struct {
ErrUniqueHistoryTreatmentPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryTreatmentareaErrors = &historyTreatmentareaErrors{
ErrUniqueHistoryTreatmentareaPkey: &UniqueConstraintError{
schema: "",
table: "history_treatmentarea",
columns: []string{"objectid", "version"},
s: "history_treatmentarea_pkey",
},
}
type historyTreatmentareaErrors struct {
ErrUniqueHistoryTreatmentareaPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryZoneErrors = &historyZoneErrors{
ErrUniqueHistoryZonesPkey: &UniqueConstraintError{
schema: "",
table: "history_zones",
columns: []string{"objectid", "version"},
s: "history_zones_pkey",
},
}
type historyZoneErrors struct {
ErrUniqueHistoryZonesPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var HistoryZones2Errors = &historyZones2Errors{
ErrUniqueHistoryZones2Pkey: &UniqueConstraintError{
schema: "",
table: "history_zones2",
columns: []string{"objectid", "version"},
s: "history_zones2_pkey",
},
}
type historyZones2Errors struct {
ErrUniqueHistoryZones2Pkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var NotificationErrors = &notificationErrors{
ErrUniqueNotificationPkey: &UniqueConstraintError{
schema: "",
table: "notification",
columns: []string{"id"},
s: "notification_pkey",
},
}
type notificationErrors struct {
ErrUniqueNotificationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var OauthTokenErrors = &oauthTokenErrors{
ErrUniqueOauthTokenPkey: &UniqueConstraintError{
schema: "",
table: "oauth_token",
columns: []string{"id"},
s: "oauth_token_pkey",
},
}
type oauthTokenErrors struct {
ErrUniqueOauthTokenPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var OrganizationErrors = &organizationErrors{
ErrUniqueOrganizationPkey: &UniqueConstraintError{
schema: "",
table: "organization",
columns: []string{"id"},
s: "organization_pkey",
},
}
type organizationErrors struct {
ErrUniqueOrganizationPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var SessionErrors = &sessionErrors{
ErrUniqueSessionsPkey: &UniqueConstraintError{
schema: "",
table: "sessions",
columns: []string{"token"},
s: "sessions_pkey",
},
}
type sessionErrors struct {
ErrUniqueSessionsPkey *UniqueConstraintError
}

View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var SpatialRefSyErrors = &spatialRefSyErrors{
ErrUniqueSpatialRefSysPkey: &UniqueConstraintError{
schema: "",
table: "spatial_ref_sys",
columns: []string{"srid"},
s: "spatial_ref_sys_pkey",
},
}
type spatialRefSyErrors struct {
ErrUniqueSpatialRefSysPkey *UniqueConstraintError
}

17
db/dberrors/user_.bob.go Normal file
View file

@ -0,0 +1,17 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dberrors
var UserErrors = &userErrors{
ErrUniqueUser_Pkey: &UniqueConstraintError{
schema: "",
table: "user_",
columns: []string{"id"},
s: "user__pkey",
},
}
type userErrors struct {
ErrUniqueUser_Pkey *UniqueConstraintError
}

View file

@ -0,0 +1,83 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
type Table[Cols columns, Idxs indexes, FKs foreignKeys, U uniques, C checks] struct {
Schema string
Name string
Columns Cols
Indexes Idxs
PrimaryKey *constraint
ForeignKeys FKs
Uniques U
Checks C
Comment string
}
type columns interface {
AsSlice() []column
}
type column struct {
Name string
DBType string
Default string
Comment string
Nullable bool
Generated bool
AutoIncr bool
}
type indexes interface {
AsSlice() []index
}
type index struct {
Type string
Name string
Columns []indexColumn
Unique bool
Comment string
NullsFirst []bool
NullsDistinct bool
Where string
Include []string
}
type indexColumn struct {
Name string
Desc null.Val[bool]
IsExpression bool
}
type constraint struct {
Name string
Columns []string
Comment string
}
type foreignKeys interface {
AsSlice() []foreignKey
}
type foreignKey struct {
constraint
ForeignTable string
ForeignColumns []string
}
type uniques interface {
AsSlice() []constraint
}
type checks interface {
AsSlice() []check
}
type check struct {
constraint
Expression string
}

View file

@ -0,0 +1,157 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FieldseekerSyncs = Table[
fieldseekerSyncColumns,
fieldseekerSyncIndexes,
fieldseekerSyncForeignKeys,
fieldseekerSyncUniques,
fieldseekerSyncChecks,
]{
Schema: "",
Name: "fieldseeker_sync",
Columns: fieldseekerSyncColumns{
ID: column{
Name: "id",
DBType: "integer",
Default: "nextval('fieldseeker_sync_id_seq'::regclass)",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Created: column{
Name: "created",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
RecordsCreated: column{
Name: "records_created",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
RecordsUpdated: column{
Name: "records_updated",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
RecordsUnchanged: column{
Name: "records_unchanged",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fieldseekerSyncIndexes{
FieldseekerSyncPkey: index{
Type: "btree",
Name: "fieldseeker_sync_pkey",
Columns: []indexColumn{
{
Name: "id",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fieldseeker_sync_pkey",
Columns: []string{"id"},
Comment: "",
},
ForeignKeys: fieldseekerSyncForeignKeys{
FieldseekerSyncFieldseekerSyncOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fieldseeker_sync.fieldseeker_sync_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fieldseekerSyncColumns struct {
ID column
Created column
RecordsCreated column
RecordsUpdated column
RecordsUnchanged column
OrganizationID column
}
func (c fieldseekerSyncColumns) AsSlice() []column {
return []column{
c.ID, c.Created, c.RecordsCreated, c.RecordsUpdated, c.RecordsUnchanged, c.OrganizationID,
}
}
type fieldseekerSyncIndexes struct {
FieldseekerSyncPkey index
}
func (i fieldseekerSyncIndexes) AsSlice() []index {
return []index{
i.FieldseekerSyncPkey,
}
}
type fieldseekerSyncForeignKeys struct {
FieldseekerSyncFieldseekerSyncOrganizationIDFkey foreignKey
}
func (f fieldseekerSyncForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FieldseekerSyncFieldseekerSyncOrganizationIDFkey,
}
}
type fieldseekerSyncUniques struct{}
func (u fieldseekerSyncUniques) AsSlice() []constraint {
return []constraint{}
}
type fieldseekerSyncChecks struct{}
func (c fieldseekerSyncChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,277 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSContainerrelates = Table[
fsContainerrelateColumns,
fsContainerrelateIndexes,
fsContainerrelateForeignKeys,
fsContainerrelateUniques,
fsContainerrelateChecks,
]{
Schema: "",
Name: "fs_containerrelate",
Columns: fsContainerrelateColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Containertype: column{
Name: "containertype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Inspsampleid: column{
Name: "inspsampleid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Mosquitoinspid: column{
Name: "mosquitoinspid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Treatmentid: column{
Name: "treatmentid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsContainerrelateIndexes{
FSContainerrelatePkey: index{
Type: "btree",
Name: "fs_containerrelate_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_containerrelate_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsContainerrelateForeignKeys{
FSContainerrelateFSContainerrelateOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_containerrelate.fs_containerrelate_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsContainerrelateColumns struct {
OrganizationID column
Containertype column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Inspsampleid column
Mosquitoinspid column
Objectid column
Treatmentid column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsContainerrelateColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Containertype, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Inspsampleid, c.Mosquitoinspid, c.Objectid, c.Treatmentid, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsContainerrelateIndexes struct {
FSContainerrelatePkey index
}
func (i fsContainerrelateIndexes) AsSlice() []index {
return []index{
i.FSContainerrelatePkey,
}
}
type fsContainerrelateForeignKeys struct {
FSContainerrelateFSContainerrelateOrganizationIDFkey foreignKey
}
func (f fsContainerrelateForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSContainerrelateFSContainerrelateOrganizationIDFkey,
}
}
type fsContainerrelateUniques struct{}
func (u fsContainerrelateUniques) AsSlice() []constraint {
return []constraint{}
}
type fsContainerrelateChecks struct{}
func (c fsContainerrelateChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,247 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSFieldscoutinglogs = Table[
fsFieldscoutinglogColumns,
fsFieldscoutinglogIndexes,
fsFieldscoutinglogForeignKeys,
fsFieldscoutinglogUniques,
fsFieldscoutinglogChecks,
]{
Schema: "",
Name: "fs_fieldscoutinglog",
Columns: fsFieldscoutinglogColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Status: column{
Name: "status",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsFieldscoutinglogIndexes{
FSFieldscoutinglogPkey: index{
Type: "btree",
Name: "fs_fieldscoutinglog_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_fieldscoutinglog_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsFieldscoutinglogForeignKeys{
FSFieldscoutinglogFSFieldscoutinglogOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_fieldscoutinglog.fs_fieldscoutinglog_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsFieldscoutinglogColumns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Objectid column
Status column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsFieldscoutinglogColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Objectid, c.Status, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsFieldscoutinglogIndexes struct {
FSFieldscoutinglogPkey index
}
func (i fsFieldscoutinglogIndexes) AsSlice() []index {
return []index{
i.FSFieldscoutinglogPkey,
}
}
type fsFieldscoutinglogForeignKeys struct {
FSFieldscoutinglogFSFieldscoutinglogOrganizationIDFkey foreignKey
}
func (f fsFieldscoutinglogForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSFieldscoutinglogFSFieldscoutinglogOrganizationIDFkey,
}
}
type fsFieldscoutinglogUniques struct{}
func (u fsFieldscoutinglogUniques) AsSlice() []constraint {
return []constraint{}
}
type fsFieldscoutinglogChecks struct{}
func (c fsFieldscoutinglogChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,257 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSHabitatrelates = Table[
fsHabitatrelateColumns,
fsHabitatrelateIndexes,
fsHabitatrelateForeignKeys,
fsHabitatrelateUniques,
fsHabitatrelateChecks,
]{
Schema: "",
Name: "fs_habitatrelate",
Columns: fsHabitatrelateColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ForeignID: column{
Name: "foreign_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitattype: column{
Name: "habitattype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsHabitatrelateIndexes{
FSHabitatrelatePkey: index{
Type: "btree",
Name: "fs_habitatrelate_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_habitatrelate_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsHabitatrelateForeignKeys{
FSHabitatrelateFSHabitatrelateOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_habitatrelate.fs_habitatrelate_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsHabitatrelateColumns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
ForeignID column
Globalid column
Habitattype column
Objectid column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsHabitatrelateColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.ForeignID, c.Globalid, c.Habitattype, c.Objectid, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsHabitatrelateIndexes struct {
FSHabitatrelatePkey index
}
func (i fsHabitatrelateIndexes) AsSlice() []index {
return []index{
i.FSHabitatrelatePkey,
}
}
type fsHabitatrelateForeignKeys struct {
FSHabitatrelateFSHabitatrelateOrganizationIDFkey foreignKey
}
func (f fsHabitatrelateForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSHabitatrelateFSHabitatrelateOrganizationIDFkey,
}
}
type fsHabitatrelateUniques struct{}
func (u fsHabitatrelateUniques) AsSlice() []constraint {
return []constraint{}
}
type fsHabitatrelateChecks struct{}
func (c fsHabitatrelateChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,277 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSInspectionsamples = Table[
fsInspectionsampleColumns,
fsInspectionsampleIndexes,
fsInspectionsampleForeignKeys,
fsInspectionsampleUniques,
fsInspectionsampleChecks,
]{
Schema: "",
Name: "fs_inspectionsample",
Columns: fsInspectionsampleColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Idbytech: column{
Name: "idbytech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
InspID: column{
Name: "insp_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sampleid: column{
Name: "sampleid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsInspectionsampleIndexes{
FSInspectionsamplePkey: index{
Type: "btree",
Name: "fs_inspectionsample_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_inspectionsample_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsInspectionsampleForeignKeys{
FSInspectionsampleFSInspectionsampleOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_inspectionsample.fs_inspectionsample_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsInspectionsampleColumns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Idbytech column
InspID column
Objectid column
Processed column
Sampleid column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsInspectionsampleColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Idbytech, c.InspID, c.Objectid, c.Processed, c.Sampleid, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsInspectionsampleIndexes struct {
FSInspectionsamplePkey index
}
func (i fsInspectionsampleIndexes) AsSlice() []index {
return []index{
i.FSInspectionsamplePkey,
}
}
type fsInspectionsampleForeignKeys struct {
FSInspectionsampleFSInspectionsampleOrganizationIDFkey foreignKey
}
func (f fsInspectionsampleForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSInspectionsampleFSInspectionsampleOrganizationIDFkey,
}
}
type fsInspectionsampleUniques struct{}
func (u fsInspectionsampleUniques) AsSlice() []constraint {
return []constraint{}
}
type fsInspectionsampleChecks struct{}
func (c fsInspectionsampleChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,387 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSInspectionsampledetails = Table[
fsInspectionsampledetailColumns,
fsInspectionsampledetailIndexes,
fsInspectionsampledetailForeignKeys,
fsInspectionsampledetailUniques,
fsInspectionsampledetailChecks,
]{
Schema: "",
Name: "fs_inspectionsampledetail",
Columns: fsInspectionsampledetailColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fadultact: column{
Name: "fadultact",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fdomstage: column{
Name: "fdomstage",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Feggcount: column{
Name: "feggcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldspecies: column{
Name: "fieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flarvcount: column{
Name: "flarvcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flstages: column{
Name: "flstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fpupcount: column{
Name: "fpupcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
InspsampleID: column{
Name: "inspsample_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Labspecies: column{
Name: "labspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ldomstage: column{
Name: "ldomstage",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Leggcount: column{
Name: "leggcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Llarvcount: column{
Name: "llarvcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lpupcount: column{
Name: "lpupcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsInspectionsampledetailIndexes{
FSInspectionsampledetailPkey: index{
Type: "btree",
Name: "fs_inspectionsampledetail_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_inspectionsampledetail_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsInspectionsampledetailForeignKeys{
FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_inspectionsampledetail.fs_inspectionsampledetail_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsInspectionsampledetailColumns struct {
OrganizationID column
Comments column
Creationdate column
Creator column
Editdate column
Editor column
Fadultact column
Fdomstage column
Feggcount column
Fieldspecies column
Flarvcount column
Flstages column
Fpupcount column
Globalid column
InspsampleID column
Labspecies column
Ldomstage column
Leggcount column
Llarvcount column
Lpupcount column
Objectid column
Processed column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsInspectionsampledetailColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Comments, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Fadultact, c.Fdomstage, c.Feggcount, c.Fieldspecies, c.Flarvcount, c.Flstages, c.Fpupcount, c.Globalid, c.InspsampleID, c.Labspecies, c.Ldomstage, c.Leggcount, c.Llarvcount, c.Lpupcount, c.Objectid, c.Processed, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsInspectionsampledetailIndexes struct {
FSInspectionsampledetailPkey index
}
func (i fsInspectionsampledetailIndexes) AsSlice() []index {
return []index{
i.FSInspectionsampledetailPkey,
}
}
type fsInspectionsampledetailForeignKeys struct {
FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey foreignKey
}
func (f fsInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSInspectionsampledetailFSInspectionsampledetailOrganizationIDFkey,
}
}
type fsInspectionsampledetailUniques struct{}
func (u fsInspectionsampledetailUniques) AsSlice() []constraint {
return []constraint{}
}
type fsInspectionsampledetailChecks struct{}
func (c fsInspectionsampledetailChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,617 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSLinelocations = Table[
fsLinelocationColumns,
fsLinelocationIndexes,
fsLinelocationForeignKeys,
fsLinelocationUniques,
fsLinelocationChecks,
]{
Schema: "",
Name: "fs_linelocation",
Columns: fsLinelocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Acres: column{
Name: "acres",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Hectares: column{
Name: "hectares",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvinspectinterval: column{
Name: "larvinspectinterval",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactiontaken: column{
Name: "lastinspectactiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactivity: column{
Name: "lastinspectactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavglarvae: column{
Name: "lastinspectavglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavgpupae: column{
Name: "lastinspectavgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectbreeding: column{
Name: "lastinspectbreeding",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectconditions: column{
Name: "lastinspectconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectdate: column{
Name: "lastinspectdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectfieldspecies: column{
Name: "lastinspectfieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectlstages: column{
Name: "lastinspectlstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatactivity: column{
Name: "lasttreatactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatproduct: column{
Name: "lasttreatproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqty: column{
Name: "lasttreatqty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqtyunit: column{
Name: "lasttreatqtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LengthFT: column{
Name: "length_ft",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LengthMeters: column{
Name: "length_meters",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterorigin: column{
Name: "waterorigin",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
WidthFT: column{
Name: "width_ft",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
WidthMeters: column{
Name: "width_meters",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsLinelocationIndexes{
FSLinelocationPkey: index{
Type: "btree",
Name: "fs_linelocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_linelocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsLinelocationForeignKeys{
FSLinelocationFSLinelocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_linelocation.fs_linelocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsLinelocationColumns struct {
OrganizationID column
Accessdesc column
Acres column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Globalid column
Habitat column
Hectares column
Jurisdiction column
Larvinspectinterval column
Lastinspectactiontaken column
Lastinspectactivity column
Lastinspectavglarvae column
Lastinspectavgpupae column
Lastinspectbreeding column
Lastinspectconditions column
Lastinspectdate column
Lastinspectfieldspecies column
Lastinspectlstages column
Lasttreatactivity column
Lasttreatdate column
Lasttreatproduct column
Lasttreatqty column
Lasttreatqtyunit column
LengthFT column
LengthMeters column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Symbology column
ShapeLength column
Usetype column
Waterorigin column
WidthFT column
WidthMeters column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsLinelocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Acres, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Globalid, c.Habitat, c.Hectares, c.Jurisdiction, c.Larvinspectinterval, c.Lastinspectactiontaken, c.Lastinspectactivity, c.Lastinspectavglarvae, c.Lastinspectavgpupae, c.Lastinspectbreeding, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectfieldspecies, c.Lastinspectlstages, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.LengthFT, c.LengthMeters, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Symbology, c.ShapeLength, c.Usetype, c.Waterorigin, c.WidthFT, c.WidthMeters, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsLinelocationIndexes struct {
FSLinelocationPkey index
}
func (i fsLinelocationIndexes) AsSlice() []index {
return []index{
i.FSLinelocationPkey,
}
}
type fsLinelocationForeignKeys struct {
FSLinelocationFSLinelocationOrganizationIDFkey foreignKey
}
func (f fsLinelocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSLinelocationFSLinelocationOrganizationIDFkey,
}
}
type fsLinelocationUniques struct{}
func (u fsLinelocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsLinelocationChecks struct{}
func (c fsLinelocationChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,257 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSLocationtrackings = Table[
fsLocationtrackingColumns,
fsLocationtrackingIndexes,
fsLocationtrackingForeignKeys,
fsLocationtrackingUniques,
fsLocationtrackingChecks,
]{
Schema: "",
Name: "fs_locationtracking",
Columns: fsLocationtrackingColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accuracy: column{
Name: "accuracy",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsLocationtrackingIndexes{
FSLocationtrackingPkey: index{
Type: "btree",
Name: "fs_locationtracking_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_locationtracking_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsLocationtrackingForeignKeys{
FSLocationtrackingFSLocationtrackingOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_locationtracking.fs_locationtracking_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsLocationtrackingColumns struct {
OrganizationID column
Accuracy column
Creationdate column
Creator column
Editdate column
Editor column
Fieldtech column
Globalid column
Objectid column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsLocationtrackingColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accuracy, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Fieldtech, c.Globalid, c.Objectid, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsLocationtrackingIndexes struct {
FSLocationtrackingPkey index
}
func (i fsLocationtrackingIndexes) AsSlice() []index {
return []index{
i.FSLocationtrackingPkey,
}
}
type fsLocationtrackingForeignKeys struct {
FSLocationtrackingFSLocationtrackingOrganizationIDFkey foreignKey
}
func (f fsLocationtrackingForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSLocationtrackingFSLocationtrackingOrganizationIDFkey,
}
}
type fsLocationtrackingUniques struct{}
func (u fsLocationtrackingUniques) AsSlice() []constraint {
return []constraint{}
}
type fsLocationtrackingChecks struct{}
func (c fsLocationtrackingChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,735 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSMosquitoinspections = Table[
fsMosquitoinspectionColumns,
fsMosquitoinspectionIndexes,
fsMosquitoinspectionForeignKeys,
fsMosquitoinspectionUniques,
fsMosquitoinspectionChecks,
]{
Schema: "",
Name: "fs_mosquitoinspection",
Columns: fsMosquitoinspectionColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Actiontaken: column{
Name: "actiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Activity: column{
Name: "activity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Adultact: column{
Name: "adultact",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avglarvae: column{
Name: "avglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avgpupae: column{
Name: "avgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Breeding: column{
Name: "breeding",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Cbcount: column{
Name: "cbcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Containercount: column{
Name: "containercount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Domstage: column{
Name: "domstage",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Eggs: column{
Name: "eggs",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldspecies: column{
Name: "fieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaepresent: column{
Name: "larvaepresent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Linelocid: column{
Name: "linelocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lstages: column{
Name: "lstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Numdips: column{
Name: "numdips",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Personalcontact: column{
Name: "personalcontact",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Polygonlocid: column{
Name: "polygonlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Posdips: column{
Name: "posdips",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Positivecontainercount: column{
Name: "positivecontainercount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Pupaepresent: column{
Name: "pupaepresent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sdid: column{
Name: "sdid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitecond: column{
Name: "sitecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Tirecount: column{
Name: "tirecount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totlarvae: column{
Name: "totlarvae",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totpupae: column{
Name: "totpupae",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Visualmonitoring: column{
Name: "visualmonitoring",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vmcomments: column{
Name: "vmcomments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Adminaction: column{
Name: "adminaction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ptaid: column{
Name: "ptaid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Geom: column{
Name: "geom",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsMosquitoinspectionIndexes{
FSMosquitoinspectionPkey: index{
Type: "btree",
Name: "fs_mosquitoinspection_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
IdxFSMosquitoinspectionGeom: index{
Type: "gist",
Name: "idx_fs_mosquitoinspection_geom",
Columns: []indexColumn{
{
Name: "geom",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: false,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_mosquitoinspection_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsMosquitoinspectionForeignKeys{
FSMosquitoinspectionFSMosquitoinspectionOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_mosquitoinspection.fs_mosquitoinspection_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsMosquitoinspectionColumns struct {
OrganizationID column
Actiontaken column
Activity column
Adultact column
Avetemp column
Avglarvae column
Avgpupae column
Breeding column
Cbcount column
Comments column
Containercount column
Creationdate column
Creator column
Domstage column
Eggs column
Enddatetime column
Editdate column
Editor column
Fieldspecies column
Fieldtech column
Globalid column
Jurisdiction column
Larvaepresent column
Linelocid column
Locationname column
Lstages column
Numdips column
Objectid column
Personalcontact column
Pointlocid column
Polygonlocid column
Posdips column
Positivecontainercount column
Pupaepresent column
Raingauge column
Recordstatus column
Reviewed column
Reviewedby column
Revieweddate column
Sdid column
Sitecond column
Srid column
Startdatetime column
Tirecount column
Totlarvae column
Totpupae column
Visualmonitoring column
Vmcomments column
Winddir column
Windspeed column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Adminaction column
Ptaid column
Updated column
Geom column
}
func (c fsMosquitoinspectionColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Actiontaken, c.Activity, c.Adultact, c.Avetemp, c.Avglarvae, c.Avgpupae, c.Breeding, c.Cbcount, c.Comments, c.Containercount, c.Creationdate, c.Creator, c.Domstage, c.Eggs, c.Enddatetime, c.Editdate, c.Editor, c.Fieldspecies, c.Fieldtech, c.Globalid, c.Jurisdiction, c.Larvaepresent, c.Linelocid, c.Locationname, c.Lstages, c.Numdips, c.Objectid, c.Personalcontact, c.Pointlocid, c.Polygonlocid, c.Posdips, c.Positivecontainercount, c.Pupaepresent, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Sdid, c.Sitecond, c.Srid, c.Startdatetime, c.Tirecount, c.Totlarvae, c.Totpupae, c.Visualmonitoring, c.Vmcomments, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Adminaction, c.Ptaid, c.Updated, c.Geom,
}
}
type fsMosquitoinspectionIndexes struct {
FSMosquitoinspectionPkey index
IdxFSMosquitoinspectionGeom index
}
func (i fsMosquitoinspectionIndexes) AsSlice() []index {
return []index{
i.FSMosquitoinspectionPkey, i.IdxFSMosquitoinspectionGeom,
}
}
type fsMosquitoinspectionForeignKeys struct {
FSMosquitoinspectionFSMosquitoinspectionOrganizationIDFkey foreignKey
}
func (f fsMosquitoinspectionForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSMosquitoinspectionFSMosquitoinspectionOrganizationIDFkey,
}
}
type fsMosquitoinspectionUniques struct{}
func (u fsMosquitoinspectionUniques) AsSlice() []constraint {
return []constraint{}
}
type fsMosquitoinspectionChecks struct{}
func (c fsMosquitoinspectionChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,605 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSPointlocations = Table[
fsPointlocationColumns,
fsPointlocationIndexes,
fsPointlocationForeignKeys,
fsPointlocationUniques,
fsPointlocationChecks,
]{
Schema: "",
Name: "fs_pointlocation",
Columns: fsPointlocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvinspectinterval: column{
Name: "larvinspectinterval",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactiontaken: column{
Name: "lastinspectactiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactivity: column{
Name: "lastinspectactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavglarvae: column{
Name: "lastinspectavglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavgpupae: column{
Name: "lastinspectavgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectbreeding: column{
Name: "lastinspectbreeding",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectconditions: column{
Name: "lastinspectconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectdate: column{
Name: "lastinspectdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectfieldspecies: column{
Name: "lastinspectfieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectlstages: column{
Name: "lastinspectlstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatactivity: column{
Name: "lasttreatactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatproduct: column{
Name: "lasttreatproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqty: column{
Name: "lasttreatqty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqtyunit: column{
Name: "lasttreatqtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Stype: column{
Name: "stype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterorigin: column{
Name: "waterorigin",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
X: column{
Name: "x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Y: column{
Name: "y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Assignedtech: column{
Name: "assignedtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
DeactivateReason: column{
Name: "deactivate_reason",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Scalarpriority: column{
Name: "scalarpriority",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sourcestatus: column{
Name: "sourcestatus",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Geom: column{
Name: "geom",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsPointlocationIndexes{
FSPointlocationPkey: index{
Type: "btree",
Name: "fs_pointlocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
IdxFSPointlocationGeom: index{
Type: "gist",
Name: "idx_fs_pointlocation_geom",
Columns: []indexColumn{
{
Name: "geom",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: false,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_pointlocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsPointlocationForeignKeys{
FSPointlocationFSPointlocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_pointlocation.fs_pointlocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsPointlocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Globalid column
Habitat column
Jurisdiction column
Larvinspectinterval column
Lastinspectactiontaken column
Lastinspectactivity column
Lastinspectavglarvae column
Lastinspectavgpupae column
Lastinspectbreeding column
Lastinspectconditions column
Lastinspectdate column
Lastinspectfieldspecies column
Lastinspectlstages column
Lasttreatactivity column
Lasttreatdate column
Lasttreatproduct column
Lasttreatqty column
Lasttreatqtyunit column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Stype column
Symbology column
Usetype column
Waterorigin column
X column
Y column
Zone column
Zone2 column
GeometryX column
GeometryY column
Assignedtech column
DeactivateReason column
Scalarpriority column
Sourcestatus column
Updated column
Geom column
}
func (c fsPointlocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Globalid, c.Habitat, c.Jurisdiction, c.Larvinspectinterval, c.Lastinspectactiontaken, c.Lastinspectactivity, c.Lastinspectavglarvae, c.Lastinspectavgpupae, c.Lastinspectbreeding, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectfieldspecies, c.Lastinspectlstages, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Stype, c.Symbology, c.Usetype, c.Waterorigin, c.X, c.Y, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.Assignedtech, c.DeactivateReason, c.Scalarpriority, c.Sourcestatus, c.Updated, c.Geom,
}
}
type fsPointlocationIndexes struct {
FSPointlocationPkey index
IdxFSPointlocationGeom index
}
func (i fsPointlocationIndexes) AsSlice() []index {
return []index{
i.FSPointlocationPkey, i.IdxFSPointlocationGeom,
}
}
type fsPointlocationForeignKeys struct {
FSPointlocationFSPointlocationOrganizationIDFkey foreignKey
}
func (f fsPointlocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSPointlocationFSPointlocationOrganizationIDFkey,
}
}
type fsPointlocationUniques struct{}
func (u fsPointlocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsPointlocationChecks struct{}
func (c fsPointlocationChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,557 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSPolygonlocations = Table[
fsPolygonlocationColumns,
fsPolygonlocationIndexes,
fsPolygonlocationForeignKeys,
fsPolygonlocationUniques,
fsPolygonlocationChecks,
]{
Schema: "",
Name: "fs_polygonlocation",
Columns: fsPolygonlocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Acres: column{
Name: "acres",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Filter: column{
Name: "filter",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Hectares: column{
Name: "hectares",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvinspectinterval: column{
Name: "larvinspectinterval",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactiontaken: column{
Name: "lastinspectactiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectactivity: column{
Name: "lastinspectactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavglarvae: column{
Name: "lastinspectavglarvae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectavgpupae: column{
Name: "lastinspectavgpupae",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectbreeding: column{
Name: "lastinspectbreeding",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectconditions: column{
Name: "lastinspectconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectdate: column{
Name: "lastinspectdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectfieldspecies: column{
Name: "lastinspectfieldspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectlstages: column{
Name: "lastinspectlstages",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatactivity: column{
Name: "lasttreatactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatproduct: column{
Name: "lasttreatproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqty: column{
Name: "lasttreatqty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqtyunit: column{
Name: "lasttreatqtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterorigin: column{
Name: "waterorigin",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsPolygonlocationIndexes{
FSPolygonlocationPkey: index{
Type: "btree",
Name: "fs_polygonlocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_polygonlocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsPolygonlocationForeignKeys{
FSPolygonlocationFSPolygonlocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_polygonlocation.fs_polygonlocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsPolygonlocationColumns struct {
OrganizationID column
Accessdesc column
Acres column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Filter column
Globalid column
Habitat column
Hectares column
Jurisdiction column
Larvinspectinterval column
Lastinspectactiontaken column
Lastinspectactivity column
Lastinspectavglarvae column
Lastinspectavgpupae column
Lastinspectbreeding column
Lastinspectconditions column
Lastinspectdate column
Lastinspectfieldspecies column
Lastinspectlstages column
Lasttreatactivity column
Lasttreatdate column
Lasttreatproduct column
Lasttreatqty column
Lasttreatqtyunit column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Symbology column
ShapeArea column
ShapeLength column
Usetype column
Waterorigin column
Zone column
Zone2 column
GeometryX column
GeometryY column
Updated column
}
func (c fsPolygonlocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Acres, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Filter, c.Globalid, c.Habitat, c.Hectares, c.Jurisdiction, c.Larvinspectinterval, c.Lastinspectactiontaken, c.Lastinspectactivity, c.Lastinspectavglarvae, c.Lastinspectavgpupae, c.Lastinspectbreeding, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectfieldspecies, c.Lastinspectlstages, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Symbology, c.ShapeArea, c.ShapeLength, c.Usetype, c.Waterorigin, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.Updated,
}
}
type fsPolygonlocationIndexes struct {
FSPolygonlocationPkey index
}
func (i fsPolygonlocationIndexes) AsSlice() []index {
return []index{
i.FSPolygonlocationPkey,
}
}
type fsPolygonlocationForeignKeys struct {
FSPolygonlocationFSPolygonlocationOrganizationIDFkey foreignKey
}
func (f fsPolygonlocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSPolygonlocationFSPolygonlocationOrganizationIDFkey,
}
}
type fsPolygonlocationUniques struct{}
func (u fsPolygonlocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsPolygonlocationChecks struct{}
func (c fsPolygonlocationChecks) AsSlice() []check {
return []check{}
}

417
db/dbinfo/fs_pool.bob.go Normal file
View file

@ -0,0 +1,417 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSPools = Table[
fsPoolColumns,
fsPoolIndexes,
fsPoolForeignKeys,
fsPoolUniques,
fsPoolChecks,
]{
Schema: "",
Name: "fs_pool",
Columns: fsPoolColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datesent: column{
Name: "datesent",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datetested: column{
Name: "datetested",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasepos: column{
Name: "diseasepos",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasetested: column{
Name: "diseasetested",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Lab: column{
Name: "lab",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LabID: column{
Name: "lab_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Poolyear: column{
Name: "poolyear",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sampleid: column{
Name: "sampleid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Survtech: column{
Name: "survtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testmethod: column{
Name: "testmethod",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testtech: column{
Name: "testtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TrapdataID: column{
Name: "trapdata_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvcollectionid: column{
Name: "vectorsurvcollectionid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvpoolid: column{
Name: "vectorsurvpoolid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvtrapdataid: column{
Name: "vectorsurvtrapdataid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsPoolIndexes{
FSPoolPkey: index{
Type: "btree",
Name: "fs_pool_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_pool_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsPoolForeignKeys{
FSPoolFSPoolOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_pool.fs_pool_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsPoolColumns struct {
OrganizationID column
Comments column
Creationdate column
Creator column
Datesent column
Datetested column
Diseasepos column
Diseasetested column
Editdate column
Editor column
Gatewaysync column
Globalid column
Lab column
LabID column
Objectid column
Poolyear column
Processed column
Sampleid column
Survtech column
Testmethod column
Testtech column
TrapdataID column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Vectorsurvcollectionid column
Vectorsurvpoolid column
Vectorsurvtrapdataid column
Updated column
}
func (c fsPoolColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Comments, c.Creationdate, c.Creator, c.Datesent, c.Datetested, c.Diseasepos, c.Diseasetested, c.Editdate, c.Editor, c.Gatewaysync, c.Globalid, c.Lab, c.LabID, c.Objectid, c.Poolyear, c.Processed, c.Sampleid, c.Survtech, c.Testmethod, c.Testtech, c.TrapdataID, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Vectorsurvcollectionid, c.Vectorsurvpoolid, c.Vectorsurvtrapdataid, c.Updated,
}
}
type fsPoolIndexes struct {
FSPoolPkey index
}
func (i fsPoolIndexes) AsSlice() []index {
return []index{
i.FSPoolPkey,
}
}
type fsPoolForeignKeys struct {
FSPoolFSPoolOrganizationIDFkey foreignKey
}
func (f fsPoolForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSPoolFSPoolOrganizationIDFkey,
}
}
type fsPoolUniques struct{}
func (u fsPoolUniques) AsSlice() []constraint {
return []constraint{}
}
type fsPoolChecks struct{}
func (c fsPoolChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,277 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSPooldetails = Table[
fsPooldetailColumns,
fsPooldetailIndexes,
fsPooldetailForeignKeys,
fsPooldetailUniques,
fsPooldetailChecks,
]{
Schema: "",
Name: "fs_pooldetail",
Columns: fsPooldetailColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Females: column{
Name: "females",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
PoolID: column{
Name: "pool_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Species: column{
Name: "species",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TrapdataID: column{
Name: "trapdata_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsPooldetailIndexes{
FSPooldetailPkey: index{
Type: "btree",
Name: "fs_pooldetail_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_pooldetail_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsPooldetailForeignKeys{
FSPooldetailFSPooldetailOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_pooldetail.fs_pooldetail_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsPooldetailColumns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
Females column
Globalid column
Objectid column
PoolID column
Species column
TrapdataID column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsPooldetailColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Females, c.Globalid, c.Objectid, c.PoolID, c.Species, c.TrapdataID, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsPooldetailIndexes struct {
FSPooldetailPkey index
}
func (i fsPooldetailIndexes) AsSlice() []index {
return []index{
i.FSPooldetailPkey,
}
}
type fsPooldetailForeignKeys struct {
FSPooldetailFSPooldetailOrganizationIDFkey foreignKey
}
func (f fsPooldetailForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSPooldetailFSPooldetailOrganizationIDFkey,
}
}
type fsPooldetailUniques struct{}
func (u fsPooldetailUniques) AsSlice() []constraint {
return []constraint{}
}
type fsPooldetailChecks struct{}
func (c fsPooldetailChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,467 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSProposedtreatmentareas = Table[
fsProposedtreatmentareaColumns,
fsProposedtreatmentareaIndexes,
fsProposedtreatmentareaForeignKeys,
fsProposedtreatmentareaUniques,
fsProposedtreatmentareaChecks,
]{
Schema: "",
Name: "fs_proposedtreatmentarea",
Columns: fsProposedtreatmentareaColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Acres: column{
Name: "acres",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Completed: column{
Name: "completed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Completedby: column{
Name: "completedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Completeddate: column{
Name: "completeddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Duedate: column{
Name: "duedate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Exported: column{
Name: "exported",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Hectares: column{
Name: "hectares",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Issprayroute: column{
Name: "issprayroute",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatactivity: column{
Name: "lasttreatactivity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatproduct: column{
Name: "lasttreatproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqty: column{
Name: "lasttreatqty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatqtyunit: column{
Name: "lasttreatqtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Method: column{
Name: "method",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Targetapprate: column{
Name: "targetapprate",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Targetproduct: column{
Name: "targetproduct",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Targetspecies: column{
Name: "targetspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsProposedtreatmentareaIndexes{
FSProposedtreatmentareaPkey: index{
Type: "btree",
Name: "fs_proposedtreatmentarea_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_proposedtreatmentarea_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsProposedtreatmentareaForeignKeys{
FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_proposedtreatmentarea.fs_proposedtreatmentarea_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsProposedtreatmentareaColumns struct {
OrganizationID column
Acres column
Comments column
Completed column
Completedby column
Completeddate column
Creationdate column
Creator column
Duedate column
Exported column
Editdate column
Editor column
Globalid column
Hectares column
Issprayroute column
Lasttreatactivity column
Lasttreatdate column
Lasttreatproduct column
Lasttreatqty column
Lasttreatqtyunit column
Method column
Name column
Objectid column
Priority column
Reviewed column
Reviewedby column
Revieweddate column
ShapeArea column
ShapeLength column
Targetapprate column
Targetproduct column
Targetspecies column
Zone column
Zone2 column
GeometryX column
GeometryY column
Updated column
}
func (c fsProposedtreatmentareaColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Acres, c.Comments, c.Completed, c.Completedby, c.Completeddate, c.Creationdate, c.Creator, c.Duedate, c.Exported, c.Editdate, c.Editor, c.Globalid, c.Hectares, c.Issprayroute, c.Lasttreatactivity, c.Lasttreatdate, c.Lasttreatproduct, c.Lasttreatqty, c.Lasttreatqtyunit, c.Method, c.Name, c.Objectid, c.Priority, c.Reviewed, c.Reviewedby, c.Revieweddate, c.ShapeArea, c.ShapeLength, c.Targetapprate, c.Targetproduct, c.Targetspecies, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.Updated,
}
}
type fsProposedtreatmentareaIndexes struct {
FSProposedtreatmentareaPkey index
}
func (i fsProposedtreatmentareaIndexes) AsSlice() []index {
return []index{
i.FSProposedtreatmentareaPkey,
}
}
type fsProposedtreatmentareaForeignKeys struct {
FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey foreignKey
}
func (f fsProposedtreatmentareaForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSProposedtreatmentareaFSProposedtreatmentareaOrganizationIDFkey,
}
}
type fsProposedtreatmentareaUniques struct{}
func (u fsProposedtreatmentareaUniques) AsSlice() []constraint {
return []constraint{}
}
type fsProposedtreatmentareaChecks struct{}
func (c fsProposedtreatmentareaChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,757 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSQamosquitoinspections = Table[
fsQamosquitoinspectionColumns,
fsQamosquitoinspectionIndexes,
fsQamosquitoinspectionForeignKeys,
fsQamosquitoinspectionUniques,
fsQamosquitoinspectionChecks,
]{
Schema: "",
Name: "fs_qamosquitoinspection",
Columns: fsQamosquitoinspectionColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Acresbreeding: column{
Name: "acresbreeding",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Actiontaken: column{
Name: "actiontaken",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Adultactivity: column{
Name: "adultactivity",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Aquaticorganisms: column{
Name: "aquaticorganisms",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Breedingpotential: column{
Name: "breedingpotential",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fish: column{
Name: "fish",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habvalue1: column{
Name: "habvalue1",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Habvalue1percent: column{
Name: "habvalue1percent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Habvalue2: column{
Name: "habvalue2",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Habvalue2percent: column{
Name: "habvalue2percent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaeinsidetreatedarea: column{
Name: "larvaeinsidetreatedarea",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaeoutsidetreatedarea: column{
Name: "larvaeoutsidetreatedarea",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaepresent: column{
Name: "larvaepresent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Larvaereason: column{
Name: "larvaereason",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Linelocid: column{
Name: "linelocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LR: column{
Name: "lr",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Mosquitohabitat: column{
Name: "mosquitohabitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Movingwater: column{
Name: "movingwater",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Negdips: column{
Name: "negdips",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nowaterever: column{
Name: "nowaterever",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Polygonlocid: column{
Name: "polygonlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Posdips: column{
Name: "posdips",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Potential: column{
Name: "potential",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitetype: column{
Name: "sitetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Soilconditions: column{
Name: "soilconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sourcereduction: column{
Name: "sourcereduction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totalacres: column{
Name: "totalacres",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vegetation: column{
Name: "vegetation",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterconditions: column{
Name: "waterconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterduration: column{
Name: "waterduration",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Watermovement1: column{
Name: "watermovement1",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Watermovement1percent: column{
Name: "watermovement1percent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Watermovement2: column{
Name: "watermovement2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Watermovement2percent: column{
Name: "watermovement2percent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Waterpresent: column{
Name: "waterpresent",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Watersource: column{
Name: "watersource",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsQamosquitoinspectionIndexes{
FSQamosquitoinspectionPkey: index{
Type: "btree",
Name: "fs_qamosquitoinspection_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_qamosquitoinspection_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsQamosquitoinspectionForeignKeys{
FSQamosquitoinspectionFSQamosquitoinspectionOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_qamosquitoinspection.fs_qamosquitoinspection_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsQamosquitoinspectionColumns struct {
OrganizationID column
Acresbreeding column
Actiontaken column
Adultactivity column
Aquaticorganisms column
Avetemp column
Breedingpotential column
Comments column
Creationdate column
Creator column
Enddatetime column
Editdate column
Editor column
Fieldtech column
Fish column
Globalid column
Habvalue1 column
Habvalue1percent column
Habvalue2 column
Habvalue2percent column
Larvaeinsidetreatedarea column
Larvaeoutsidetreatedarea column
Larvaepresent column
Larvaereason column
Linelocid column
Locationname column
LR column
Mosquitohabitat column
Movingwater column
Negdips column
Nowaterever column
Objectid column
Pointlocid column
Polygonlocid column
Posdips column
Potential column
Raingauge column
Recordstatus column
Reviewed column
Reviewedby column
Revieweddate column
Sitetype column
Soilconditions column
Sourcereduction column
Startdatetime column
Totalacres column
Vegetation column
Waterconditions column
Waterduration column
Watermovement1 column
Watermovement1percent column
Watermovement2 column
Watermovement2percent column
Waterpresent column
Watersource column
Winddir column
Windspeed column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsQamosquitoinspectionColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Acresbreeding, c.Actiontaken, c.Adultactivity, c.Aquaticorganisms, c.Avetemp, c.Breedingpotential, c.Comments, c.Creationdate, c.Creator, c.Enddatetime, c.Editdate, c.Editor, c.Fieldtech, c.Fish, c.Globalid, c.Habvalue1, c.Habvalue1percent, c.Habvalue2, c.Habvalue2percent, c.Larvaeinsidetreatedarea, c.Larvaeoutsidetreatedarea, c.Larvaepresent, c.Larvaereason, c.Linelocid, c.Locationname, c.LR, c.Mosquitohabitat, c.Movingwater, c.Negdips, c.Nowaterever, c.Objectid, c.Pointlocid, c.Polygonlocid, c.Posdips, c.Potential, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Sitetype, c.Soilconditions, c.Sourcereduction, c.Startdatetime, c.Totalacres, c.Vegetation, c.Waterconditions, c.Waterduration, c.Watermovement1, c.Watermovement1percent, c.Watermovement2, c.Watermovement2percent, c.Waterpresent, c.Watersource, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsQamosquitoinspectionIndexes struct {
FSQamosquitoinspectionPkey index
}
func (i fsQamosquitoinspectionIndexes) AsSlice() []index {
return []index{
i.FSQamosquitoinspectionPkey,
}
}
type fsQamosquitoinspectionForeignKeys struct {
FSQamosquitoinspectionFSQamosquitoinspectionOrganizationIDFkey foreignKey
}
func (f fsQamosquitoinspectionForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSQamosquitoinspectionFSQamosquitoinspectionOrganizationIDFkey,
}
}
type fsQamosquitoinspectionUniques struct{}
func (u fsQamosquitoinspectionUniques) AsSlice() []constraint {
return []constraint{}
}
type fsQamosquitoinspectionChecks struct{}
func (c fsQamosquitoinspectionChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,437 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSRodentlocations = Table[
fsRodentlocationColumns,
fsRodentlocationIndexes,
fsRodentlocationForeignKeys,
fsRodentlocationUniques,
fsRodentlocationChecks,
]{
Schema: "",
Name: "fs_rodentlocation",
Columns: fsRodentlocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectaction: column{
Name: "lastinspectaction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectconditions: column{
Name: "lastinspectconditions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectdate: column{
Name: "lastinspectdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectrodentevidence: column{
Name: "lastinspectrodentevidence",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastinspectspecies: column{
Name: "lastinspectspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsRodentlocationIndexes{
FSRodentlocationPkey: index{
Type: "btree",
Name: "fs_rodentlocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_rodentlocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsRodentlocationForeignKeys{
FSRodentlocationFSRodentlocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_rodentlocation.fs_rodentlocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsRodentlocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Globalid column
Habitat column
Lastinspectaction column
Lastinspectconditions column
Lastinspectdate column
Lastinspectrodentevidence column
Lastinspectspecies column
Locationname column
Locationnumber column
Nextactiondatescheduled column
Objectid column
Priority column
Symbology column
Usetype column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Jurisdiction column
Updated column
}
func (c fsRodentlocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Globalid, c.Habitat, c.Lastinspectaction, c.Lastinspectconditions, c.Lastinspectdate, c.Lastinspectrodentevidence, c.Lastinspectspecies, c.Locationname, c.Locationnumber, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Symbology, c.Usetype, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Jurisdiction, c.Updated,
}
}
type fsRodentlocationIndexes struct {
FSRodentlocationPkey index
}
func (i fsRodentlocationIndexes) AsSlice() []index {
return []index{
i.FSRodentlocationPkey,
}
}
type fsRodentlocationForeignKeys struct {
FSRodentlocationFSRodentlocationOrganizationIDFkey foreignKey
}
func (f fsRodentlocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSRodentlocationFSRodentlocationOrganizationIDFkey,
}
}
type fsRodentlocationUniques struct{}
func (u fsRodentlocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsRodentlocationChecks struct{}
func (c fsRodentlocationChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,597 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSSamplecollections = Table[
fsSamplecollectionColumns,
fsSamplecollectionIndexes,
fsSamplecollectionForeignKeys,
fsSamplecollectionUniques,
fsSamplecollectionChecks,
]{
Schema: "",
Name: "fs_samplecollection",
Columns: fsSamplecollectionColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Activity: column{
Name: "activity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Chickenid: column{
Name: "chickenid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datesent: column{
Name: "datesent",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datetested: column{
Name: "datetested",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasepos: column{
Name: "diseasepos",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Diseasetested: column{
Name: "diseasetested",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flockid: column{
Name: "flockid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Lab: column{
Name: "lab",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LocID: column{
Name: "loc_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Samplecond: column{
Name: "samplecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Samplecount: column{
Name: "samplecount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sampleid: column{
Name: "sampleid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sampletype: column{
Name: "sampletype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sex: column{
Name: "sex",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitecond: column{
Name: "sitecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Species: column{
Name: "species",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Survtech: column{
Name: "survtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testmethod: column{
Name: "testmethod",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Testtech: column{
Name: "testtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsSamplecollectionIndexes{
FSSamplecollectionPkey: index{
Type: "btree",
Name: "fs_samplecollection_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_samplecollection_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsSamplecollectionForeignKeys{
FSSamplecollectionFSSamplecollectionOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_samplecollection.fs_samplecollection_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsSamplecollectionColumns struct {
OrganizationID column
Activity column
Avetemp column
Chickenid column
Comments column
Creationdate column
Creator column
Datesent column
Datetested column
Diseasepos column
Diseasetested column
Enddatetime column
Editdate column
Editor column
Fieldtech column
Flockid column
Gatewaysync column
Globalid column
Lab column
Locationname column
LocID column
Objectid column
Processed column
Raingauge column
Recordstatus column
Reviewed column
Reviewedby column
Revieweddate column
Samplecond column
Samplecount column
Sampleid column
Sampletype column
Sex column
Sitecond column
Species column
Startdatetime column
Survtech column
Testmethod column
Testtech column
Winddir column
Windspeed column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsSamplecollectionColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Activity, c.Avetemp, c.Chickenid, c.Comments, c.Creationdate, c.Creator, c.Datesent, c.Datetested, c.Diseasepos, c.Diseasetested, c.Enddatetime, c.Editdate, c.Editor, c.Fieldtech, c.Flockid, c.Gatewaysync, c.Globalid, c.Lab, c.Locationname, c.LocID, c.Objectid, c.Processed, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Samplecond, c.Samplecount, c.Sampleid, c.Sampletype, c.Sex, c.Sitecond, c.Species, c.Startdatetime, c.Survtech, c.Testmethod, c.Testtech, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsSamplecollectionIndexes struct {
FSSamplecollectionPkey index
}
func (i fsSamplecollectionIndexes) AsSlice() []index {
return []index{
i.FSSamplecollectionPkey,
}
}
type fsSamplecollectionForeignKeys struct {
FSSamplecollectionFSSamplecollectionOrganizationIDFkey foreignKey
}
func (f fsSamplecollectionForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSSamplecollectionFSSamplecollectionOrganizationIDFkey,
}
}
type fsSamplecollectionUniques struct{}
func (u fsSamplecollectionUniques) AsSlice() []constraint {
return []constraint{}
}
type fsSamplecollectionChecks struct{}
func (c fsSamplecollectionChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,377 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSSamplelocations = Table[
fsSamplelocationColumns,
fsSamplelocationIndexes,
fsSamplelocationForeignKeys,
fsSamplelocationUniques,
fsSamplelocationChecks,
]{
Schema: "",
Name: "fs_samplelocation",
Columns: fsSamplelocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsSamplelocationIndexes{
FSSamplelocationPkey: index{
Type: "btree",
Name: "fs_samplelocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_samplelocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsSamplelocationForeignKeys{
FSSamplelocationFSSamplelocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_samplelocation.fs_samplelocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsSamplelocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Gatewaysync column
Globalid column
Habitat column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Usetype column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsSamplelocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Gatewaysync, c.Globalid, c.Habitat, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Usetype, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsSamplelocationIndexes struct {
FSSamplelocationPkey index
}
func (i fsSamplelocationIndexes) AsSlice() []index {
return []index{
i.FSSamplelocationPkey,
}
}
type fsSamplelocationForeignKeys struct {
FSSamplelocationFSSamplelocationOrganizationIDFkey foreignKey
}
func (f fsSamplelocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSSamplelocationFSSamplelocationOrganizationIDFkey,
}
}
type fsSamplelocationUniques struct{}
func (u fsSamplelocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsSamplelocationChecks struct{}
func (c fsSamplelocationChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,997 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSServicerequests = Table[
fsServicerequestColumns,
fsServicerequestIndexes,
fsServicerequestForeignKeys,
fsServicerequestUniques,
fsServicerequestChecks,
]{
Schema: "",
Name: "fs_servicerequest",
Columns: fsServicerequestColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accepted: column{
Name: "accepted",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Acceptedby: column{
Name: "acceptedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Accepteddate: column{
Name: "accepteddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Allowed: column{
Name: "allowed",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Assignedtech: column{
Name: "assignedtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clraddr1: column{
Name: "clraddr1",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clraddr2: column{
Name: "clraddr2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clranon: column{
Name: "clranon",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrcity: column{
Name: "clrcity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrcompany: column{
Name: "clrcompany",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrcontpref: column{
Name: "clrcontpref",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clremail: column{
Name: "clremail",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrfname: column{
Name: "clrfname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrother: column{
Name: "clrother",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrphone1: column{
Name: "clrphone1",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrphone2: column{
Name: "clrphone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrstate: column{
Name: "clrstate",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Clrzip: column{
Name: "clrzip",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Datetimeclosed: column{
Name: "datetimeclosed",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Duedate: column{
Name: "duedate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Entrytech: column{
Name: "entrytech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Estcompletedate: column{
Name: "estcompletedate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalerror: column{
Name: "externalerror",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Firstresponsedate: column{
Name: "firstresponsedate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Issuesreported: column{
Name: "issuesreported",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextaction: column{
Name: "nextaction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Notificationtimestamp: column{
Name: "notificationtimestamp",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Notified: column{
Name: "notified",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Notifieddate: column{
Name: "notifieddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recdatetime: column{
Name: "recdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Rejectedby: column{
Name: "rejectedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Rejecteddate: column{
Name: "rejecteddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Rejectedreason: column{
Name: "rejectedreason",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqaddr1: column{
Name: "reqaddr1",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqaddr2: column{
Name: "reqaddr2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqcity: column{
Name: "reqcity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqcompany: column{
Name: "reqcompany",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqcrossst: column{
Name: "reqcrossst",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqdescr: column{
Name: "reqdescr",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqfldnotes: column{
Name: "reqfldnotes",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqmapgrid: column{
Name: "reqmapgrid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqnotesforcust: column{
Name: "reqnotesforcust",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqnotesfortech: column{
Name: "reqnotesfortech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqpermission: column{
Name: "reqpermission",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqprogramactions: column{
Name: "reqprogramactions",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqstate: column{
Name: "reqstate",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqsubdiv: column{
Name: "reqsubdiv",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqtarget: column{
Name: "reqtarget",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reqzip: column{
Name: "reqzip",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Responsedaycount: column{
Name: "responsedaycount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Scheduled: column{
Name: "scheduled",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Scheduleddate: column{
Name: "scheduleddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Source: column{
Name: "source",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
SRNumber: column{
Name: "sr_number",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Status: column{
Name: "status",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Supervisor: column{
Name: "supervisor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Techclosed: column{
Name: "techclosed",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Validx: column{
Name: "validx",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Validy: column{
Name: "validy",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Xvalue: column{
Name: "xvalue",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Yvalue: column{
Name: "yvalue",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Dog: column{
Name: "dog",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Spanish: column{
Name: "spanish",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ScheduleNotes: column{
Name: "schedule_notes",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
SchedulePeriod: column{
Name: "schedule_period",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsServicerequestIndexes{
FSServicerequestPkey: index{
Type: "btree",
Name: "fs_servicerequest_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_servicerequest_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsServicerequestForeignKeys{
FSServicerequestFSServicerequestOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_servicerequest.fs_servicerequest_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsServicerequestColumns struct {
OrganizationID column
Accepted column
Acceptedby column
Accepteddate column
Allowed column
Assignedtech column
Clraddr1 column
Clraddr2 column
Clranon column
Clrcity column
Clrcompany column
Clrcontpref column
Clremail column
Clrfname column
Clrother column
Clrphone1 column
Clrphone2 column
Clrstate column
Clrzip column
Comments column
Creationdate column
Creator column
Datetimeclosed column
Duedate column
Entrytech column
Estcompletedate column
Externalerror column
Externalid column
Editdate column
Editor column
Firstresponsedate column
Globalid column
Issuesreported column
Jurisdiction column
Nextaction column
Notificationtimestamp column
Notified column
Notifieddate column
Objectid column
Pointlocid column
Priority column
Recdatetime column
Recordstatus column
Rejectedby column
Rejecteddate column
Rejectedreason column
Reqaddr1 column
Reqaddr2 column
Reqcity column
Reqcompany column
Reqcrossst column
Reqdescr column
Reqfldnotes column
Reqmapgrid column
Reqnotesforcust column
Reqnotesfortech column
Reqpermission column
Reqprogramactions column
Reqstate column
Reqsubdiv column
Reqtarget column
Reqzip column
Responsedaycount column
Reviewed column
Reviewedby column
Revieweddate column
Scheduled column
Scheduleddate column
Source column
SRNumber column
Status column
Supervisor column
Techclosed column
Validx column
Validy column
Xvalue column
Yvalue column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Dog column
Spanish column
ScheduleNotes column
SchedulePeriod column
Updated column
}
func (c fsServicerequestColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accepted, c.Acceptedby, c.Accepteddate, c.Allowed, c.Assignedtech, c.Clraddr1, c.Clraddr2, c.Clranon, c.Clrcity, c.Clrcompany, c.Clrcontpref, c.Clremail, c.Clrfname, c.Clrother, c.Clrphone1, c.Clrphone2, c.Clrstate, c.Clrzip, c.Comments, c.Creationdate, c.Creator, c.Datetimeclosed, c.Duedate, c.Entrytech, c.Estcompletedate, c.Externalerror, c.Externalid, c.Editdate, c.Editor, c.Firstresponsedate, c.Globalid, c.Issuesreported, c.Jurisdiction, c.Nextaction, c.Notificationtimestamp, c.Notified, c.Notifieddate, c.Objectid, c.Pointlocid, c.Priority, c.Recdatetime, c.Recordstatus, c.Rejectedby, c.Rejecteddate, c.Rejectedreason, c.Reqaddr1, c.Reqaddr2, c.Reqcity, c.Reqcompany, c.Reqcrossst, c.Reqdescr, c.Reqfldnotes, c.Reqmapgrid, c.Reqnotesforcust, c.Reqnotesfortech, c.Reqpermission, c.Reqprogramactions, c.Reqstate, c.Reqsubdiv, c.Reqtarget, c.Reqzip, c.Responsedaycount, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Scheduled, c.Scheduleddate, c.Source, c.SRNumber, c.Status, c.Supervisor, c.Techclosed, c.Validx, c.Validy, c.Xvalue, c.Yvalue, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Dog, c.Spanish, c.ScheduleNotes, c.SchedulePeriod, c.Updated,
}
}
type fsServicerequestIndexes struct {
FSServicerequestPkey index
}
func (i fsServicerequestIndexes) AsSlice() []index {
return []index{
i.FSServicerequestPkey,
}
}
type fsServicerequestForeignKeys struct {
FSServicerequestFSServicerequestOrganizationIDFkey foreignKey
}
func (f fsServicerequestForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSServicerequestFSServicerequestOrganizationIDFkey,
}
}
type fsServicerequestUniques struct{}
func (u fsServicerequestUniques) AsSlice() []constraint {
return []constraint{}
}
type fsServicerequestChecks struct{}
func (c fsServicerequestChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,427 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSSpeciesabundances = Table[
fsSpeciesabundanceColumns,
fsSpeciesabundanceIndexes,
fsSpeciesabundanceForeignKeys,
fsSpeciesabundanceUniques,
fsSpeciesabundanceChecks,
]{
Schema: "",
Name: "fs_speciesabundance",
Columns: fsSpeciesabundanceColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Bloodedfem: column{
Name: "bloodedfem",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Eggs: column{
Name: "eggs",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Females: column{
Name: "females",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gravidfem: column{
Name: "gravidfem",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Larvae: column{
Name: "larvae",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Males: column{
Name: "males",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Poolstogen: column{
Name: "poolstogen",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Pupae: column{
Name: "pupae",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Species: column{
Name: "species",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Total: column{
Name: "total",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TrapdataID: column{
Name: "trapdata_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Unknown: column{
Name: "unknown",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalzscore: column{
Name: "globalzscore",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
H3R7: column{
Name: "h3r7",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
H3R8: column{
Name: "h3r8",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
R7score: column{
Name: "r7score",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
R8score: column{
Name: "r8score",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Yearweek: column{
Name: "yearweek",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsSpeciesabundanceIndexes{
FSSpeciesabundancePkey: index{
Type: "btree",
Name: "fs_speciesabundance_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_speciesabundance_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsSpeciesabundanceForeignKeys{
FSSpeciesabundanceFSSpeciesabundanceOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_speciesabundance.fs_speciesabundance_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsSpeciesabundanceColumns struct {
OrganizationID column
Bloodedfem column
Creationdate column
Creator column
Eggs column
Editdate column
Editor column
Females column
Gravidfem column
Globalid column
Larvae column
Males column
Objectid column
Poolstogen column
Processed column
Pupae column
Species column
Total column
TrapdataID column
Unknown column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Globalzscore column
H3R7 column
H3R8 column
R7score column
R8score column
Yearweek column
Updated column
}
func (c fsSpeciesabundanceColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Bloodedfem, c.Creationdate, c.Creator, c.Eggs, c.Editdate, c.Editor, c.Females, c.Gravidfem, c.Globalid, c.Larvae, c.Males, c.Objectid, c.Poolstogen, c.Processed, c.Pupae, c.Species, c.Total, c.TrapdataID, c.Unknown, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Globalzscore, c.H3R7, c.H3R8, c.R7score, c.R8score, c.Yearweek, c.Updated,
}
}
type fsSpeciesabundanceIndexes struct {
FSSpeciesabundancePkey index
}
func (i fsSpeciesabundanceIndexes) AsSlice() []index {
return []index{
i.FSSpeciesabundancePkey,
}
}
type fsSpeciesabundanceForeignKeys struct {
FSSpeciesabundanceFSSpeciesabundanceOrganizationIDFkey foreignKey
}
func (f fsSpeciesabundanceForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSSpeciesabundanceFSSpeciesabundanceOrganizationIDFkey,
}
}
type fsSpeciesabundanceUniques struct{}
func (u fsSpeciesabundanceUniques) AsSlice() []constraint {
return []constraint{}
}
type fsSpeciesabundanceChecks struct{}
func (c fsSpeciesabundanceChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,327 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSStormdrains = Table[
fsStormdrainColumns,
fsStormdrainIndexes,
fsStormdrainForeignKeys,
fsStormdrainUniques,
fsStormdrainChecks,
]{
Schema: "",
Name: "fs_stormdrain",
Columns: fsStormdrainColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Jurisdiction: column{
Name: "jurisdiction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lastaction: column{
Name: "lastaction",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Laststatus: column{
Name: "laststatus",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lasttreatdate: column{
Name: "lasttreatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nexttreatmentdate: column{
Name: "nexttreatmentdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Symbology: column{
Name: "symbology",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsStormdrainIndexes{
FSStormdrainPkey: index{
Type: "btree",
Name: "fs_stormdrain_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_stormdrain_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsStormdrainForeignKeys{
FSStormdrainFSStormdrainOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_stormdrain.fs_stormdrain_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsStormdrainColumns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Jurisdiction column
Lastaction column
Laststatus column
Lasttreatdate column
Nexttreatmentdate column
Objectid column
Symbology column
Type column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsStormdrainColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Jurisdiction, c.Lastaction, c.Laststatus, c.Lasttreatdate, c.Nexttreatmentdate, c.Objectid, c.Symbology, c.Type, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsStormdrainIndexes struct {
FSStormdrainPkey index
}
func (i fsStormdrainIndexes) AsSlice() []index {
return []index{
i.FSStormdrainPkey,
}
}
type fsStormdrainForeignKeys struct {
FSStormdrainFSStormdrainOrganizationIDFkey foreignKey
}
func (f fsStormdrainForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSStormdrainFSStormdrainOrganizationIDFkey,
}
}
type fsStormdrainUniques struct{}
func (u fsStormdrainUniques) AsSlice() []constraint {
return []constraint{}
}
type fsStormdrainChecks struct{}
func (c fsStormdrainChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,417 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSTimecards = Table[
fsTimecardColumns,
fsTimecardIndexes,
fsTimecardForeignKeys,
fsTimecardUniques,
fsTimecardChecks,
]{
Schema: "",
Name: "fs_timecard",
Columns: fsTimecardColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Activity: column{
Name: "activity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Equiptype: column{
Name: "equiptype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Lclocid: column{
Name: "lclocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Linelocid: column{
Name: "linelocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Polygonlocid: column{
Name: "polygonlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Samplelocid: column{
Name: "samplelocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Traplocid: column{
Name: "traplocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Rodentlocid: column{
Name: "rodentlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsTimecardIndexes{
FSTimecardPkey: index{
Type: "btree",
Name: "fs_timecard_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_timecard_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsTimecardForeignKeys{
FSTimecardFSTimecardOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_timecard.fs_timecard_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsTimecardColumns struct {
OrganizationID column
Activity column
Comments column
Creationdate column
Creator column
Enddatetime column
Equiptype column
Externalid column
Editdate column
Editor column
Fieldtech column
Globalid column
Lclocid column
Linelocid column
Locationname column
Objectid column
Pointlocid column
Polygonlocid column
Samplelocid column
Srid column
Startdatetime column
Traplocid column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Rodentlocid column
Updated column
}
func (c fsTimecardColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Activity, c.Comments, c.Creationdate, c.Creator, c.Enddatetime, c.Equiptype, c.Externalid, c.Editdate, c.Editor, c.Fieldtech, c.Globalid, c.Lclocid, c.Linelocid, c.Locationname, c.Objectid, c.Pointlocid, c.Polygonlocid, c.Samplelocid, c.Srid, c.Startdatetime, c.Traplocid, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Rodentlocid, c.Updated,
}
}
type fsTimecardIndexes struct {
FSTimecardPkey index
}
func (i fsTimecardIndexes) AsSlice() []index {
return []index{
i.FSTimecardPkey,
}
}
type fsTimecardForeignKeys struct {
FSTimecardFSTimecardOrganizationIDFkey foreignKey
}
func (f fsTimecardForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSTimecardFSTimecardOrganizationIDFkey,
}
}
type fsTimecardUniques struct{}
func (u fsTimecardUniques) AsSlice() []constraint {
return []constraint{}
}
type fsTimecardChecks struct{}
func (c fsTimecardChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,557 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSTrapdata = Table[
fsTrapdatumColumns,
fsTrapdatumIndexes,
fsTrapdatumForeignKeys,
fsTrapdatumUniques,
fsTrapdatumChecks,
]{
Schema: "",
Name: "fs_trapdata",
Columns: fsTrapdatumColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Field: column{
Name: "field",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Idbytech: column{
Name: "idbytech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LocID: column{
Name: "loc_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LR: column{
Name: "lr",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Processed: column{
Name: "processed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitecond: column{
Name: "sitecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sortbytech: column{
Name: "sortbytech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Trapactivitytype: column{
Name: "trapactivitytype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Trapcondition: column{
Name: "trapcondition",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Trapnights: column{
Name: "trapnights",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Traptype: column{
Name: "traptype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Voltage: column{
Name: "voltage",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Lure: column{
Name: "lure",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvtrapdataid: column{
Name: "vectorsurvtrapdataid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvtraplocationid: column{
Name: "vectorsurvtraplocationid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsTrapdatumIndexes{
FSTrapdataPkey: index{
Type: "btree",
Name: "fs_trapdata_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_trapdata_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsTrapdatumForeignKeys{
FSTrapdataFSTrapdataOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_trapdata.fs_trapdata_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsTrapdatumColumns struct {
OrganizationID column
Avetemp column
Comments column
Creationdate column
Creator column
Enddatetime column
Editdate column
Editor column
Fieldtech column
Field column
Gatewaysync column
Globalid column
Idbytech column
Locationname column
LocID column
LR column
Objectid column
Processed column
Raingauge column
Recordstatus column
Reviewed column
Reviewedby column
Revieweddate column
Sitecond column
Sortbytech column
Srid column
Startdatetime column
Trapactivitytype column
Trapcondition column
Trapnights column
Traptype column
Voltage column
Winddir column
Windspeed column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Lure column
Vectorsurvtrapdataid column
Vectorsurvtraplocationid column
Updated column
}
func (c fsTrapdatumColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Avetemp, c.Comments, c.Creationdate, c.Creator, c.Enddatetime, c.Editdate, c.Editor, c.Fieldtech, c.Field, c.Gatewaysync, c.Globalid, c.Idbytech, c.Locationname, c.LocID, c.LR, c.Objectid, c.Processed, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Sitecond, c.Sortbytech, c.Srid, c.Startdatetime, c.Trapactivitytype, c.Trapcondition, c.Trapnights, c.Traptype, c.Voltage, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Lure, c.Vectorsurvtrapdataid, c.Vectorsurvtraplocationid, c.Updated,
}
}
type fsTrapdatumIndexes struct {
FSTrapdataPkey index
}
func (i fsTrapdatumIndexes) AsSlice() []index {
return []index{
i.FSTrapdataPkey,
}
}
type fsTrapdatumForeignKeys struct {
FSTrapdataFSTrapdataOrganizationIDFkey foreignKey
}
func (f fsTrapdatumForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSTrapdataFSTrapdataOrganizationIDFkey,
}
}
type fsTrapdatumUniques struct{}
func (u fsTrapdatumUniques) AsSlice() []constraint {
return []constraint{}
}
type fsTrapdatumChecks struct{}
func (c fsTrapdatumChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,465 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSTraplocations = Table[
fsTraplocationColumns,
fsTraplocationIndexes,
fsTraplocationForeignKeys,
fsTraplocationUniques,
fsTraplocationChecks,
]{
Schema: "",
Name: "fs_traplocation",
Columns: fsTraplocationColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Accessdesc: column{
Name: "accessdesc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Description: column{
Name: "description",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Externalid: column{
Name: "externalid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Gatewaysync: column{
Name: "gatewaysync",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationnumber: column{
Name: "locationnumber",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Nextactiondatescheduled: column{
Name: "nextactiondatescheduled",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Priority: column{
Name: "priority",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Usetype: column{
Name: "usetype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Route: column{
Name: "route",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
RouteOrder: column{
Name: "route_order",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
SetDow: column{
Name: "set_dow",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Vectorsurvsiteid: column{
Name: "vectorsurvsiteid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
H3R7: column{
Name: "h3r7",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
H3R8: column{
Name: "h3r8",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Geom: column{
Name: "geom",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsTraplocationIndexes{
FSTraplocationPkey: index{
Type: "btree",
Name: "fs_traplocation_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
IdxFSTraplocationGeom: index{
Type: "gist",
Name: "idx_fs_traplocation_geom",
Columns: []indexColumn{
{
Name: "geom",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: false,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_traplocation_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsTraplocationForeignKeys{
FSTraplocationFSTraplocationOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_traplocation.fs_traplocation_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsTraplocationColumns struct {
OrganizationID column
Accessdesc column
Active column
Comments column
Creationdate column
Creator column
Description column
Externalid column
Editdate column
Editor column
Gatewaysync column
Globalid column
Habitat column
Locationnumber column
Name column
Nextactiondatescheduled column
Objectid column
Priority column
Usetype column
Zone column
Zone2 column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Route column
RouteOrder column
SetDow column
Vectorsurvsiteid column
H3R7 column
H3R8 column
Updated column
Geom column
}
func (c fsTraplocationColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Accessdesc, c.Active, c.Comments, c.Creationdate, c.Creator, c.Description, c.Externalid, c.Editdate, c.Editor, c.Gatewaysync, c.Globalid, c.Habitat, c.Locationnumber, c.Name, c.Nextactiondatescheduled, c.Objectid, c.Priority, c.Usetype, c.Zone, c.Zone2, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Route, c.RouteOrder, c.SetDow, c.Vectorsurvsiteid, c.H3R7, c.H3R8, c.Updated, c.Geom,
}
}
type fsTraplocationIndexes struct {
FSTraplocationPkey index
IdxFSTraplocationGeom index
}
func (i fsTraplocationIndexes) AsSlice() []index {
return []index{
i.FSTraplocationPkey, i.IdxFSTraplocationGeom,
}
}
type fsTraplocationForeignKeys struct {
FSTraplocationFSTraplocationOrganizationIDFkey foreignKey
}
func (f fsTraplocationForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSTraplocationFSTraplocationOrganizationIDFkey,
}
}
type fsTraplocationUniques struct{}
func (u fsTraplocationUniques) AsSlice() []constraint {
return []constraint{}
}
type fsTraplocationChecks struct{}
func (c fsTraplocationChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,705 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSTreatments = Table[
fsTreatmentColumns,
fsTreatmentIndexes,
fsTreatmentForeignKeys,
fsTreatmentUniques,
fsTreatmentChecks,
]{
Schema: "",
Name: "fs_treatment",
Columns: fsTreatmentColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Activity: column{
Name: "activity",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Areaunit: column{
Name: "areaunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Avetemp: column{
Name: "avetemp",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Barrierrouteid: column{
Name: "barrierrouteid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Cbcount: column{
Name: "cbcount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Containercount: column{
Name: "containercount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Enddatetime: column{
Name: "enddatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Equiptype: column{
Name: "equiptype",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Fieldtech: column{
Name: "fieldtech",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Flowrate: column{
Name: "flowrate",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Habitat: column{
Name: "habitat",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
InspID: column{
Name: "insp_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Invloc: column{
Name: "invloc",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Linelocid: column{
Name: "linelocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Locationname: column{
Name: "locationname",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Method: column{
Name: "method",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Pointlocid: column{
Name: "pointlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Polygonlocid: column{
Name: "polygonlocid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Product: column{
Name: "product",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ptaid: column{
Name: "ptaid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Qty: column{
Name: "qty",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Qtyunit: column{
Name: "qtyunit",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Raingauge: column{
Name: "raingauge",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Recordstatus: column{
Name: "recordstatus",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewed: column{
Name: "reviewed",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Reviewedby: column{
Name: "reviewedby",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Revieweddate: column{
Name: "revieweddate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sdid: column{
Name: "sdid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Sitecond: column{
Name: "sitecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Startdatetime: column{
Name: "startdatetime",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Targetspecies: column{
Name: "targetspecies",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Tirecount: column{
Name: "tirecount",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatacres: column{
Name: "treatacres",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatarea: column{
Name: "treatarea",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treathectares: column{
Name: "treathectares",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatmenthours: column{
Name: "treatmenthours",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatmentlength: column{
Name: "treatmentlength",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatmentlengthunits: column{
Name: "treatmentlengthunits",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Totalcostprodcut: column{
Name: "totalcostprodcut",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Ulvrouteid: column{
Name: "ulvrouteid",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Warningoverride: column{
Name: "warningoverride",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Winddir: column{
Name: "winddir",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Windspeed: column{
Name: "windspeed",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone: column{
Name: "zone",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Zone2: column{
Name: "zone2",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TempSitecond: column{
Name: "temp_sitecond",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Geom: column{
Name: "geom",
DBType: "geometry",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsTreatmentIndexes{
FSTreatmentPkey: index{
Type: "btree",
Name: "fs_treatment_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
IdxFSTreatmentGeom: index{
Type: "gist",
Name: "idx_fs_treatment_geom",
Columns: []indexColumn{
{
Name: "geom",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: false,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_treatment_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsTreatmentForeignKeys{
FSTreatmentFSTreatmentOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_treatment.fs_treatment_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsTreatmentColumns struct {
OrganizationID column
Activity column
Areaunit column
Avetemp column
Barrierrouteid column
Cbcount column
Comments column
Containercount column
Creationdate column
Creator column
Enddatetime column
Equiptype column
Editdate column
Editor column
Fieldtech column
Flowrate column
Globalid column
Habitat column
InspID column
Invloc column
Linelocid column
Locationname column
Method column
Objectid column
Pointlocid column
Polygonlocid column
Product column
Ptaid column
Qty column
Qtyunit column
Raingauge column
Recordstatus column
Reviewed column
Reviewedby column
Revieweddate column
Sdid column
Sitecond column
Srid column
Startdatetime column
Targetspecies column
Tirecount column
Treatacres column
Treatarea column
Treathectares column
Treatmenthours column
Treatmentlength column
Treatmentlengthunits column
Totalcostprodcut column
Ulvrouteid column
Warningoverride column
Winddir column
Windspeed column
Zone column
Zone2 column
GeometryX column
GeometryY column
TempSitecond column
Updated column
Geom column
}
func (c fsTreatmentColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Activity, c.Areaunit, c.Avetemp, c.Barrierrouteid, c.Cbcount, c.Comments, c.Containercount, c.Creationdate, c.Creator, c.Enddatetime, c.Equiptype, c.Editdate, c.Editor, c.Fieldtech, c.Flowrate, c.Globalid, c.Habitat, c.InspID, c.Invloc, c.Linelocid, c.Locationname, c.Method, c.Objectid, c.Pointlocid, c.Polygonlocid, c.Product, c.Ptaid, c.Qty, c.Qtyunit, c.Raingauge, c.Recordstatus, c.Reviewed, c.Reviewedby, c.Revieweddate, c.Sdid, c.Sitecond, c.Srid, c.Startdatetime, c.Targetspecies, c.Tirecount, c.Treatacres, c.Treatarea, c.Treathectares, c.Treatmenthours, c.Treatmentlength, c.Treatmentlengthunits, c.Totalcostprodcut, c.Ulvrouteid, c.Warningoverride, c.Winddir, c.Windspeed, c.Zone, c.Zone2, c.GeometryX, c.GeometryY, c.TempSitecond, c.Updated, c.Geom,
}
}
type fsTreatmentIndexes struct {
FSTreatmentPkey index
IdxFSTreatmentGeom index
}
func (i fsTreatmentIndexes) AsSlice() []index {
return []index{
i.FSTreatmentPkey, i.IdxFSTreatmentGeom,
}
}
type fsTreatmentForeignKeys struct {
FSTreatmentFSTreatmentOrganizationIDFkey foreignKey
}
func (f fsTreatmentForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSTreatmentFSTreatmentOrganizationIDFkey,
}
}
type fsTreatmentUniques struct{}
func (u fsTreatmentUniques) AsSlice() []constraint {
return []constraint{}
}
type fsTreatmentChecks struct{}
func (c fsTreatmentChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,317 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSTreatmentareas = Table[
fsTreatmentareaColumns,
fsTreatmentareaIndexes,
fsTreatmentareaForeignKeys,
fsTreatmentareaUniques,
fsTreatmentareaChecks,
]{
Schema: "",
Name: "fs_treatmentarea",
Columns: fsTreatmentareaColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Comments: column{
Name: "comments",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Notified: column{
Name: "notified",
DBType: "smallint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
SessionID: column{
Name: "session_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Treatdate: column{
Name: "treatdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
TreatID: column{
Name: "treat_id",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsTreatmentareaIndexes{
FSTreatmentareaPkey: index{
Type: "btree",
Name: "fs_treatmentarea_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_treatmentarea_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsTreatmentareaForeignKeys{
FSTreatmentareaFSTreatmentareaOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_treatmentarea.fs_treatmentarea_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsTreatmentareaColumns struct {
OrganizationID column
Comments column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Notified column
Objectid column
SessionID column
ShapeArea column
ShapeLength column
Treatdate column
TreatID column
Type column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsTreatmentareaColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Comments, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Notified, c.Objectid, c.SessionID, c.ShapeArea, c.ShapeLength, c.Treatdate, c.TreatID, c.Type, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsTreatmentareaIndexes struct {
FSTreatmentareaPkey index
}
func (i fsTreatmentareaIndexes) AsSlice() []index {
return []index{
i.FSTreatmentareaPkey,
}
}
type fsTreatmentareaForeignKeys struct {
FSTreatmentareaFSTreatmentareaOrganizationIDFkey foreignKey
}
func (f fsTreatmentareaForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSTreatmentareaFSTreatmentareaOrganizationIDFkey,
}
}
type fsTreatmentareaUniques struct{}
func (u fsTreatmentareaUniques) AsSlice() []constraint {
return []constraint{}
}
type fsTreatmentareaChecks struct{}
func (c fsTreatmentareaChecks) AsSlice() []check {
return []check{}
}

277
db/dbinfo/fs_zones.bob.go Normal file
View file

@ -0,0 +1,277 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSZones = Table[
fsZoneColumns,
fsZoneIndexes,
fsZoneForeignKeys,
fsZoneUniques,
fsZoneChecks,
]{
Schema: "",
Name: "fs_zones",
Columns: fsZoneColumns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Active: column{
Name: "active",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsZoneIndexes{
FSZonesPkey: index{
Type: "btree",
Name: "fs_zones_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_zones_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsZoneForeignKeys{
FSZonesFSZonesOrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_zones.fs_zones_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsZoneColumns struct {
OrganizationID column
Active column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Name column
Objectid column
ShapeArea column
ShapeLength column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsZoneColumns) AsSlice() []column {
return []column{
c.OrganizationID, c.Active, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Name, c.Objectid, c.ShapeArea, c.ShapeLength, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsZoneIndexes struct {
FSZonesPkey index
}
func (i fsZoneIndexes) AsSlice() []index {
return []index{
i.FSZonesPkey,
}
}
type fsZoneForeignKeys struct {
FSZonesFSZonesOrganizationIDFkey foreignKey
}
func (f fsZoneForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSZonesFSZonesOrganizationIDFkey,
}
}
type fsZoneUniques struct{}
func (u fsZoneUniques) AsSlice() []constraint {
return []constraint{}
}
type fsZoneChecks struct{}
func (c fsZoneChecks) AsSlice() []check {
return []check{}
}

267
db/dbinfo/fs_zones2.bob.go Normal file
View file

@ -0,0 +1,267 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
import "github.com/aarondl/opt/null"
var FSZones2s = Table[
fsZones2Columns,
fsZones2Indexes,
fsZones2ForeignKeys,
fsZones2Uniques,
fsZones2Checks,
]{
Schema: "",
Name: "fs_zones2",
Columns: fsZones2Columns{
OrganizationID: column{
Name: "organization_id",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Creationdate: column{
Name: "creationdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Creator: column{
Name: "creator",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editdate: column{
Name: "editdate",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Editor: column{
Name: "editor",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Globalid: column{
Name: "globalid",
DBType: "text",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
Name: column{
Name: "name",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Objectid: column{
Name: "objectid",
DBType: "integer",
Default: "",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
ShapeArea: column{
Name: "shape__area",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
ShapeLength: column{
Name: "shape__length",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedDate: column{
Name: "created_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CreatedUser: column{
Name: "created_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryX: column{
Name: "geometry_x",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
GeometryY: column{
Name: "geometry_y",
DBType: "double precision",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedDate: column{
Name: "last_edited_date",
DBType: "bigint",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
LastEditedUser: column{
Name: "last_edited_user",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Updated: column{
Name: "updated",
DBType: "timestamp without time zone",
Default: "CURRENT_TIMESTAMP",
Comment: "",
Nullable: false,
Generated: false,
AutoIncr: false,
},
},
Indexes: fsZones2Indexes{
FSZones2Pkey: index{
Type: "btree",
Name: "fs_zones2_pkey",
Columns: []indexColumn{
{
Name: "objectid",
Desc: null.FromCond(false, true),
IsExpression: false,
},
},
Unique: true,
Comment: "",
NullsFirst: []bool{false},
NullsDistinct: false,
Where: "",
Include: []string{},
},
},
PrimaryKey: &constraint{
Name: "fs_zones2_pkey",
Columns: []string{"objectid"},
Comment: "",
},
ForeignKeys: fsZones2ForeignKeys{
FSZones2FSZones2OrganizationIDFkey: foreignKey{
constraint: constraint{
Name: "fs_zones2.fs_zones2_organization_id_fkey",
Columns: []string{"organization_id"},
Comment: "",
},
ForeignTable: "organization",
ForeignColumns: []string{"id"},
},
},
Comment: "",
}
type fsZones2Columns struct {
OrganizationID column
Creationdate column
Creator column
Editdate column
Editor column
Globalid column
Name column
Objectid column
ShapeArea column
ShapeLength column
CreatedDate column
CreatedUser column
GeometryX column
GeometryY column
LastEditedDate column
LastEditedUser column
Updated column
}
func (c fsZones2Columns) AsSlice() []column {
return []column{
c.OrganizationID, c.Creationdate, c.Creator, c.Editdate, c.Editor, c.Globalid, c.Name, c.Objectid, c.ShapeArea, c.ShapeLength, c.CreatedDate, c.CreatedUser, c.GeometryX, c.GeometryY, c.LastEditedDate, c.LastEditedUser, c.Updated,
}
}
type fsZones2Indexes struct {
FSZones2Pkey index
}
func (i fsZones2Indexes) AsSlice() []index {
return []index{
i.FSZones2Pkey,
}
}
type fsZones2ForeignKeys struct {
FSZones2FSZones2OrganizationIDFkey foreignKey
}
func (f fsZones2ForeignKeys) AsSlice() []foreignKey {
return []foreignKey{
f.FSZones2FSZones2OrganizationIDFkey,
}
}
type fsZones2Uniques struct{}
func (u fsZones2Uniques) AsSlice() []constraint {
return []constraint{}
}
type fsZones2Checks struct{}
func (c fsZones2Checks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,122 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
var GeographyColumns = Table[
geographyColumnColumns,
geographyColumnIndexes,
geographyColumnForeignKeys,
geographyColumnUniques,
geographyColumnChecks,
]{
Schema: "",
Name: "geography_columns",
Columns: geographyColumnColumns{
FTableCatalog: column{
Name: "f_table_catalog",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FTableSchema: column{
Name: "f_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FTableName: column{
Name: "f_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FGeographyColumn: column{
Name: "f_geography_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CoordDimension: column{
Name: "coord_dimension",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type",
DBType: "text",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Comment: "",
}
type geographyColumnColumns struct {
FTableCatalog column
FTableSchema column
FTableName column
FGeographyColumn column
CoordDimension column
Srid column
Type column
}
func (c geographyColumnColumns) AsSlice() []column {
return []column{
c.FTableCatalog, c.FTableSchema, c.FTableName, c.FGeographyColumn, c.CoordDimension, c.Srid, c.Type,
}
}
type geographyColumnIndexes struct{}
func (i geographyColumnIndexes) AsSlice() []index {
return []index{}
}
type geographyColumnForeignKeys struct{}
func (f geographyColumnForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type geographyColumnUniques struct{}
func (u geographyColumnUniques) AsSlice() []constraint {
return []constraint{}
}
type geographyColumnChecks struct{}
func (c geographyColumnChecks) AsSlice() []check {
return []check{}
}

View file

@ -0,0 +1,122 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package dbinfo
var GeometryColumns = Table[
geometryColumnColumns,
geometryColumnIndexes,
geometryColumnForeignKeys,
geometryColumnUniques,
geometryColumnChecks,
]{
Schema: "",
Name: "geometry_columns",
Columns: geometryColumnColumns{
FTableCatalog: column{
Name: "f_table_catalog",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FTableSchema: column{
Name: "f_table_schema",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FTableName: column{
Name: "f_table_name",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
FGeometryColumn: column{
Name: "f_geometry_column",
DBType: "name",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
CoordDimension: column{
Name: "coord_dimension",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Srid: column{
Name: "srid",
DBType: "integer",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
Type: column{
Name: "type",
DBType: "character varying",
Default: "NULL",
Comment: "",
Nullable: true,
Generated: false,
AutoIncr: false,
},
},
Comment: "",
}
type geometryColumnColumns struct {
FTableCatalog column
FTableSchema column
FTableName column
FGeometryColumn column
CoordDimension column
Srid column
Type column
}
func (c geometryColumnColumns) AsSlice() []column {
return []column{
c.FTableCatalog, c.FTableSchema, c.FTableName, c.FGeometryColumn, c.CoordDimension, c.Srid, c.Type,
}
}
type geometryColumnIndexes struct{}
func (i geometryColumnIndexes) AsSlice() []index {
return []index{}
}
type geometryColumnForeignKeys struct{}
func (f geometryColumnForeignKeys) AsSlice() []foreignKey {
return []foreignKey{}
}
type geometryColumnUniques struct{}
func (u geometryColumnUniques) AsSlice() []constraint {
return []constraint{}
}
type geometryColumnChecks struct{}
func (c geometryColumnChecks) AsSlice() []check {
return []check{}
}

Some files were not shown because too many files have changed in this diff Show more