162 lines
4.2 KiB
Go
162 lines
4.2 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 ArcgisAddressMappings = Table[
|
|
arcgisAddressMappingColumns,
|
|
arcgisAddressMappingIndexes,
|
|
arcgisAddressMappingForeignKeys,
|
|
arcgisAddressMappingUniques,
|
|
arcgisAddressMappingChecks,
|
|
]{
|
|
Schema: "arcgis",
|
|
Name: "address_mapping",
|
|
Columns: arcgisAddressMappingColumns{
|
|
Destination: column{
|
|
Name: "destination",
|
|
DBType: "arcgis.mappingdestinationaddress",
|
|
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: arcgisAddressMappingIndexes{
|
|
AddressMappingPkey: index{
|
|
Type: "btree",
|
|
Name: "address_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: "address_mapping_pkey",
|
|
Columns: []string{"organization_id", "destination"},
|
|
Comment: "",
|
|
},
|
|
ForeignKeys: arcgisAddressMappingForeignKeys{
|
|
ArcgisAddressMappingAddressMappingLayerFeatureServiceItemIDLayerIndexFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "arcgis.address_mapping.address_mapping_layer_feature_service_item_id_layer_index__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"},
|
|
},
|
|
ArcgisAddressMappingAddressMappingOrganizationIDFkey: foreignKey{
|
|
constraint: constraint{
|
|
Name: "arcgis.address_mapping.address_mapping_organization_id_fkey",
|
|
Columns: []string{"organization_id"},
|
|
Comment: "",
|
|
},
|
|
ForeignTable: "organization",
|
|
ForeignColumns: []string{"id"},
|
|
},
|
|
},
|
|
|
|
Comment: "",
|
|
}
|
|
|
|
type arcgisAddressMappingColumns struct {
|
|
Destination column
|
|
LayerFeatureServiceItemID column
|
|
LayerIndex column
|
|
LayerFieldName column
|
|
OrganizationID column
|
|
}
|
|
|
|
func (c arcgisAddressMappingColumns) AsSlice() []column {
|
|
return []column{
|
|
c.Destination, c.LayerFeatureServiceItemID, c.LayerIndex, c.LayerFieldName, c.OrganizationID,
|
|
}
|
|
}
|
|
|
|
type arcgisAddressMappingIndexes struct {
|
|
AddressMappingPkey index
|
|
}
|
|
|
|
func (i arcgisAddressMappingIndexes) AsSlice() []index {
|
|
return []index{
|
|
i.AddressMappingPkey,
|
|
}
|
|
}
|
|
|
|
type arcgisAddressMappingForeignKeys struct {
|
|
ArcgisAddressMappingAddressMappingLayerFeatureServiceItemIDLayerIndexFkey foreignKey
|
|
ArcgisAddressMappingAddressMappingOrganizationIDFkey foreignKey
|
|
}
|
|
|
|
func (f arcgisAddressMappingForeignKeys) AsSlice() []foreignKey {
|
|
return []foreignKey{
|
|
f.ArcgisAddressMappingAddressMappingLayerFeatureServiceItemIDLayerIndexFkey, f.ArcgisAddressMappingAddressMappingOrganizationIDFkey,
|
|
}
|
|
}
|
|
|
|
type arcgisAddressMappingUniques struct{}
|
|
|
|
func (u arcgisAddressMappingUniques) AsSlice() []constraint {
|
|
return []constraint{}
|
|
}
|
|
|
|
type arcgisAddressMappingChecks struct{}
|
|
|
|
func (c arcgisAddressMappingChecks) AsSlice() []check {
|
|
return []check{}
|
|
}
|