Mercurial > dive4elements > river
comparison flys-backend/doc/schema/postgresql.sql @ 2371:fe89d6cf55fb
Added support for official gauge numbers.
flys-backend/trunk@3464 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 19 Dec 2011 11:21:25 +0000 |
parents | 0acf28a3d28a |
children | 056b3a5aa181 |
comparison
equal
deleted
inserted
replaced
2370:7d378970d764 | 2371:fe89d6cf55fb |
---|---|
76 | 76 |
77 -- Pegel | 77 -- Pegel |
78 CREATE SEQUENCE GAUGES_ID_SEQ; | 78 CREATE SEQUENCE GAUGES_ID_SEQ; |
79 | 79 |
80 CREATE TABLE gauges ( | 80 CREATE TABLE gauges ( |
81 id int PRIMARY KEY NOT NULL, | 81 id int PRIMARY KEY NOT NULL, |
82 name VARCHAR(256) NOT NULL, | 82 name VARCHAR(256) NOT NULL, |
83 river_id int NOT NULL REFERENCES rivers(id), | 83 river_id int NOT NULL REFERENCES rivers(id), |
84 station NUMERIC NOT NULL UNIQUE, | 84 station NUMERIC NOT NULL UNIQUE, |
85 aeo NUMERIC NOT NULL, | 85 aeo NUMERIC NOT NULL, |
86 official_number int8 UNIQUE, | |
86 | 87 |
87 -- Pegelnullpunkt | 88 -- Pegelnullpunkt |
88 datum NUMERIC NOT NULL, | 89 datum NUMERIC NOT NULL, |
89 -- Streckengueltigkeit | 90 -- Streckengueltigkeit |
90 range_id int NOT NULL REFERENCES ranges (id), | 91 range_id int NOT NULL REFERENCES ranges (id), |