Port all of the arcgis schema to using jet
Have not tested anything at this point, it just compiles.
This commit is contained in:
parent
89ed2003fa
commit
bab3200b6c
52 changed files with 479 additions and 13585 deletions
|
|
@ -1,177 +0,0 @@
|
|||
// 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 ArcgisAccounts = Table[
|
||||
arcgisAccountColumns,
|
||||
arcgisAccountIndexes,
|
||||
arcgisAccountForeignKeys,
|
||||
arcgisAccountUniques,
|
||||
arcgisAccountChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "account",
|
||||
Columns: arcgisAccountColumns{
|
||||
ID: column{
|
||||
Name: "id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Name: column{
|
||||
Name: "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,
|
||||
},
|
||||
URLFeatures: column{
|
||||
Name: "url_features",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URLInsights: column{
|
||||
Name: "url_insights",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URLGeometry: column{
|
||||
Name: "url_geometry",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URLNotebooks: column{
|
||||
Name: "url_notebooks",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URLTiles: column{
|
||||
Name: "url_tiles",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisAccountIndexes{
|
||||
AccountPkey: index{
|
||||
Type: "btree",
|
||||
Name: "account_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "account_pkey",
|
||||
Columns: []string{"id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisAccountForeignKeys{
|
||||
ArcgisAccountAccountOrganizationIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.account.account_organization_id_fkey",
|
||||
Columns: []string{"organization_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "organization",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisAccountColumns struct {
|
||||
ID column
|
||||
Name column
|
||||
OrganizationID column
|
||||
URLFeatures column
|
||||
URLInsights column
|
||||
URLGeometry column
|
||||
URLNotebooks column
|
||||
URLTiles column
|
||||
}
|
||||
|
||||
func (c arcgisAccountColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.ID, c.Name, c.OrganizationID, c.URLFeatures, c.URLInsights, c.URLGeometry, c.URLNotebooks, c.URLTiles,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisAccountIndexes struct {
|
||||
AccountPkey index
|
||||
}
|
||||
|
||||
func (i arcgisAccountIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.AccountPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisAccountForeignKeys struct {
|
||||
ArcgisAccountAccountOrganizationIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisAccountForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisAccountAccountOrganizationIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisAccountUniques struct{}
|
||||
|
||||
func (u arcgisAccountUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisAccountChecks struct{}
|
||||
|
||||
func (c arcgisAccountChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,162 +0,0 @@
|
|||
// 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{}
|
||||
}
|
||||
|
|
@ -1,132 +0,0 @@
|
|||
// 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 ArcgisLayers = Table[
|
||||
arcgisLayerColumns,
|
||||
arcgisLayerIndexes,
|
||||
arcgisLayerForeignKeys,
|
||||
arcgisLayerUniques,
|
||||
arcgisLayerChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "layer",
|
||||
Columns: arcgisLayerColumns{
|
||||
Extent: column{
|
||||
Name: "extent",
|
||||
DBType: "box2d",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
FeatureServiceItemID: column{
|
||||
Name: "feature_service_item_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Index: column{
|
||||
Name: "index_",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisLayerIndexes{
|
||||
LayerPkey: index{
|
||||
Type: "btree",
|
||||
Name: "layer_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "feature_service_item_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "index_",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false, false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "layer_pkey",
|
||||
Columns: []string{"feature_service_item_id", "index_"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisLayerForeignKeys{
|
||||
ArcgisLayerLayerFeatureServiceItemIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.layer.layer_feature_service_item_id_fkey",
|
||||
Columns: []string{"feature_service_item_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.service_feature",
|
||||
ForeignColumns: []string{"item_id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisLayerColumns struct {
|
||||
Extent column
|
||||
FeatureServiceItemID column
|
||||
Index column
|
||||
}
|
||||
|
||||
func (c arcgisLayerColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.Extent, c.FeatureServiceItemID, c.Index,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerIndexes struct {
|
||||
LayerPkey index
|
||||
}
|
||||
|
||||
func (i arcgisLayerIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.LayerPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerForeignKeys struct {
|
||||
ArcgisLayerLayerFeatureServiceItemIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisLayerForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisLayerLayerFeatureServiceItemIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerUniques struct{}
|
||||
|
||||
func (u arcgisLayerUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisLayerChecks struct{}
|
||||
|
||||
func (c arcgisLayerChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,147 +0,0 @@
|
|||
// 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 ArcgisLayerFields = Table[
|
||||
arcgisLayerFieldColumns,
|
||||
arcgisLayerFieldIndexes,
|
||||
arcgisLayerFieldForeignKeys,
|
||||
arcgisLayerFieldUniques,
|
||||
arcgisLayerFieldChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "layer_field",
|
||||
Columns: arcgisLayerFieldColumns{
|
||||
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,
|
||||
},
|
||||
Name: column{
|
||||
Name: "name",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Type: column{
|
||||
Name: "type_",
|
||||
DBType: "arcgis.fieldtype",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisLayerFieldIndexes{
|
||||
LayerFieldPkey: index{
|
||||
Type: "btree",
|
||||
Name: "layer_field_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "layer_feature_service_item_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "layer_index",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "name",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false, false, false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "layer_field_pkey",
|
||||
Columns: []string{"layer_feature_service_item_id", "layer_index", "name"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisLayerFieldForeignKeys{
|
||||
ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.layer_field.layer_field_layer_feature_service_item_id_layer_index_fkey",
|
||||
Columns: []string{"layer_feature_service_item_id", "layer_index"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.layer",
|
||||
ForeignColumns: []string{"feature_service_item_id", "index_"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisLayerFieldColumns struct {
|
||||
LayerFeatureServiceItemID column
|
||||
LayerIndex column
|
||||
Name column
|
||||
Type column
|
||||
}
|
||||
|
||||
func (c arcgisLayerFieldColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.LayerFeatureServiceItemID, c.LayerIndex, c.Name, c.Type,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerFieldIndexes struct {
|
||||
LayerFieldPkey index
|
||||
}
|
||||
|
||||
func (i arcgisLayerFieldIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.LayerFieldPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerFieldForeignKeys struct {
|
||||
ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisLayerFieldForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisLayerFieldLayerFieldLayerFeatureServiceItemIDLayerIndexFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisLayerFieldUniques struct{}
|
||||
|
||||
func (u arcgisLayerFieldUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisLayerFieldChecks struct{}
|
||||
|
||||
func (c arcgisLayerFieldChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,227 +0,0 @@
|
|||
// 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 ArcgisOauthTokens = Table[
|
||||
arcgisOauthTokenColumns,
|
||||
arcgisOauthTokenIndexes,
|
||||
arcgisOauthTokenForeignKeys,
|
||||
arcgisOauthTokenUniques,
|
||||
arcgisOauthTokenChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "oauth_token",
|
||||
Columns: arcgisOauthTokenColumns{
|
||||
AccessToken: column{
|
||||
Name: "access_token",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
AccessTokenExpires: column{
|
||||
Name: "access_token_expires",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisAccountID: column{
|
||||
Name: "arcgis_account_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisID: column{
|
||||
Name: "arcgis_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisLicenseTypeID: column{
|
||||
Name: "arcgis_license_type_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ID: column{
|
||||
Name: "id",
|
||||
DBType: "integer",
|
||||
Default: "nextval('arcgis.oauth_token_id_seq'::regclass)",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
InvalidatedAt: column{
|
||||
Name: "invalidated_at",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RefreshToken: column{
|
||||
Name: "refresh_token",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RefreshTokenExpires: column{
|
||||
Name: "refresh_token_expires",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
UserID: column{
|
||||
Name: "user_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Username: column{
|
||||
Name: "username",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisOauthTokenIndexes{
|
||||
OauthTokenPkey: index{
|
||||
Type: "btree",
|
||||
Name: "oauth_token_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "oauth_token_pkey",
|
||||
Columns: []string{"id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisOauthTokenForeignKeys{
|
||||
ArcgisOauthTokenOauthTokenArcgisAccountIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.oauth_token.oauth_token_arcgis_account_id_fkey",
|
||||
Columns: []string{"arcgis_account_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.account",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
ArcgisOauthTokenOauthTokenUserIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.oauth_token.oauth_token_user_id_fkey",
|
||||
Columns: []string{"user_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "user_",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisOauthTokenColumns struct {
|
||||
AccessToken column
|
||||
AccessTokenExpires column
|
||||
ArcgisAccountID column
|
||||
ArcgisID column
|
||||
ArcgisLicenseTypeID column
|
||||
Created column
|
||||
ID column
|
||||
InvalidatedAt column
|
||||
RefreshToken column
|
||||
RefreshTokenExpires column
|
||||
UserID column
|
||||
Username column
|
||||
}
|
||||
|
||||
func (c arcgisOauthTokenColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.AccessToken, c.AccessTokenExpires, c.ArcgisAccountID, c.ArcgisID, c.ArcgisLicenseTypeID, c.Created, c.ID, c.InvalidatedAt, c.RefreshToken, c.RefreshTokenExpires, c.UserID, c.Username,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisOauthTokenIndexes struct {
|
||||
OauthTokenPkey index
|
||||
}
|
||||
|
||||
func (i arcgisOauthTokenIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.OauthTokenPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisOauthTokenForeignKeys struct {
|
||||
ArcgisOauthTokenOauthTokenArcgisAccountIDFkey foreignKey
|
||||
ArcgisOauthTokenOauthTokenUserIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisOauthTokenForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisOauthTokenOauthTokenArcgisAccountIDFkey, f.ArcgisOauthTokenOauthTokenUserIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisOauthTokenUniques struct{}
|
||||
|
||||
func (u arcgisOauthTokenUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisOauthTokenChecks struct{}
|
||||
|
||||
func (c arcgisOauthTokenChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,162 +0,0 @@
|
|||
// 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{}
|
||||
}
|
||||
|
|
@ -1,147 +0,0 @@
|
|||
// 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 ArcgisServiceFeatures = Table[
|
||||
arcgisServiceFeatureColumns,
|
||||
arcgisServiceFeatureIndexes,
|
||||
arcgisServiceFeatureForeignKeys,
|
||||
arcgisServiceFeatureUniques,
|
||||
arcgisServiceFeatureChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "service_feature",
|
||||
Columns: arcgisServiceFeatureColumns{
|
||||
Extent: column{
|
||||
Name: "extent",
|
||||
DBType: "box2d",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ItemID: column{
|
||||
Name: "item_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
SpatialReference: column{
|
||||
Name: "spatial_reference",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URL: column{
|
||||
Name: "url",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
AccountID: column{
|
||||
Name: "account_id",
|
||||
DBType: "text",
|
||||
Default: "NULL",
|
||||
Comment: "",
|
||||
Nullable: true,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisServiceFeatureIndexes{
|
||||
FeatureServicePkey: index{
|
||||
Type: "btree",
|
||||
Name: "feature_service_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "item_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "feature_service_pkey",
|
||||
Columns: []string{"item_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisServiceFeatureForeignKeys{
|
||||
ArcgisServiceFeatureServiceFeatureAccountIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.service_feature.service_feature_account_id_fkey",
|
||||
Columns: []string{"account_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.account",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisServiceFeatureColumns struct {
|
||||
Extent column
|
||||
ItemID column
|
||||
SpatialReference column
|
||||
URL column
|
||||
AccountID column
|
||||
}
|
||||
|
||||
func (c arcgisServiceFeatureColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.Extent, c.ItemID, c.SpatialReference, c.URL, c.AccountID,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceFeatureIndexes struct {
|
||||
FeatureServicePkey index
|
||||
}
|
||||
|
||||
func (i arcgisServiceFeatureIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.FeatureServicePkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceFeatureForeignKeys struct {
|
||||
ArcgisServiceFeatureServiceFeatureAccountIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisServiceFeatureForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisServiceFeatureServiceFeatureAccountIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceFeatureUniques struct{}
|
||||
|
||||
func (u arcgisServiceFeatureUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisServiceFeatureChecks struct{}
|
||||
|
||||
func (c arcgisServiceFeatureChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,147 +0,0 @@
|
|||
// 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 ArcgisServiceMaps = Table[
|
||||
arcgisServiceMapColumns,
|
||||
arcgisServiceMapIndexes,
|
||||
arcgisServiceMapForeignKeys,
|
||||
arcgisServiceMapUniques,
|
||||
arcgisServiceMapChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "service_map",
|
||||
Columns: arcgisServiceMapColumns{
|
||||
AccountID: column{
|
||||
Name: "account_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ArcgisID: column{
|
||||
Name: "arcgis_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Name: column{
|
||||
Name: "name",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Title: column{
|
||||
Name: "title",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
URL: column{
|
||||
Name: "url",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisServiceMapIndexes{
|
||||
ServiceMapPkey: index{
|
||||
Type: "btree",
|
||||
Name: "service_map_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "arcgis_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "service_map_pkey",
|
||||
Columns: []string{"arcgis_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisServiceMapForeignKeys{
|
||||
ArcgisServiceMapServiceMapAccountIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.service_map.service_map_account_id_fkey",
|
||||
Columns: []string{"account_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.account",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisServiceMapColumns struct {
|
||||
AccountID column
|
||||
ArcgisID column
|
||||
Name column
|
||||
Title column
|
||||
URL column
|
||||
}
|
||||
|
||||
func (c arcgisServiceMapColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.AccountID, c.ArcgisID, c.Name, c.Title, c.URL,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceMapIndexes struct {
|
||||
ServiceMapPkey index
|
||||
}
|
||||
|
||||
func (i arcgisServiceMapIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.ServiceMapPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceMapForeignKeys struct {
|
||||
ArcgisServiceMapServiceMapAccountIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisServiceMapForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisServiceMapServiceMapAccountIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisServiceMapUniques struct{}
|
||||
|
||||
func (u arcgisServiceMapUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisServiceMapChecks struct{}
|
||||
|
||||
func (c arcgisServiceMapChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,237 +0,0 @@
|
|||
// 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 ArcgisUsers = Table[
|
||||
arcgisuserColumns,
|
||||
arcgisuserIndexes,
|
||||
arcgisuserForeignKeys,
|
||||
arcgisuserUniques,
|
||||
arcgisuserChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "user_",
|
||||
Columns: arcgisuserColumns{
|
||||
Access: column{
|
||||
Name: "access",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Created: column{
|
||||
Name: "created",
|
||||
DBType: "timestamp without time zone",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Email: column{
|
||||
Name: "email",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
FullName: column{
|
||||
Name: "full_name",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
ID: column{
|
||||
Name: "id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Level: column{
|
||||
Name: "level",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
OrgID: column{
|
||||
Name: "org_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
PublicUserID: column{
|
||||
Name: "public_user_id",
|
||||
DBType: "integer",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Region: column{
|
||||
Name: "region",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Role: column{
|
||||
Name: "role",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
RoleID: column{
|
||||
Name: "role_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Username: column{
|
||||
Name: "username",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
UserLicenseTypeID: column{
|
||||
Name: "user_license_type_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
UserType: column{
|
||||
Name: "user_type",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisuserIndexes{
|
||||
UserPkey: index{
|
||||
Type: "btree",
|
||||
Name: "user__pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "user__pkey",
|
||||
Columns: []string{"id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisuserForeignKeys{
|
||||
ArcgisUserUserPublicUserIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.user_.user__public_user_id_fkey",
|
||||
Columns: []string{"public_user_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "user_",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisuserColumns struct {
|
||||
Access column
|
||||
Created column
|
||||
Email column
|
||||
FullName column
|
||||
ID column
|
||||
Level column
|
||||
OrgID column
|
||||
PublicUserID column
|
||||
Region column
|
||||
Role column
|
||||
RoleID column
|
||||
Username column
|
||||
UserLicenseTypeID column
|
||||
UserType column
|
||||
}
|
||||
|
||||
func (c arcgisuserColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.Access, c.Created, c.Email, c.FullName, c.ID, c.Level, c.OrgID, c.PublicUserID, c.Region, c.Role, c.RoleID, c.Username, c.UserLicenseTypeID, c.UserType,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisuserIndexes struct {
|
||||
UserPkey index
|
||||
}
|
||||
|
||||
func (i arcgisuserIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.UserPkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisuserForeignKeys struct {
|
||||
ArcgisUserUserPublicUserIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisuserForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisUserUserPublicUserIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisuserUniques struct{}
|
||||
|
||||
func (u arcgisuserUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisuserChecks struct{}
|
||||
|
||||
func (c arcgisuserChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
|
|
@ -1,122 +0,0 @@
|
|||
// 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 ArcgisUserPrivileges = Table[
|
||||
arcgisUserPrivilegeColumns,
|
||||
arcgisUserPrivilegeIndexes,
|
||||
arcgisUserPrivilegeForeignKeys,
|
||||
arcgisUserPrivilegeUniques,
|
||||
arcgisUserPrivilegeChecks,
|
||||
]{
|
||||
Schema: "arcgis",
|
||||
Name: "user_privilege",
|
||||
Columns: arcgisUserPrivilegeColumns{
|
||||
UserID: column{
|
||||
Name: "user_id",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
Privilege: column{
|
||||
Name: "privilege",
|
||||
DBType: "text",
|
||||
Default: "",
|
||||
Comment: "",
|
||||
Nullable: false,
|
||||
Generated: false,
|
||||
AutoIncr: false,
|
||||
},
|
||||
},
|
||||
Indexes: arcgisUserPrivilegeIndexes{
|
||||
UserPrivilegePkey: index{
|
||||
Type: "btree",
|
||||
Name: "user_privilege_pkey",
|
||||
Columns: []indexColumn{
|
||||
{
|
||||
Name: "user_id",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
{
|
||||
Name: "privilege",
|
||||
Desc: null.FromCond(false, true),
|
||||
IsExpression: false,
|
||||
},
|
||||
},
|
||||
Unique: true,
|
||||
Comment: "",
|
||||
NullsFirst: []bool{false, false},
|
||||
NullsDistinct: false,
|
||||
Where: "",
|
||||
Include: []string{},
|
||||
},
|
||||
},
|
||||
PrimaryKey: &constraint{
|
||||
Name: "user_privilege_pkey",
|
||||
Columns: []string{"user_id", "privilege"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignKeys: arcgisUserPrivilegeForeignKeys{
|
||||
ArcgisUserPrivilegeUserPrivilegeUserIDFkey: foreignKey{
|
||||
constraint: constraint{
|
||||
Name: "arcgis.user_privilege.user_privilege_user_id_fkey",
|
||||
Columns: []string{"user_id"},
|
||||
Comment: "",
|
||||
},
|
||||
ForeignTable: "arcgis.user_",
|
||||
ForeignColumns: []string{"id"},
|
||||
},
|
||||
},
|
||||
|
||||
Comment: "",
|
||||
}
|
||||
|
||||
type arcgisUserPrivilegeColumns struct {
|
||||
UserID column
|
||||
Privilege column
|
||||
}
|
||||
|
||||
func (c arcgisUserPrivilegeColumns) AsSlice() []column {
|
||||
return []column{
|
||||
c.UserID, c.Privilege,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisUserPrivilegeIndexes struct {
|
||||
UserPrivilegePkey index
|
||||
}
|
||||
|
||||
func (i arcgisUserPrivilegeIndexes) AsSlice() []index {
|
||||
return []index{
|
||||
i.UserPrivilegePkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisUserPrivilegeForeignKeys struct {
|
||||
ArcgisUserPrivilegeUserPrivilegeUserIDFkey foreignKey
|
||||
}
|
||||
|
||||
func (f arcgisUserPrivilegeForeignKeys) AsSlice() []foreignKey {
|
||||
return []foreignKey{
|
||||
f.ArcgisUserPrivilegeUserPrivilegeUserIDFkey,
|
||||
}
|
||||
}
|
||||
|
||||
type arcgisUserPrivilegeUniques struct{}
|
||||
|
||||
func (u arcgisUserPrivilegeUniques) AsSlice() []constraint {
|
||||
return []constraint{}
|
||||
}
|
||||
|
||||
type arcgisUserPrivilegeChecks struct{}
|
||||
|
||||
func (c arcgisUserPrivilegeChecks) AsSlice() []check {
|
||||
return []check{}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue