nidus-sync/db/gen/nidus-sync/arcgis/table/parcel_mapping.go
Eli Ribble 970cd568dc
Add generated jet tables and models
These will change with schema changes
2026-05-09 01:54:12 +00:00

90 lines
3.2 KiB
Go

//
// Code generated by go-jet DO NOT EDIT.
//
// WARNING: Changes to this file may cause incorrect behavior
// and will be lost if the code is regenerated
//
package table
import (
"github.com/Gleipnir-Technology/jet/postgres"
)
var ParcelMapping = newParcelMappingTable("arcgis", "parcel_mapping", "")
type parcelMappingTable struct {
postgres.Table
// Columns
Destination postgres.ColumnString
LayerFeatureServiceItemID postgres.ColumnString
LayerIndex postgres.ColumnInteger
LayerFieldName postgres.ColumnString
OrganizationID postgres.ColumnInteger
AllColumns postgres.ColumnList
MutableColumns postgres.ColumnList
DefaultColumns postgres.ColumnList
}
type ParcelMappingTable struct {
parcelMappingTable
EXCLUDED parcelMappingTable
}
// AS creates new ParcelMappingTable with assigned alias
func (a ParcelMappingTable) AS(alias string) *ParcelMappingTable {
return newParcelMappingTable(a.SchemaName(), a.TableName(), alias)
}
// Schema creates new ParcelMappingTable with assigned schema name
func (a ParcelMappingTable) FromSchema(schemaName string) *ParcelMappingTable {
return newParcelMappingTable(schemaName, a.TableName(), a.Alias())
}
// WithPrefix creates new ParcelMappingTable with assigned table prefix
func (a ParcelMappingTable) WithPrefix(prefix string) *ParcelMappingTable {
return newParcelMappingTable(a.SchemaName(), prefix+a.TableName(), a.TableName())
}
// WithSuffix creates new ParcelMappingTable with assigned table suffix
func (a ParcelMappingTable) WithSuffix(suffix string) *ParcelMappingTable {
return newParcelMappingTable(a.SchemaName(), a.TableName()+suffix, a.TableName())
}
func newParcelMappingTable(schemaName, tableName, alias string) *ParcelMappingTable {
return &ParcelMappingTable{
parcelMappingTable: newParcelMappingTableImpl(schemaName, tableName, alias),
EXCLUDED: newParcelMappingTableImpl("", "excluded", ""),
}
}
func newParcelMappingTableImpl(schemaName, tableName, alias string) parcelMappingTable {
var (
DestinationColumn = postgres.StringColumn("destination")
LayerFeatureServiceItemIDColumn = postgres.StringColumn("layer_feature_service_item_id")
LayerIndexColumn = postgres.IntegerColumn("layer_index")
LayerFieldNameColumn = postgres.StringColumn("layer_field_name")
OrganizationIDColumn = postgres.IntegerColumn("organization_id")
allColumns = postgres.ColumnList{DestinationColumn, LayerFeatureServiceItemIDColumn, LayerIndexColumn, LayerFieldNameColumn, OrganizationIDColumn}
mutableColumns = postgres.ColumnList{LayerFeatureServiceItemIDColumn, LayerIndexColumn, LayerFieldNameColumn}
defaultColumns = postgres.ColumnList{}
)
return parcelMappingTable{
Table: postgres.NewTable(schemaName, tableName, alias, allColumns...),
//Columns
Destination: DestinationColumn,
LayerFeatureServiceItemID: LayerFeatureServiceItemIDColumn,
LayerIndex: LayerIndexColumn,
LayerFieldName: LayerFieldNameColumn,
OrganizationID: OrganizationIDColumn,
AllColumns: allColumns,
MutableColumns: mutableColumns,
DefaultColumns: defaultColumns,
}
}