ud_connec - Giswater/giswater_dbmodel GitHub Wiki
Description:
In case of urbain drainage data of all connection features of inventory is stored on just one table - connec. Fields of connec table are common for all types of connections. In case of connecs it's also recommended to use views for inserting, updating and deleting in order to capture default values (parent view - ve_connec or child views defined on cat_feature).
Fields:
Column name | Data type | Description |
---|---|---|
connec_id | character varying(30) | Id (automatically assigned on insert) |
code | text | Element code from previous system |
top_elev | numeric(12,4) | Top elevation at which the element is located |
y1 | numeric(12,4) | Depth of the connection exit from initial point |
y2 | numeric(12,4) | Depth of the connection enter into final point |
connec_type | character varying(30) | Connec type, defined on cat_feature_connec |
conneccat_id | character varying(30) | Id of connec catalog, defined on cat_connec |
sector_id | integer | Id of a hydraulic sector, defined on sector |
customer_code | character varying(30) | Code of the subscriber, that allows connection with subscriber management application |
private_conneccat_id | character varying(30) | Id of connec catalog, used in case of a private part of the connection, defined on cat_connec |
demand | numeric(12,8) | Water demand |
state | smallint | Main state of element, defined on value_state |
state_type | smallint | Substate of element, defined on value_state_type |
connec_depth | numeric(12,3) | Depth of the connection |
connec_length | numeric(12,3) | Length of the connection |
arc_id | character varying(16) | Id of arc with which element is related |
annotation | text | Description |
observ | text | Description |
comment | text | Description |
dma_id | integer | Id of a district management area, defined on dma |
soilcat_id | character varying(16) | Soil on which the element is located, defined on cat_soil |
function_type | character varying(50) | Function of the element, defined on man_type_function |
category_type | character varying(50) | Function of the element, defined on man_type_category |
fluid_type | character varying(50) | Function of the element, defined on man_type_fluid |
location_type | character varying(50) | Function of the element, defined on man_type_location |
workcat_id | character varying(255) | Work code related to construction of the element, defined on cat_work |
workcat_id_end | character varying(255) | Work code related to disassemble of the element, defined on cat_work |
buildercat_id | character varying(30) | Constructor of element, defined on cat_builder |
builtdate | date | Data of construction |
enddate | date | Data of disassemble |
ownercat_id | character varying(30) | Owner of the element, defined on cat_owner |
muni_id | integer | Municipality in which element is located, defined on ext_municipality |
postcode | character varying(16) | Postcode of element's location |
streetaxis_id | character varying(16) | Street in which element is located, defined on ext_streetaxis |
postnumber | integer | Post number of the element's location, defined on ext_address |
postcomplement | character varying(100) | Additional number of the element's location |
streetaxis2_id | character varying(16) | Street in which element is located, defined on ext_streetaxis (used in to define location as from street to street |
postnumber2 | integer | Post number of the element's location, situated on the second street, defined on ext_address |
postcomplement2 | character varying(100) | Additional number of the element's location, situated on the second street |
descript | text | Description |
link | character varying(512) | Link |
verified | character varying(20) | Level of data verification, define edit_typevalue (value_verified) |
rotation | numeric(6,3) | Rotation of element's symbol |
the_geom | geometry(Point,SRID) | Point geometry of element |
undelete | boolean | If true, element can't be deleted |
label_x | character varying(30) | Coordinate x of label location |
label_y | character varying(30) | Coordinate y of label location |
label_rotation | numeric(6,3) | Rotation of element's label |
accessibility | boolean | If true, element is accessible from the outside |
diagonal | character varying(50) | dentifies if the connection is diagonal towards the network |
publish | boolean | If true, element is being published |
inventory | boolean | If true, element is a part of company's inventory |
uncertain | boolean | If true, element has data with little reliability |
expl_id | integer | Id of an exploitation, defined on exploitation |
num_value | numeric(12,3) | Additional numeric field |
feature_type | character varying(16) | Type of feature (automatically assigned on insert) |
tstamp | timestamp without time zone | Date and time of data insert |
pjoint_type | character varying(16) | Final feature type of element to which connec is related vía links |
pjoint_id | character varying(16) | Final feature id of element to which connec is related vía links |
lastupdate | timestamp without time zone | Date and time of last data update |
lastupdate_user | character varying(50) | User that executed last update |
insert_user | character varying(50) | User that inserted data |
matcat_id | character varying(16) | Id of material, used in case when material is not specified on connec catalog, defined on cat_mat_arc |
district_id | integer | District in which element is located, defined on ext_district |
workcat_id_plan | character varying(255) | Description |
asset_id | character varying(50) | Id of a financial asset |
drainzone_id | integer | Id of drainzone |
expl_id2 | integer | Id of a second exploitation, defined on exploitation |
adate | text | Description |
adescript | text | Description |
plot_code | character varying | Description |
placement_type | character varying(50) | Description |
access_type | text | Description |
label_quadrant | character varying(12) | Description |
n_hydrometer | integer | Description |
minsector_id | integer | Description |
macrominsector_id | integer | Description |