Revision 682
Added by Aaron Marcuse-Kubitza almost 13 years ago
vegbien.for_ERD.sql | ||
---|---|---|
264 | 264 |
CREATE TABLE plantobservation -- VegBank's stemcount table. |
265 | 265 |
( |
266 | 266 |
plantobservation_id serial NOT NULL, |
267 |
aggregateoccurrence_id integer, |
|
268 | 267 |
overallheight double precision, |
269 | 268 |
overallheightaccuracy double precision, |
270 | 269 |
emb_plantobservation integer, |
... | ... | |
274 | 273 |
sourceaccessioncode character varying(100), |
275 | 274 |
plant_id integer, |
276 | 275 |
CONSTRAINT plantobservation_pkey PRIMARY KEY (plantobservation_id ), |
277 |
CONSTRAINT plantobservation_aggregateoccurrence_id FOREIGN KEY (aggregateoccurrence_id) |
|
278 |
REFERENCES aggregateoccurrence (aggregateoccurrence_id) MATCH SIMPLE |
|
279 |
ON UPDATE CASCADE ON DELETE CASCADE, |
|
280 | 276 |
CONSTRAINT plantobservation_plant_id FOREIGN KEY (plant_id) |
281 | 277 |
REFERENCES plant (plant_id) MATCH SIMPLE |
282 |
ON UPDATE CASCADE ON DELETE CASCADE, |
|
283 |
CONSTRAINT plantobservation_aggregateoccurrence_id_1_to_1 UNIQUE (aggregateoccurrence_id ) |
|
278 |
ON UPDATE CASCADE ON DELETE CASCADE |
|
284 | 279 |
); |
285 | 280 |
|
286 | 281 |
CREATE TABLE stemobservation -- VegBank's stemlocation table. |
Also available in: Unified diff
vegbien.sql: Removed no longer used plantobservation.aggregateoccurrence_id