162 lines
4.1 KiB
Go
162 lines
4.1 KiB
Go
// Code generated by BobGen psql v0.42.5. DO NOT EDIT.
|
|
// This file is meant to be re-generated in place and/or deleted at any time.
|
|
|
|
package dbinfo
|
|
|
|
import "github.com/aarondl/opt/null"
|
|
|
|
var ArcgisParcelMappings = Table[
|
|
arcgisParcelMappingColumns,
|
|
arcgisParcelMappingIndexes,
|
|
arcgisParcelMappingForeignKeys,
|
|
arcgisParcelMappingUniques,
|
|
arcgisParcelMappingChecks,
|
|
]{
|
|
Schema: "arcgis",
|
|
Name: "parcel_mapping",
|
|
Columns: arcgisParcelMappingColumns{
|
|
Destination: column{
|
|
Name: "destination",
|
|
DBType: "arcgis.mappingdestinationparcel",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LayerFeatureServiceItemID: column{
|
|
Name: "layer_feature_service_item_id",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LayerIndex: column{
|
|
Name: "layer_index",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
LayerFieldName: column{
|
|
Name: "layer_field_name",
|
|
DBType: "text",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
OrganizationID: column{
|
|
Name: "organization_id",
|
|
DBType: "integer",
|
|
Default: "",
|
|
Comment: "",
|
|
Nullable: false,
|
|
Generated: false,
|
|
AutoIncr: false,
|
|
},
|
|
},
|
|
Indexes: arcgisParcelMappingIndexes{
|
|
ParcelMappingPkey: index{
|
|
Type: "btree",
|
|
Name: "parcel_mapping_pkey",
|
|
Columns: []indexColumn{
|
|
{
|
|
Name: "organization_id",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
{
|
|
Name: "destination",
|
|
Desc: null.FromCond(false, true),
|
|
IsExpression: false,
|
|
},
|
|
},
|
|
Unique: true,
|
|
Comment: "",
|
|
NullsFirst: []bool{false, false},
|
|
NullsDistinct: false,
|
|
Where: "",
|
|
Include: []string{},
|
|
},
|
|
},
|
|
PrimaryKey: &constraint{
|
|
Name: "parcel_mapping_pkey",
|
|
Columns: []string{"organization_id", "destination"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: arcgisParcelMappingForeignKeys{
|
|
ArcgisParcelMappingParcelMappingLayerFeatureServiceItemIDLayerIndexLFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "arcgis.parcel_mapping.parcel_mapping_layer_feature_service_item_id_layer_index_l_fkey",
|
|
Columns: []string{"layer_feature_service_item_id", "layer_index", "layer_field_name"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "arcgis.layer_field",
|
|
ForeignColumns: []string{"layer_feature_service_item_id", "layer_index", "name"},
|
|
},
|
|
ArcgisParcelMappingParcelMappingOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "arcgis.parcel_mapping.parcel_mapping_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type arcgisParcelMappingColumns struct {
|
|
Destination column
|
|
LayerFeatureServiceItemID column
|
|
LayerIndex column
|
|
LayerFieldName column
|
|
OrganizationID column
|
|
}
|
|
|
|
func (c arcgisParcelMappingColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Destination, c.LayerFeatureServiceItemID, c.LayerIndex, c.LayerFieldName, c.OrganizationID,
|
|
}
|
|
}
|
|
|
|
type arcgisParcelMappingIndexes struct {
|
|
ParcelMappingPkey index
|
|
}
|
|
|
|
func (i arcgisParcelMappingIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.ParcelMappingPkey,
|
|
}
|
|
}
|
|
|
|
type arcgisParcelMappingForeignKeys struct {
|
|
ArcgisParcelMappingParcelMappingLayerFeatureServiceItemIDLayerIndexLFkey foreignKey
|
|
ArcgisParcelMappingParcelMappingOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f arcgisParcelMappingForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.ArcgisParcelMappingParcelMappingLayerFeatureServiceItemIDLayerIndexLFkey, f.ArcgisParcelMappingParcelMappingOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type arcgisParcelMappingUniques struct{}
|
|
|
|
func (u arcgisParcelMappingUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type arcgisParcelMappingChecks struct{}
|
|
|
|
func (c arcgisParcelMappingChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|