Add initial synchronization of Fieldseeker data by oauth
This involves a lot of copy-pasta of code from the previous version of this logic in another code base. It'll need to be cleaned up, but for now I need something sooner rather than later.
This commit is contained in:
parent
46ea655073
commit
9010726707
235 changed files with 259263 additions and 153 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit e47b350f9231a16c815b927947f9d718cec2d3fe
|
Subproject commit c2a9e9811f3f4fcf5b5c030788dd03fa5e2f748d
|
||||||
478
arcgis.go
478
arcgis.go
|
|
@ -14,12 +14,14 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/Gleipnir-Technology/arcgis-go"
|
"github.com/Gleipnir-Technology/arcgis-go"
|
||||||
|
"github.com/Gleipnir-Technology/arcgis-go/fieldseeker"
|
||||||
"github.com/Gleipnir-Technology/nidus-sync/models"
|
"github.com/Gleipnir-Technology/nidus-sync/models"
|
||||||
"github.com/Gleipnir-Technology/nidus-sync/sql"
|
"github.com/Gleipnir-Technology/nidus-sync/sql"
|
||||||
"github.com/aarondl/opt/omit"
|
"github.com/aarondl/opt/omit"
|
||||||
|
|
@ -154,10 +156,19 @@ func updateArcgisUserData(ctx context.Context, user *models.User, access_token s
|
||||||
}
|
}
|
||||||
for _, result := range search.Results {
|
for _, result := range search.Results {
|
||||||
slog.Info("Got result", slog.String("name", result.Name))
|
slog.Info("Got result", slog.String("name", result.Name))
|
||||||
//if result.Name == "FieldseekerGIS" {
|
if result.Name == "FieldSeekerGIS" {
|
||||||
//slog.Info("Found Fieldseeker", slog.String("url", result.URL))
|
slog.Info("Found Fieldseeker", slog.String("url", result.URL))
|
||||||
//}
|
setter := models.OrganizationSetter{
|
||||||
|
FieldseekerURL: omitnull.From(result.URL),
|
||||||
|
}
|
||||||
|
err = org.Update(ctx, PGInstance.BobDB, &setter)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to create new organization", slog.String("err", err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
NewOAuthTokenChannel <- struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleOauthAccessCode(ctx context.Context, user *models.User, code string) error {
|
func handleOauthAccessCode(ctx context.Context, user *models.User, code string) error {
|
||||||
|
|
@ -195,7 +206,6 @@ func handleOauthAccessCode(ctx context.Context, user *models.User, code string)
|
||||||
return fmt.Errorf("Failed to save token to database: %v", err)
|
return fmt.Errorf("Failed to save token to database: %v", err)
|
||||||
}
|
}
|
||||||
go updateArcgisUserData(context.Background(), user, token.AccessToken, accessExpires, token.RefreshToken, refreshExpires)
|
go updateArcgisUserData(context.Background(), user, token.AccessToken, accessExpires, token.RefreshToken, refreshExpires)
|
||||||
NewOAuthTokenChannel <- struct{}{}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -228,6 +238,7 @@ func refreshFieldseekerData(ctx context.Context, newOauthCh <-chan struct{}) {
|
||||||
maintainOAuth(workerCtx, oauth)
|
maintainOAuth(workerCtx, oauth)
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
slog.Info("Exiting refresh worker...")
|
slog.Info("Exiting refresh worker...")
|
||||||
|
|
@ -242,6 +253,82 @@ func refreshFieldseekerData(ctx context.Context, newOauthCh <-chan struct{}) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func downloadAllRecords(ctx context.Context, fssync *fieldseeker.FieldSeeker, layer arcgis.LayerFeature) (int, int, error) {
|
||||||
|
inserts := 0
|
||||||
|
updates := 0
|
||||||
|
offset := 0
|
||||||
|
count, err := fssync.QueryCount(layer.ID)
|
||||||
|
if err != nil {
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to get counts for layer %s (%d): %v", layer.Name, layer.ID, err)
|
||||||
|
}
|
||||||
|
slog.Info("Starting on layer", slog.String("name", layer.Name), slog.Int("id", layer.ID))
|
||||||
|
if count.Count == 0 {
|
||||||
|
return inserts, updates, nil
|
||||||
|
}
|
||||||
|
for {
|
||||||
|
if offset >= count.Count {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
query := arcgis.NewQuery()
|
||||||
|
query.ResultRecordCount = fssync.MaxRecordCount()
|
||||||
|
query.ResultOffset = offset
|
||||||
|
query.SpatialReference = "4326"
|
||||||
|
query.OutFields = "*"
|
||||||
|
query.Where = "1=1"
|
||||||
|
qr, err := fssync.DoQuery(
|
||||||
|
layer.ID,
|
||||||
|
query)
|
||||||
|
if err != nil {
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to get layer %s (%d) at offset %d: %v", layer.Name, layer.ID, offset, err)
|
||||||
|
}
|
||||||
|
i, u, err := saveOrUpdateDBRecords(ctx, "FS_"+layer.Name, qr)
|
||||||
|
if err != nil {
|
||||||
|
saveRawQuery(fssync, layer, query, "failure.json")
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to save records: %v", err)
|
||||||
|
}
|
||||||
|
inserts += i
|
||||||
|
updates += u
|
||||||
|
offset += len(qr.Features)
|
||||||
|
}
|
||||||
|
slog.Info("Finished layer", slog.Int("inserts", inserts), slog.Int("updates", updates), slog.Int("no change", count.Count-inserts-updates))
|
||||||
|
return inserts, updates, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func exportFieldseekerData(ctx context.Context, oauth *models.OauthToken) error {
|
||||||
|
slog.Info("Update Fieldseeker data")
|
||||||
|
ar := arcgis.NewArcGIS(
|
||||||
|
arcgis.AuthenticatorOAuth{
|
||||||
|
AccessToken: oauth.AccessToken,
|
||||||
|
AccessTokenExpires: oauth.AccessTokenExpires,
|
||||||
|
RefreshToken: oauth.RefreshToken,
|
||||||
|
RefreshTokenExpires: oauth.RefreshTokenExpires,
|
||||||
|
},
|
||||||
|
)
|
||||||
|
row, err := sql.OrgByOauthId(oauth.ID).One(ctx, PGInstance.BobDB)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to get org ID: %v", err)
|
||||||
|
}
|
||||||
|
fssync, err := fieldseeker.NewFieldSeeker(
|
||||||
|
ar,
|
||||||
|
row.FieldseekerURL.MustGet(),
|
||||||
|
)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to create fssync: %v", err)
|
||||||
|
}
|
||||||
|
inserts := 0
|
||||||
|
updates := 0
|
||||||
|
for _, layer := range fssync.FeatureServerLayers() {
|
||||||
|
i, u, err := downloadAllRecords(ctx, fssync, layer)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to get layer %s: %v", layer, err)
|
||||||
|
}
|
||||||
|
inserts += i
|
||||||
|
updates += u
|
||||||
|
}
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func maintainOAuth(ctx context.Context, oauth *models.OauthToken) {
|
func maintainOAuth(ctx context.Context, oauth *models.OauthToken) {
|
||||||
refreshDelay := time.Until(oauth.AccessTokenExpires)
|
refreshDelay := time.Until(oauth.AccessTokenExpires)
|
||||||
slog.Info("Need to refresh oauth", slog.Int("id", int(oauth.ID)), slog.Float64("seconds", refreshDelay.Seconds()))
|
slog.Info("Need to refresh oauth", slog.Int("id", int(oauth.ID)), slog.Float64("seconds", refreshDelay.Seconds()))
|
||||||
|
|
@ -251,14 +338,26 @@ func maintainOAuth(ctx context.Context, oauth *models.OauthToken) {
|
||||||
slog.Error("Failed to refresh token", slog.String("err", err.Error()))
|
slog.Error("Failed to refresh token", slog.String("err", err.Error()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
refreshDelay = time.Until(oauth.AccessTokenExpires)
|
||||||
}
|
}
|
||||||
ticker := time.NewTicker(refreshDelay)
|
refreshTicker := time.NewTicker(refreshDelay)
|
||||||
|
pollTicker := time.NewTicker(1)
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return
|
return
|
||||||
case <-ticker.C:
|
case <-refreshTicker.C:
|
||||||
|
err := refreshOAuth(ctx, oauth)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to refresh token", slog.String("err", err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
case <-pollTicker.C:
|
||||||
|
err := exportFieldseekerData(ctx, oauth)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to export Fieldseeker data", slog.String("err", err.Error()))
|
||||||
|
}
|
||||||
|
pollTicker = time.NewTicker(15 * time.Minute)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -283,18 +382,16 @@ func refreshOAuth(ctx context.Context, oauth *models.OauthToken) error {
|
||||||
return fmt.Errorf("Failed to handle request: %v", err)
|
return fmt.Errorf("Failed to handle request: %v", err)
|
||||||
}
|
}
|
||||||
accessExpires := futureUTCTimestamp(token.ExpiresIn)
|
accessExpires := futureUTCTimestamp(token.ExpiresIn)
|
||||||
refreshExpires := futureUTCTimestamp(token.RefreshTokenExpiresIn)
|
|
||||||
setter := models.OauthTokenSetter{
|
setter := models.OauthTokenSetter{
|
||||||
AccessToken: omit.From(token.AccessToken),
|
AccessToken: omit.From(token.AccessToken),
|
||||||
AccessTokenExpires: omit.From(accessExpires),
|
AccessTokenExpires: omit.From(accessExpires),
|
||||||
RefreshToken: omit.From(token.RefreshToken),
|
Username: omit.From(token.Username),
|
||||||
RefreshTokenExpires: omit.From(refreshExpires),
|
|
||||||
Username: omit.From(token.Username),
|
|
||||||
}
|
}
|
||||||
err = oauth.Update(ctx, PGInstance.BobDB, &setter)
|
err = oauth.Update(ctx, PGInstance.BobDB, &setter)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Failed to update oauth in database: %v", err)
|
return fmt.Errorf("Failed to update oauth in database: %v", err)
|
||||||
}
|
}
|
||||||
|
slog.Info("Updated oauth token", slog.Int("oauth token id", int(oauth.ID)))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -382,3 +479,358 @@ func saveResponse(data []byte, filename string) {
|
||||||
}
|
}
|
||||||
slog.Info("Wrote response", slog.String("filename", filename))
|
slog.Info("Wrote response", slog.String("filename", filename))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func saveRawQuery(fssync *fieldseeker.FieldSeeker, layer arcgis.LayerFeature, query *arcgis.Query, filename string) {
|
||||||
|
output, err := os.Create(filename)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to create file", slog.String("filename", filename))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
qr, err := fssync.DoQueryRaw(
|
||||||
|
layer.ID,
|
||||||
|
query)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to do query", slog.String("err", err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, err = output.Write(qr)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error("Failed to write results", slog.String("err", err.Error()))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
slog.Info("Wrote failed query", slog.String("filename", filename))
|
||||||
|
}
|
||||||
|
|
||||||
|
func saveOrUpdateDBRecords(ctx context.Context, table string, qr *arcgis.QueryResult) (int, int, error) {
|
||||||
|
inserts, updates := 0, 0
|
||||||
|
sorted_columns := make([]string, 0, len(qr.Fields))
|
||||||
|
for _, f := range qr.Fields {
|
||||||
|
sorted_columns = append(sorted_columns, f.Name)
|
||||||
|
}
|
||||||
|
sort.Strings(sorted_columns)
|
||||||
|
|
||||||
|
objectids := make([]int, 0)
|
||||||
|
for _, l := range qr.Features {
|
||||||
|
oid := l.Attributes["OBJECTID"].(float64)
|
||||||
|
objectids = append(objectids, int(oid))
|
||||||
|
}
|
||||||
|
|
||||||
|
rows_by_objectid, err := rowmapViaQuery(ctx, table, sorted_columns, objectids)
|
||||||
|
if err != nil {
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to get existing rows: %v", err)
|
||||||
|
}
|
||||||
|
// log.Println("Rows from query", len(rows_by_objectid))
|
||||||
|
|
||||||
|
for _, feature := range qr.Features {
|
||||||
|
oid := feature.Attributes["OBJECTID"].(float64)
|
||||||
|
row := rows_by_objectid[int(oid)]
|
||||||
|
// If we have no matching row we'll need to create it
|
||||||
|
if len(row) == 0 {
|
||||||
|
|
||||||
|
if err := insertRowFromFeature(ctx, table, sorted_columns, &feature); err != nil {
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to insert row: %v", err)
|
||||||
|
}
|
||||||
|
inserts += 1
|
||||||
|
} else if hasUpdates(row, feature) {
|
||||||
|
if err := updateRowFromFeature(ctx, table, sorted_columns, &feature); err != nil {
|
||||||
|
return inserts, updates, fmt.Errorf("Failed to update row: %v", err)
|
||||||
|
}
|
||||||
|
updates += 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return inserts, updates, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Produces a map of OBJECTID to a 'row' which is in turn a map of column names to their values as strings
|
||||||
|
func rowmapViaQuery(ctx context.Context, table string, sorted_columns []string, objectids []int) (map[int]map[string]string, error) {
|
||||||
|
result := make(map[int]map[string]string)
|
||||||
|
|
||||||
|
query := selectAllFromQueryResult(table, sorted_columns)
|
||||||
|
|
||||||
|
args := pgx.NamedArgs{
|
||||||
|
"objectids": objectids,
|
||||||
|
}
|
||||||
|
rows, err := PGInstance.PGXPool.Query(ctx, query, args)
|
||||||
|
if err != nil {
|
||||||
|
return result, fmt.Errorf("Failed to query rows: %v", err)
|
||||||
|
}
|
||||||
|
defer rows.Close()
|
||||||
|
|
||||||
|
// +2 for geometry x and geometry x
|
||||||
|
columnNames := make([]string, len(sorted_columns)+2)
|
||||||
|
for i, c := range sorted_columns {
|
||||||
|
columnNames[i] = c
|
||||||
|
}
|
||||||
|
columnNames[len(sorted_columns)] = "geometry_x"
|
||||||
|
columnNames[len(sorted_columns)+1] = "geometry_y"
|
||||||
|
|
||||||
|
rowSlice, err := pgx.CollectRows(rows, func(row pgx.CollectableRow) (map[string]string, error) {
|
||||||
|
fieldDescriptions := row.FieldDescriptions()
|
||||||
|
values := make([]interface{}, len(fieldDescriptions))
|
||||||
|
valuePtrs := make([]interface{}, len(fieldDescriptions))
|
||||||
|
|
||||||
|
for i := range values {
|
||||||
|
valuePtrs[i] = &values[i]
|
||||||
|
}
|
||||||
|
|
||||||
|
if err := row.Scan(valuePtrs...); err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
result := make(map[string]string)
|
||||||
|
for i, fd := range fieldDescriptions {
|
||||||
|
if values[i] != nil {
|
||||||
|
result[fd.Name] = fmt.Sprintf("%v", values[i])
|
||||||
|
//log.Printf("col %v type %T val %v", fd.Name, values[i], values[i])
|
||||||
|
} else {
|
||||||
|
result[fd.Name] = ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result, nil
|
||||||
|
})
|
||||||
|
if err != nil {
|
||||||
|
return result, fmt.Errorf("Failed to collect rows: %v", err)
|
||||||
|
}
|
||||||
|
for _, row := range rowSlice {
|
||||||
|
o := row["objectid"]
|
||||||
|
objectid, err := strconv.Atoi(o)
|
||||||
|
if err != nil {
|
||||||
|
return result, fmt.Errorf("Failed to parse objectid %s: %v", o, err)
|
||||||
|
}
|
||||||
|
result[objectid] = row
|
||||||
|
}
|
||||||
|
return result, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func insertRowFromFeature(ctx context.Context, table string, sorted_columns []string, feature *arcgis.Feature) error {
|
||||||
|
var options pgx.TxOptions
|
||||||
|
transaction, err := PGInstance.PGXPool.BeginTx(ctx, options)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Unable to start transaction")
|
||||||
|
}
|
||||||
|
|
||||||
|
err = insertRowFromFeatureFS(ctx, transaction, table, sorted_columns, feature)
|
||||||
|
if err != nil {
|
||||||
|
transaction.Rollback(ctx)
|
||||||
|
return fmt.Errorf("Unable to insert FS: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = insertRowFromFeatureHistory(ctx, transaction, table, sorted_columns, feature, 1)
|
||||||
|
if err != nil {
|
||||||
|
transaction.Rollback(ctx)
|
||||||
|
return fmt.Errorf("Failed to insert history: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = transaction.Commit(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to commit transaction: %v", err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func insertRowFromFeatureFS(ctx context.Context, transaction pgx.Tx, table string, sorted_columns []string, feature *arcgis.Feature) error {
|
||||||
|
// Create the query to produce the main row
|
||||||
|
var sb strings.Builder
|
||||||
|
sb.WriteString("INSERT INTO ")
|
||||||
|
sb.WriteString(table)
|
||||||
|
sb.WriteString(" (")
|
||||||
|
for _, field := range sorted_columns {
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString(",")
|
||||||
|
}
|
||||||
|
// Specially add the geometry values since they aren't in the fields
|
||||||
|
sb.WriteString("geometry_x,geometry_y,updated")
|
||||||
|
sb.WriteString(")\nVALUES (")
|
||||||
|
for _, field := range sorted_columns {
|
||||||
|
sb.WriteString("@")
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString(",")
|
||||||
|
}
|
||||||
|
// Specially add the geometry values since they aren't in the fields
|
||||||
|
sb.WriteString("@geometry_x,@geometry_y,@updated)")
|
||||||
|
|
||||||
|
args := pgx.NamedArgs{}
|
||||||
|
for k, v := range feature.Attributes {
|
||||||
|
args[k] = v
|
||||||
|
}
|
||||||
|
// specially add geometry since it isn't in the list of attributes
|
||||||
|
args["geometry_x"] = feature.Geometry.X
|
||||||
|
args["geometry_y"] = feature.Geometry.Y
|
||||||
|
args["updated"] = time.Now()
|
||||||
|
|
||||||
|
_, err := transaction.Exec(ctx, sb.String(), args)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to insert row into %s: %v", table, err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func hasUpdates(row map[string]string, feature arcgis.Feature) bool {
|
||||||
|
for key, value := range feature.Attributes {
|
||||||
|
rowdata := row[strings.ToLower(key)]
|
||||||
|
// We'll accept any 'nil' as represented by the empty string in the database
|
||||||
|
if value == nil {
|
||||||
|
if rowdata == "" {
|
||||||
|
continue
|
||||||
|
} else if len(rowdata) > 0 {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
slog.Error("Looks like our original value is nil, but our row value is something non-empty with a zero length. Need a programmer to look into this.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check strings first, their simplest
|
||||||
|
if featureAsString, ok := value.(string); ok {
|
||||||
|
if featureAsString != rowdata {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
continue
|
||||||
|
} else if featureAsInt, ok := value.(int); ok {
|
||||||
|
// Previously had a nil value, now we have a real value
|
||||||
|
if rowdata == "" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
rowAsInt, err := strconv.Atoi(rowdata)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error(fmt.Sprintf("Failed to convert '%s' to an int to compare against %v for %v", rowdata, featureAsInt, key))
|
||||||
|
}
|
||||||
|
if rowAsInt != featureAsInt {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
} else if featureAsFloat, ok := value.(float64); ok {
|
||||||
|
// Previously had a nil value, now we have a real value
|
||||||
|
if rowdata == "" {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
rowAsFloat, err := strconv.ParseFloat(rowdata, 64)
|
||||||
|
if err != nil {
|
||||||
|
slog.Error(fmt.Sprintf("Failed to convert '%s' to a float64 to compare against %v for %v", rowdata, featureAsFloat, key))
|
||||||
|
}
|
||||||
|
if rowAsFloat != featureAsFloat {
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
slog.Info(fmt.Sprintf("key: %s\tvalue: %v (type %T)\trow: %s\n", key, value, value, rowdata))
|
||||||
|
slog.Error("we've hit a point where we can't tell if we have an update or not, need a programmer to look at the above")
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
func updateRowFromFeature(ctx context.Context, table string, sorted_columns []string, feature *arcgis.Feature) error {
|
||||||
|
// Get the current highest version for the row in question
|
||||||
|
history_table := toHistoryTable(table)
|
||||||
|
var sb strings.Builder
|
||||||
|
sb.WriteString("SELECT MAX(version) FROM ")
|
||||||
|
sb.WriteString(history_table)
|
||||||
|
sb.WriteString(" WHERE OBJECTID=@objectid")
|
||||||
|
|
||||||
|
args := pgx.NamedArgs{}
|
||||||
|
o := feature.Attributes["OBJECTID"].(float64)
|
||||||
|
args["objectid"] = int(o)
|
||||||
|
|
||||||
|
var version int
|
||||||
|
if err := PGInstance.PGXPool.QueryRow(ctx, sb.String(), args).Scan(&version); err != nil {
|
||||||
|
return fmt.Errorf("Failed to query for version: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
var options pgx.TxOptions
|
||||||
|
transaction, err := PGInstance.PGXPool.BeginTx(ctx, options)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Unable to start transaction")
|
||||||
|
}
|
||||||
|
|
||||||
|
err = insertRowFromFeatureHistory(ctx, transaction, table, sorted_columns, feature, version+1)
|
||||||
|
if err != nil {
|
||||||
|
transaction.Rollback(ctx)
|
||||||
|
return fmt.Errorf("Failed to insert history: %v", err)
|
||||||
|
}
|
||||||
|
err = updateRowFromFeatureFS(ctx, transaction, table, sorted_columns, feature)
|
||||||
|
if err != nil {
|
||||||
|
transaction.Rollback(ctx)
|
||||||
|
return fmt.Errorf("Failed to update row from feature: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
|
err = transaction.Commit(ctx)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to commit transaction: %v", err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func insertRowFromFeatureHistory(ctx context.Context, transaction pgx.Tx, table string, sorted_columns []string, feature *arcgis.Feature, version int) error {
|
||||||
|
history_table := toHistoryTable(table)
|
||||||
|
var sb strings.Builder
|
||||||
|
sb.WriteString("INSERT INTO ")
|
||||||
|
sb.WriteString(history_table)
|
||||||
|
sb.WriteString(" (")
|
||||||
|
for _, field := range sorted_columns {
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString(",")
|
||||||
|
}
|
||||||
|
// Specially add the geometry values since they aren't in the fields
|
||||||
|
sb.WriteString("created,geometry_x,geometry_y,version")
|
||||||
|
sb.WriteString(")\nVALUES (")
|
||||||
|
for _, field := range sorted_columns {
|
||||||
|
sb.WriteString("@")
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString(",")
|
||||||
|
}
|
||||||
|
// Specially add the geometry values since they aren't in the fields
|
||||||
|
sb.WriteString("@created,@geometry_x,@geometry_y,@version)")
|
||||||
|
args := pgx.NamedArgs{}
|
||||||
|
for k, v := range feature.Attributes {
|
||||||
|
args[k] = v
|
||||||
|
}
|
||||||
|
args["created"] = time.Now()
|
||||||
|
args["version"] = version
|
||||||
|
if _, err := transaction.Exec(ctx, sb.String(), args); err != nil {
|
||||||
|
return fmt.Errorf("Failed to insert history row into %s: %v", table, err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
func selectAllFromQueryResult(table string, sorted_columns []string) string {
|
||||||
|
var sb strings.Builder
|
||||||
|
sb.WriteString("SELECT * FROM ")
|
||||||
|
sb.WriteString(table)
|
||||||
|
sb.WriteString(" WHERE OBJECTID=ANY(@objectids)")
|
||||||
|
return sb.String()
|
||||||
|
}
|
||||||
|
func toHistoryTable(table string) string {
|
||||||
|
return "History_" + table[3:len(table)]
|
||||||
|
}
|
||||||
|
|
||||||
|
func updateRowFromFeatureFS(ctx context.Context, transaction pgx.Tx, table string, sorted_columns []string, feature *arcgis.Feature) error {
|
||||||
|
// Create the query to produce the main row
|
||||||
|
var sb strings.Builder
|
||||||
|
sb.WriteString("UPDATE ")
|
||||||
|
sb.WriteString(table)
|
||||||
|
sb.WriteString(" SET ")
|
||||||
|
for _, field := range sorted_columns {
|
||||||
|
// OBJECTID is special as our primary key, so skip it
|
||||||
|
if field == "OBJECTID" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString("=@")
|
||||||
|
sb.WriteString(field)
|
||||||
|
sb.WriteString(",")
|
||||||
|
}
|
||||||
|
// Specially add the geometry values since they aren't in the fields
|
||||||
|
sb.WriteString("geometry_x=@geometry_x,geometry_y=@geometry_y,updated=@updated WHERE OBJECTID=@OBJECTID")
|
||||||
|
|
||||||
|
args := pgx.NamedArgs{}
|
||||||
|
for k, v := range feature.Attributes {
|
||||||
|
args[k] = v
|
||||||
|
}
|
||||||
|
// specially add geometry since it isn't in the list of attributes
|
||||||
|
args["geometry_x"] = feature.Geometry.X
|
||||||
|
args["geometry_y"] = feature.Geometry.Y
|
||||||
|
args["updated"] = time.Now()
|
||||||
|
|
||||||
|
_, err := transaction.Exec(ctx, sb.String(), args)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("Failed to update row into %s: %v", table, err)
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
|
||||||
17
dberrors/fs_containerrelate.bob.go
Normal file
17
dberrors/fs_containerrelate.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_fieldscoutinglog.bob.go
Normal file
17
dberrors/fs_fieldscoutinglog.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_habitatrelate.bob.go
Normal file
17
dberrors/fs_habitatrelate.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_inspectionsample.bob.go
Normal file
17
dberrors/fs_inspectionsample.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_inspectionsampledetail.bob.go
Normal file
17
dberrors/fs_inspectionsampledetail.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_linelocation.bob.go
Normal file
17
dberrors/fs_linelocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_locationtracking.bob.go
Normal file
17
dberrors/fs_locationtracking.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_mosquitoinspection.bob.go
Normal file
17
dberrors/fs_mosquitoinspection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_pointlocation.bob.go
Normal file
17
dberrors/fs_pointlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_polygonlocation.bob.go
Normal file
17
dberrors/fs_polygonlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_pool.bob.go
Normal file
17
dberrors/fs_pool.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_pooldetail.bob.go
Normal file
17
dberrors/fs_pooldetail.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_proposedtreatmentarea.bob.go
Normal file
17
dberrors/fs_proposedtreatmentarea.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_qamosquitoinspection.bob.go
Normal file
17
dberrors/fs_qamosquitoinspection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_rodentlocation.bob.go
Normal file
17
dberrors/fs_rodentlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_samplecollection.bob.go
Normal file
17
dberrors/fs_samplecollection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_samplelocation.bob.go
Normal file
17
dberrors/fs_samplelocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_servicerequest.bob.go
Normal file
17
dberrors/fs_servicerequest.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_speciesabundance.bob.go
Normal file
17
dberrors/fs_speciesabundance.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_stormdrain.bob.go
Normal file
17
dberrors/fs_stormdrain.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_timecard.bob.go
Normal file
17
dberrors/fs_timecard.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_trapdata.bob.go
Normal file
17
dberrors/fs_trapdata.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_traplocation.bob.go
Normal file
17
dberrors/fs_traplocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_treatment.bob.go
Normal file
17
dberrors/fs_treatment.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_treatmentarea.bob.go
Normal file
17
dberrors/fs_treatmentarea.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_zones.bob.go
Normal file
17
dberrors/fs_zones.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/fs_zones2.bob.go
Normal file
17
dberrors/fs_zones2.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_containerrelate.bob.go
Normal file
17
dberrors/history_containerrelate.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_fieldscoutinglog.bob.go
Normal file
17
dberrors/history_fieldscoutinglog.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_habitatrelate.bob.go
Normal file
17
dberrors/history_habitatrelate.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_inspectionsample.bob.go
Normal file
17
dberrors/history_inspectionsample.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_inspectionsampledetail.bob.go
Normal file
17
dberrors/history_inspectionsampledetail.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_linelocation.bob.go
Normal file
17
dberrors/history_linelocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_locationtracking.bob.go
Normal file
17
dberrors/history_locationtracking.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_mosquitoinspection.bob.go
Normal file
17
dberrors/history_mosquitoinspection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_pointlocation.bob.go
Normal file
17
dberrors/history_pointlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_polygonlocation.bob.go
Normal file
17
dberrors/history_polygonlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_pool.bob.go
Normal file
17
dberrors/history_pool.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_pooldetail.bob.go
Normal file
17
dberrors/history_pooldetail.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_proposedtreatmentarea.bob.go
Normal file
17
dberrors/history_proposedtreatmentarea.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_qamosquitoinspection.bob.go
Normal file
17
dberrors/history_qamosquitoinspection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_rodentlocation.bob.go
Normal file
17
dberrors/history_rodentlocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_samplecollection.bob.go
Normal file
17
dberrors/history_samplecollection.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_samplelocation.bob.go
Normal file
17
dberrors/history_samplelocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_servicerequest.bob.go
Normal file
17
dberrors/history_servicerequest.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_speciesabundance.bob.go
Normal file
17
dberrors/history_speciesabundance.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_stormdrain.bob.go
Normal file
17
dberrors/history_stormdrain.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_timecard.bob.go
Normal file
17
dberrors/history_timecard.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_trapdata.bob.go
Normal file
17
dberrors/history_trapdata.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_traplocation.bob.go
Normal file
17
dberrors/history_traplocation.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_treatment.bob.go
Normal file
17
dberrors/history_treatment.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_treatmentarea.bob.go
Normal file
17
dberrors/history_treatmentarea.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_zones.bob.go
Normal file
17
dberrors/history_zones.bob.go
Normal 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
|
||||||
|
}
|
||||||
17
dberrors/history_zones2.bob.go
Normal file
17
dberrors/history_zones2.bob.go
Normal 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
|
||||||
|
}
|
||||||
277
dbinfo/fs_containerrelate.bob.go
Normal file
277
dbinfo/fs_containerrelate.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
247
dbinfo/fs_fieldscoutinglog.bob.go
Normal file
247
dbinfo/fs_fieldscoutinglog.bob.go
Normal 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: "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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
257
dbinfo/fs_habitatrelate.bob.go
Normal file
257
dbinfo/fs_habitatrelate.bob.go
Normal 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: "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,
|
||||||
|
},
|
||||||
|
ForeignID: column{
|
||||||
|
Name: "foreign_id",
|
||||||
|
DBType: "text",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
Globalid: column{
|
||||||
|
Name: "globalid",
|
||||||
|
DBType: "text",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
277
dbinfo/fs_inspectionsample.bob.go
Normal file
277
dbinfo/fs_inspectionsample.bob.go
Normal 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: "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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
387
dbinfo/fs_inspectionsampledetail.bob.go
Normal file
387
dbinfo/fs_inspectionsampledetail.bob.go
Normal 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: "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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
617
dbinfo/fs_linelocation.bob.go
Normal file
617
dbinfo/fs_linelocation.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
257
dbinfo/fs_locationtracking.bob.go
Normal file
257
dbinfo/fs_locationtracking.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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: 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{}
|
||||||
|
}
|
||||||
707
dbinfo/fs_mosquitoinspection.bob.go
Normal file
707
dbinfo/fs_mosquitoinspection.bob.go
Normal file
|
|
@ -0,0 +1,707 @@
|
||||||
|
// 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type fsMosquitoinspectionIndexes struct {
|
||||||
|
FSMosquitoinspectionPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i fsMosquitoinspectionIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.FSMosquitoinspectionPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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{}
|
||||||
|
}
|
||||||
577
dbinfo/fs_pointlocation.bob.go
Normal file
577
dbinfo/fs_pointlocation.bob.go
Normal file
|
|
@ -0,0 +1,577 @@
|
||||||
|
// 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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,
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type fsPointlocationIndexes struct {
|
||||||
|
FSPointlocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i fsPointlocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.FSPointlocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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{}
|
||||||
|
}
|
||||||
557
dbinfo/fs_polygonlocation.bob.go
Normal file
557
dbinfo/fs_polygonlocation.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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
dbinfo/fs_pool.bob.go
Normal file
417
dbinfo/fs_pool.bob.go
Normal 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: "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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
277
dbinfo/fs_pooldetail.bob.go
Normal file
277
dbinfo/fs_pooldetail.bob.go
Normal 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: "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,
|
||||||
|
},
|
||||||
|
Females: column{
|
||||||
|
Name: "females",
|
||||||
|
DBType: "smallint",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
Globalid: column{
|
||||||
|
Name: "globalid",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
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{}
|
||||||
|
}
|
||||||
467
dbinfo/fs_proposedtreatmentarea.bob.go
Normal file
467
dbinfo/fs_proposedtreatmentarea.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
757
dbinfo/fs_qamosquitoinspection.bob.go
Normal file
757
dbinfo/fs_qamosquitoinspection.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
437
dbinfo/fs_rodentlocation.bob.go
Normal file
437
dbinfo/fs_rodentlocation.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
597
dbinfo/fs_samplecollection.bob.go
Normal file
597
dbinfo/fs_samplecollection.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
377
dbinfo/fs_samplelocation.bob.go
Normal file
377
dbinfo/fs_samplelocation.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
997
dbinfo/fs_servicerequest.bob.go
Normal file
997
dbinfo/fs_servicerequest.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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,
|
||||||
|
},
|
||||||
|
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{}
|
||||||
|
}
|
||||||
427
dbinfo/fs_speciesabundance.bob.go
Normal file
427
dbinfo/fs_speciesabundance.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
327
dbinfo/fs_stormdrain.bob.go
Normal file
327
dbinfo/fs_stormdrain.bob.go
Normal 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: "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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
417
dbinfo/fs_timecard.bob.go
Normal file
417
dbinfo/fs_timecard.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
557
dbinfo/fs_trapdata.bob.go
Normal file
557
dbinfo/fs_trapdata.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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{}
|
||||||
|
}
|
||||||
437
dbinfo/fs_traplocation.bob.go
Normal file
437
dbinfo/fs_traplocation.bob.go
Normal 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 FSTraplocations = Table[
|
||||||
|
fsTraplocationColumns,
|
||||||
|
fsTraplocationIndexes,
|
||||||
|
fsTraplocationForeignKeys,
|
||||||
|
fsTraplocationUniques,
|
||||||
|
fsTraplocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "fs_traplocation",
|
||||||
|
Columns: fsTraplocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type fsTraplocationIndexes struct {
|
||||||
|
FSTraplocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i fsTraplocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.FSTraplocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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{}
|
||||||
|
}
|
||||||
677
dbinfo/fs_treatment.bob.go
Normal file
677
dbinfo/fs_treatment.bob.go
Normal file
|
|
@ -0,0 +1,677 @@
|
||||||
|
// 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
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,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type fsTreatmentIndexes struct {
|
||||||
|
FSTreatmentPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i fsTreatmentIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.FSTreatmentPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
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{}
|
||||||
|
}
|
||||||
317
dbinfo/fs_treatmentarea.bob.go
Normal file
317
dbinfo/fs_treatmentarea.bob.go
Normal 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: "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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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
dbinfo/fs_zones.bob.go
Normal file
277
dbinfo/fs_zones.bob.go
Normal 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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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,
|
||||||
|
},
|
||||||
|
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
dbinfo/fs_zones2.bob.go
Normal file
267
dbinfo/fs_zones2.bob.go
Normal 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: "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: "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,
|
||||||
|
},
|
||||||
|
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{}
|
||||||
|
}
|
||||||
282
dbinfo/history_containerrelate.bob.go
Normal file
282
dbinfo/history_containerrelate.bob.go
Normal file
|
|
@ -0,0 +1,282 @@
|
||||||
|
// 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 HistoryContainerrelates = Table[
|
||||||
|
historyContainerrelateColumns,
|
||||||
|
historyContainerrelateIndexes,
|
||||||
|
historyContainerrelateForeignKeys,
|
||||||
|
historyContainerrelateUniques,
|
||||||
|
historyContainerrelateChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_containerrelate",
|
||||||
|
Columns: historyContainerrelateColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyContainerrelateIndexes{
|
||||||
|
HistoryContainerrelatePkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_containerrelate_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_containerrelate_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyContainerrelateForeignKeys{
|
||||||
|
HistoryContainerrelateHistoryContainerrelateOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_containerrelate.history_containerrelate_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyContainerrelateColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyContainerrelateColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyContainerrelateIndexes struct {
|
||||||
|
HistoryContainerrelatePkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyContainerrelateIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryContainerrelatePkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyContainerrelateForeignKeys struct {
|
||||||
|
HistoryContainerrelateHistoryContainerrelateOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyContainerrelateForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryContainerrelateHistoryContainerrelateOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyContainerrelateUniques struct{}
|
||||||
|
|
||||||
|
func (u historyContainerrelateUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyContainerrelateChecks struct{}
|
||||||
|
|
||||||
|
func (c historyContainerrelateChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
252
dbinfo/history_fieldscoutinglog.bob.go
Normal file
252
dbinfo/history_fieldscoutinglog.bob.go
Normal file
|
|
@ -0,0 +1,252 @@
|
||||||
|
// 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 HistoryFieldscoutinglogs = Table[
|
||||||
|
historyFieldscoutinglogColumns,
|
||||||
|
historyFieldscoutinglogIndexes,
|
||||||
|
historyFieldscoutinglogForeignKeys,
|
||||||
|
historyFieldscoutinglogUniques,
|
||||||
|
historyFieldscoutinglogChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_fieldscoutinglog",
|
||||||
|
Columns: historyFieldscoutinglogColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyFieldscoutinglogIndexes{
|
||||||
|
HistoryFieldscoutinglogPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_fieldscoutinglog_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_fieldscoutinglog_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyFieldscoutinglogForeignKeys{
|
||||||
|
HistoryFieldscoutinglogHistoryFieldscoutinglogOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_fieldscoutinglog.history_fieldscoutinglog_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyFieldscoutinglogColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyFieldscoutinglogColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyFieldscoutinglogIndexes struct {
|
||||||
|
HistoryFieldscoutinglogPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyFieldscoutinglogIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryFieldscoutinglogPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyFieldscoutinglogForeignKeys struct {
|
||||||
|
HistoryFieldscoutinglogHistoryFieldscoutinglogOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyFieldscoutinglogForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryFieldscoutinglogHistoryFieldscoutinglogOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyFieldscoutinglogUniques struct{}
|
||||||
|
|
||||||
|
func (u historyFieldscoutinglogUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyFieldscoutinglogChecks struct{}
|
||||||
|
|
||||||
|
func (c historyFieldscoutinglogChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
262
dbinfo/history_habitatrelate.bob.go
Normal file
262
dbinfo/history_habitatrelate.bob.go
Normal file
|
|
@ -0,0 +1,262 @@
|
||||||
|
// 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 HistoryHabitatrelates = Table[
|
||||||
|
historyHabitatrelateColumns,
|
||||||
|
historyHabitatrelateIndexes,
|
||||||
|
historyHabitatrelateForeignKeys,
|
||||||
|
historyHabitatrelateUniques,
|
||||||
|
historyHabitatrelateChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_habitatrelate",
|
||||||
|
Columns: historyHabitatrelateColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
ForeignID: column{
|
||||||
|
Name: "foreign_id",
|
||||||
|
DBType: "text",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
Globalid: column{
|
||||||
|
Name: "globalid",
|
||||||
|
DBType: "text",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyHabitatrelateIndexes{
|
||||||
|
HistoryHabitatrelatePkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_habitatrelate_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_habitatrelate_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyHabitatrelateForeignKeys{
|
||||||
|
HistoryHabitatrelateHistoryHabitatrelateOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_habitatrelate.history_habitatrelate_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyHabitatrelateColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyHabitatrelateColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyHabitatrelateIndexes struct {
|
||||||
|
HistoryHabitatrelatePkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyHabitatrelateIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryHabitatrelatePkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyHabitatrelateForeignKeys struct {
|
||||||
|
HistoryHabitatrelateHistoryHabitatrelateOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyHabitatrelateForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryHabitatrelateHistoryHabitatrelateOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyHabitatrelateUniques struct{}
|
||||||
|
|
||||||
|
func (u historyHabitatrelateUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyHabitatrelateChecks struct{}
|
||||||
|
|
||||||
|
func (c historyHabitatrelateChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
282
dbinfo/history_inspectionsample.bob.go
Normal file
282
dbinfo/history_inspectionsample.bob.go
Normal file
|
|
@ -0,0 +1,282 @@
|
||||||
|
// 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 HistoryInspectionsamples = Table[
|
||||||
|
historyInspectionsampleColumns,
|
||||||
|
historyInspectionsampleIndexes,
|
||||||
|
historyInspectionsampleForeignKeys,
|
||||||
|
historyInspectionsampleUniques,
|
||||||
|
historyInspectionsampleChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_inspectionsample",
|
||||||
|
Columns: historyInspectionsampleColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyInspectionsampleIndexes{
|
||||||
|
HistoryInspectionsamplePkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_inspectionsample_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_inspectionsample_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyInspectionsampleForeignKeys{
|
||||||
|
HistoryInspectionsampleHistoryInspectionsampleOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_inspectionsample.history_inspectionsample_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampleColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyInspectionsampleColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampleIndexes struct {
|
||||||
|
HistoryInspectionsamplePkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyInspectionsampleIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryInspectionsamplePkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampleForeignKeys struct {
|
||||||
|
HistoryInspectionsampleHistoryInspectionsampleOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyInspectionsampleForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryInspectionsampleHistoryInspectionsampleOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampleUniques struct{}
|
||||||
|
|
||||||
|
func (u historyInspectionsampleUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampleChecks struct{}
|
||||||
|
|
||||||
|
func (c historyInspectionsampleChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
392
dbinfo/history_inspectionsampledetail.bob.go
Normal file
392
dbinfo/history_inspectionsampledetail.bob.go
Normal file
|
|
@ -0,0 +1,392 @@
|
||||||
|
// 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 HistoryInspectionsampledetails = Table[
|
||||||
|
historyInspectionsampledetailColumns,
|
||||||
|
historyInspectionsampledetailIndexes,
|
||||||
|
historyInspectionsampledetailForeignKeys,
|
||||||
|
historyInspectionsampledetailUniques,
|
||||||
|
historyInspectionsampledetailChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_inspectionsampledetail",
|
||||||
|
Columns: historyInspectionsampledetailColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyInspectionsampledetailIndexes{
|
||||||
|
HistoryInspectionsampledetailPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_inspectionsampledetail_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_inspectionsampledetail_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyInspectionsampledetailForeignKeys{
|
||||||
|
HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_inspectionsampledetail.history_inspectionsampledetail_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampledetailColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyInspectionsampledetailColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampledetailIndexes struct {
|
||||||
|
HistoryInspectionsampledetailPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyInspectionsampledetailIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryInspectionsampledetailPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampledetailForeignKeys struct {
|
||||||
|
HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyInspectionsampledetailForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryInspectionsampledetailHistoryInspectionsampledetailOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampledetailUniques struct{}
|
||||||
|
|
||||||
|
func (u historyInspectionsampledetailUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyInspectionsampledetailChecks struct{}
|
||||||
|
|
||||||
|
func (c historyInspectionsampledetailChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
622
dbinfo/history_linelocation.bob.go
Normal file
622
dbinfo/history_linelocation.bob.go
Normal file
|
|
@ -0,0 +1,622 @@
|
||||||
|
// 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 HistoryLinelocations = Table[
|
||||||
|
historyLinelocationColumns,
|
||||||
|
historyLinelocationIndexes,
|
||||||
|
historyLinelocationForeignKeys,
|
||||||
|
historyLinelocationUniques,
|
||||||
|
historyLinelocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_linelocation",
|
||||||
|
Columns: historyLinelocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyLinelocationIndexes{
|
||||||
|
HistoryLinelocationPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_linelocation_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_linelocation_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyLinelocationForeignKeys{
|
||||||
|
HistoryLinelocationHistoryLinelocationOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_linelocation.history_linelocation_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLinelocationColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyLinelocationColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLinelocationIndexes struct {
|
||||||
|
HistoryLinelocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyLinelocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryLinelocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLinelocationForeignKeys struct {
|
||||||
|
HistoryLinelocationHistoryLinelocationOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyLinelocationForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryLinelocationHistoryLinelocationOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLinelocationUniques struct{}
|
||||||
|
|
||||||
|
func (u historyLinelocationUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLinelocationChecks struct{}
|
||||||
|
|
||||||
|
func (c historyLinelocationChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
262
dbinfo/history_locationtracking.bob.go
Normal file
262
dbinfo/history_locationtracking.bob.go
Normal file
|
|
@ -0,0 +1,262 @@
|
||||||
|
// 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 HistoryLocationtrackings = Table[
|
||||||
|
historyLocationtrackingColumns,
|
||||||
|
historyLocationtrackingIndexes,
|
||||||
|
historyLocationtrackingForeignKeys,
|
||||||
|
historyLocationtrackingUniques,
|
||||||
|
historyLocationtrackingChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_locationtracking",
|
||||||
|
Columns: historyLocationtrackingColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyLocationtrackingIndexes{
|
||||||
|
HistoryLocationtrackingPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_locationtracking_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_locationtracking_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyLocationtrackingForeignKeys{
|
||||||
|
HistoryLocationtrackingHistoryLocationtrackingOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_locationtracking.history_locationtracking_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLocationtrackingColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyLocationtrackingColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLocationtrackingIndexes struct {
|
||||||
|
HistoryLocationtrackingPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyLocationtrackingIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryLocationtrackingPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLocationtrackingForeignKeys struct {
|
||||||
|
HistoryLocationtrackingHistoryLocationtrackingOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyLocationtrackingForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryLocationtrackingHistoryLocationtrackingOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLocationtrackingUniques struct{}
|
||||||
|
|
||||||
|
func (u historyLocationtrackingUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyLocationtrackingChecks struct{}
|
||||||
|
|
||||||
|
func (c historyLocationtrackingChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
712
dbinfo/history_mosquitoinspection.bob.go
Normal file
712
dbinfo/history_mosquitoinspection.bob.go
Normal file
|
|
@ -0,0 +1,712 @@
|
||||||
|
// 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 HistoryMosquitoinspections = Table[
|
||||||
|
historyMosquitoinspectionColumns,
|
||||||
|
historyMosquitoinspectionIndexes,
|
||||||
|
historyMosquitoinspectionForeignKeys,
|
||||||
|
historyMosquitoinspectionUniques,
|
||||||
|
historyMosquitoinspectionChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_mosquitoinspection",
|
||||||
|
Columns: historyMosquitoinspectionColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyMosquitoinspectionIndexes{
|
||||||
|
HistoryMosquitoinspectionPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_mosquitoinspection_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_mosquitoinspection_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyMosquitoinspectionForeignKeys{
|
||||||
|
HistoryMosquitoinspectionHistoryMosquitoinspectionOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_mosquitoinspection.history_mosquitoinspection_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyMosquitoinspectionColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyMosquitoinspectionColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyMosquitoinspectionIndexes struct {
|
||||||
|
HistoryMosquitoinspectionPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyMosquitoinspectionIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryMosquitoinspectionPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyMosquitoinspectionForeignKeys struct {
|
||||||
|
HistoryMosquitoinspectionHistoryMosquitoinspectionOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyMosquitoinspectionForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryMosquitoinspectionHistoryMosquitoinspectionOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyMosquitoinspectionUniques struct{}
|
||||||
|
|
||||||
|
func (u historyMosquitoinspectionUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyMosquitoinspectionChecks struct{}
|
||||||
|
|
||||||
|
func (c historyMosquitoinspectionChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
582
dbinfo/history_pointlocation.bob.go
Normal file
582
dbinfo/history_pointlocation.bob.go
Normal file
|
|
@ -0,0 +1,582 @@
|
||||||
|
// 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 HistoryPointlocations = Table[
|
||||||
|
historyPointlocationColumns,
|
||||||
|
historyPointlocationIndexes,
|
||||||
|
historyPointlocationForeignKeys,
|
||||||
|
historyPointlocationUniques,
|
||||||
|
historyPointlocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_pointlocation",
|
||||||
|
Columns: historyPointlocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "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,
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyPointlocationIndexes{
|
||||||
|
HistoryPointlocationPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_pointlocation_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_pointlocation_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyPointlocationForeignKeys{
|
||||||
|
HistoryPointlocationHistoryPointlocationOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_pointlocation.history_pointlocation_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPointlocationColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyPointlocationColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPointlocationIndexes struct {
|
||||||
|
HistoryPointlocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyPointlocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryPointlocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPointlocationForeignKeys struct {
|
||||||
|
HistoryPointlocationHistoryPointlocationOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyPointlocationForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryPointlocationHistoryPointlocationOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPointlocationUniques struct{}
|
||||||
|
|
||||||
|
func (u historyPointlocationUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPointlocationChecks struct{}
|
||||||
|
|
||||||
|
func (c historyPointlocationChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
562
dbinfo/history_polygonlocation.bob.go
Normal file
562
dbinfo/history_polygonlocation.bob.go
Normal file
|
|
@ -0,0 +1,562 @@
|
||||||
|
// 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 HistoryPolygonlocations = Table[
|
||||||
|
historyPolygonlocationColumns,
|
||||||
|
historyPolygonlocationIndexes,
|
||||||
|
historyPolygonlocationForeignKeys,
|
||||||
|
historyPolygonlocationUniques,
|
||||||
|
historyPolygonlocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_polygonlocation",
|
||||||
|
Columns: historyPolygonlocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyPolygonlocationIndexes{
|
||||||
|
HistoryPolygonlocationPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_polygonlocation_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_polygonlocation_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyPolygonlocationForeignKeys{
|
||||||
|
HistoryPolygonlocationHistoryPolygonlocationOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_polygonlocation.history_polygonlocation_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPolygonlocationColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyPolygonlocationColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPolygonlocationIndexes struct {
|
||||||
|
HistoryPolygonlocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyPolygonlocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryPolygonlocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPolygonlocationForeignKeys struct {
|
||||||
|
HistoryPolygonlocationHistoryPolygonlocationOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyPolygonlocationForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryPolygonlocationHistoryPolygonlocationOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPolygonlocationUniques struct{}
|
||||||
|
|
||||||
|
func (u historyPolygonlocationUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPolygonlocationChecks struct{}
|
||||||
|
|
||||||
|
func (c historyPolygonlocationChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
422
dbinfo/history_pool.bob.go
Normal file
422
dbinfo/history_pool.bob.go
Normal file
|
|
@ -0,0 +1,422 @@
|
||||||
|
// 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 HistoryPools = Table[
|
||||||
|
historyPoolColumns,
|
||||||
|
historyPoolIndexes,
|
||||||
|
historyPoolForeignKeys,
|
||||||
|
historyPoolUniques,
|
||||||
|
historyPoolChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_pool",
|
||||||
|
Columns: historyPoolColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyPoolIndexes{
|
||||||
|
HistoryPoolPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_pool_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_pool_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyPoolForeignKeys{
|
||||||
|
HistoryPoolHistoryPoolOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_pool.history_pool_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPoolColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyPoolColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPoolIndexes struct {
|
||||||
|
HistoryPoolPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyPoolIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryPoolPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPoolForeignKeys struct {
|
||||||
|
HistoryPoolHistoryPoolOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyPoolForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryPoolHistoryPoolOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPoolUniques struct{}
|
||||||
|
|
||||||
|
func (u historyPoolUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPoolChecks struct{}
|
||||||
|
|
||||||
|
func (c historyPoolChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
282
dbinfo/history_pooldetail.bob.go
Normal file
282
dbinfo/history_pooldetail.bob.go
Normal file
|
|
@ -0,0 +1,282 @@
|
||||||
|
// 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 HistoryPooldetails = Table[
|
||||||
|
historyPooldetailColumns,
|
||||||
|
historyPooldetailIndexes,
|
||||||
|
historyPooldetailForeignKeys,
|
||||||
|
historyPooldetailUniques,
|
||||||
|
historyPooldetailChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_pooldetail",
|
||||||
|
Columns: historyPooldetailColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Females: column{
|
||||||
|
Name: "females",
|
||||||
|
DBType: "smallint",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
Globalid: column{
|
||||||
|
Name: "globalid",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyPooldetailIndexes{
|
||||||
|
HistoryPooldetailPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_pooldetail_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_pooldetail_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyPooldetailForeignKeys{
|
||||||
|
HistoryPooldetailHistoryPooldetailOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_pooldetail.history_pooldetail_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPooldetailColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyPooldetailColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPooldetailIndexes struct {
|
||||||
|
HistoryPooldetailPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyPooldetailIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryPooldetailPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPooldetailForeignKeys struct {
|
||||||
|
HistoryPooldetailHistoryPooldetailOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyPooldetailForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryPooldetailHistoryPooldetailOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPooldetailUniques struct{}
|
||||||
|
|
||||||
|
func (u historyPooldetailUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyPooldetailChecks struct{}
|
||||||
|
|
||||||
|
func (c historyPooldetailChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
472
dbinfo/history_proposedtreatmentarea.bob.go
Normal file
472
dbinfo/history_proposedtreatmentarea.bob.go
Normal file
|
|
@ -0,0 +1,472 @@
|
||||||
|
// 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 HistoryProposedtreatmentareas = Table[
|
||||||
|
historyProposedtreatmentareaColumns,
|
||||||
|
historyProposedtreatmentareaIndexes,
|
||||||
|
historyProposedtreatmentareaForeignKeys,
|
||||||
|
historyProposedtreatmentareaUniques,
|
||||||
|
historyProposedtreatmentareaChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_proposedtreatmentarea",
|
||||||
|
Columns: historyProposedtreatmentareaColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyProposedtreatmentareaIndexes{
|
||||||
|
HistoryProposedtreatmentareaPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_proposedtreatmentarea_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_proposedtreatmentarea_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyProposedtreatmentareaForeignKeys{
|
||||||
|
HistoryProposedtreatmentareaHistoryProposedtreatmentareaOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_proposedtreatmentarea.history_proposedtreatmentarea_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyProposedtreatmentareaColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyProposedtreatmentareaColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyProposedtreatmentareaIndexes struct {
|
||||||
|
HistoryProposedtreatmentareaPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyProposedtreatmentareaIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryProposedtreatmentareaPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyProposedtreatmentareaForeignKeys struct {
|
||||||
|
HistoryProposedtreatmentareaHistoryProposedtreatmentareaOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyProposedtreatmentareaForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryProposedtreatmentareaHistoryProposedtreatmentareaOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyProposedtreatmentareaUniques struct{}
|
||||||
|
|
||||||
|
func (u historyProposedtreatmentareaUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyProposedtreatmentareaChecks struct{}
|
||||||
|
|
||||||
|
func (c historyProposedtreatmentareaChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
762
dbinfo/history_qamosquitoinspection.bob.go
Normal file
762
dbinfo/history_qamosquitoinspection.bob.go
Normal file
|
|
@ -0,0 +1,762 @@
|
||||||
|
// 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 HistoryQamosquitoinspections = Table[
|
||||||
|
historyQamosquitoinspectionColumns,
|
||||||
|
historyQamosquitoinspectionIndexes,
|
||||||
|
historyQamosquitoinspectionForeignKeys,
|
||||||
|
historyQamosquitoinspectionUniques,
|
||||||
|
historyQamosquitoinspectionChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_qamosquitoinspection",
|
||||||
|
Columns: historyQamosquitoinspectionColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyQamosquitoinspectionIndexes{
|
||||||
|
HistoryQamosquitoinspectionPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_qamosquitoinspection_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_qamosquitoinspection_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyQamosquitoinspectionForeignKeys{
|
||||||
|
HistoryQamosquitoinspectionHistoryQamosquitoinspectionOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_qamosquitoinspection.history_qamosquitoinspection_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyQamosquitoinspectionColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyQamosquitoinspectionColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyQamosquitoinspectionIndexes struct {
|
||||||
|
HistoryQamosquitoinspectionPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyQamosquitoinspectionIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryQamosquitoinspectionPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyQamosquitoinspectionForeignKeys struct {
|
||||||
|
HistoryQamosquitoinspectionHistoryQamosquitoinspectionOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyQamosquitoinspectionForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryQamosquitoinspectionHistoryQamosquitoinspectionOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyQamosquitoinspectionUniques struct{}
|
||||||
|
|
||||||
|
func (u historyQamosquitoinspectionUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyQamosquitoinspectionChecks struct{}
|
||||||
|
|
||||||
|
func (c historyQamosquitoinspectionChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
442
dbinfo/history_rodentlocation.bob.go
Normal file
442
dbinfo/history_rodentlocation.bob.go
Normal file
|
|
@ -0,0 +1,442 @@
|
||||||
|
// 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 HistoryRodentlocations = Table[
|
||||||
|
historyRodentlocationColumns,
|
||||||
|
historyRodentlocationIndexes,
|
||||||
|
historyRodentlocationForeignKeys,
|
||||||
|
historyRodentlocationUniques,
|
||||||
|
historyRodentlocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_rodentlocation",
|
||||||
|
Columns: historyRodentlocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historyRodentlocationIndexes{
|
||||||
|
HistoryRodentlocationPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_rodentlocation_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_rodentlocation_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historyRodentlocationForeignKeys{
|
||||||
|
HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_rodentlocation.history_rodentlocation_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyRodentlocationColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historyRodentlocationColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyRodentlocationIndexes struct {
|
||||||
|
HistoryRodentlocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historyRodentlocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistoryRodentlocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyRodentlocationForeignKeys struct {
|
||||||
|
HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historyRodentlocationForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistoryRodentlocationHistoryRodentlocationOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyRodentlocationUniques struct{}
|
||||||
|
|
||||||
|
func (u historyRodentlocationUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historyRodentlocationChecks struct{}
|
||||||
|
|
||||||
|
func (c historyRodentlocationChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
602
dbinfo/history_samplecollection.bob.go
Normal file
602
dbinfo/history_samplecollection.bob.go
Normal file
|
|
@ -0,0 +1,602 @@
|
||||||
|
// 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 HistorySamplecollections = Table[
|
||||||
|
historySamplecollectionColumns,
|
||||||
|
historySamplecollectionIndexes,
|
||||||
|
historySamplecollectionForeignKeys,
|
||||||
|
historySamplecollectionUniques,
|
||||||
|
historySamplecollectionChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_samplecollection",
|
||||||
|
Columns: historySamplecollectionColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historySamplecollectionIndexes{
|
||||||
|
HistorySamplecollectionPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_samplecollection_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_samplecollection_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historySamplecollectionForeignKeys{
|
||||||
|
HistorySamplecollectionHistorySamplecollectionOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_samplecollection.history_samplecollection_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplecollectionColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historySamplecollectionColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplecollectionIndexes struct {
|
||||||
|
HistorySamplecollectionPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historySamplecollectionIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistorySamplecollectionPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplecollectionForeignKeys struct {
|
||||||
|
HistorySamplecollectionHistorySamplecollectionOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historySamplecollectionForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistorySamplecollectionHistorySamplecollectionOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplecollectionUniques struct{}
|
||||||
|
|
||||||
|
func (u historySamplecollectionUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplecollectionChecks struct{}
|
||||||
|
|
||||||
|
func (c historySamplecollectionChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
382
dbinfo/history_samplelocation.bob.go
Normal file
382
dbinfo/history_samplelocation.bob.go
Normal file
|
|
@ -0,0 +1,382 @@
|
||||||
|
// 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 HistorySamplelocations = Table[
|
||||||
|
historySamplelocationColumns,
|
||||||
|
historySamplelocationIndexes,
|
||||||
|
historySamplelocationForeignKeys,
|
||||||
|
historySamplelocationUniques,
|
||||||
|
historySamplelocationChecks,
|
||||||
|
]{
|
||||||
|
Schema: "",
|
||||||
|
Name: "history_samplelocation",
|
||||||
|
Columns: historySamplelocationColumns{
|
||||||
|
OrganizationID: column{
|
||||||
|
Name: "organization_id",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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: "NULL",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: true,
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
Version: column{
|
||||||
|
Name: "version",
|
||||||
|
DBType: "integer",
|
||||||
|
Default: "",
|
||||||
|
Comment: "",
|
||||||
|
Nullable: false,
|
||||||
|
Generated: false,
|
||||||
|
AutoIncr: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Indexes: historySamplelocationIndexes{
|
||||||
|
HistorySamplelocationPkey: index{
|
||||||
|
Type: "btree",
|
||||||
|
Name: "history_samplelocation_pkey",
|
||||||
|
Columns: []indexColumn{
|
||||||
|
{
|
||||||
|
Name: "objectid",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Name: "version",
|
||||||
|
Desc: null.FromCond(false, true),
|
||||||
|
IsExpression: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
Unique: true,
|
||||||
|
Comment: "",
|
||||||
|
NullsFirst: []bool{false, false},
|
||||||
|
NullsDistinct: false,
|
||||||
|
Where: "",
|
||||||
|
Include: []string{},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
PrimaryKey: &constraint{
|
||||||
|
Name: "history_samplelocation_pkey",
|
||||||
|
Columns: []string{"objectid", "version"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignKeys: historySamplelocationForeignKeys{
|
||||||
|
HistorySamplelocationHistorySamplelocationOrganizationIDFkey: foreignKey{
|
||||||
|
constraint: constraint{
|
||||||
|
Name: "history_samplelocation.history_samplelocation_organization_id_fkey",
|
||||||
|
Columns: []string{"organization_id"},
|
||||||
|
Comment: "",
|
||||||
|
},
|
||||||
|
ForeignTable: "organization",
|
||||||
|
ForeignColumns: []string{"id"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
|
Comment: "",
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplelocationColumns 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
|
||||||
|
Version column
|
||||||
|
}
|
||||||
|
|
||||||
|
func (c historySamplelocationColumns) 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.Version,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplelocationIndexes struct {
|
||||||
|
HistorySamplelocationPkey index
|
||||||
|
}
|
||||||
|
|
||||||
|
func (i historySamplelocationIndexes) AsSlice() []index {
|
||||||
|
return []index{
|
||||||
|
i.HistorySamplelocationPkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplelocationForeignKeys struct {
|
||||||
|
HistorySamplelocationHistorySamplelocationOrganizationIDFkey foreignKey
|
||||||
|
}
|
||||||
|
|
||||||
|
func (f historySamplelocationForeignKeys) AsSlice() []foreignKey {
|
||||||
|
return []foreignKey{
|
||||||
|
f.HistorySamplelocationHistorySamplelocationOrganizationIDFkey,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplelocationUniques struct{}
|
||||||
|
|
||||||
|
func (u historySamplelocationUniques) AsSlice() []constraint {
|
||||||
|
return []constraint{}
|
||||||
|
}
|
||||||
|
|
||||||
|
type historySamplelocationChecks struct{}
|
||||||
|
|
||||||
|
func (c historySamplelocationChecks) AsSlice() []check {
|
||||||
|
return []check{}
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue