Project

General

Profile

« Previous | Next » 

Revision 589

vegbien.sql: Added specimen.authorspecimencode

View differences:

vegbien.for_ERD.sql
265 265
  accessioncode character varying(255),
266 266
  taxonoccurrence_id integer NOT NULL,
267 267
  collectornumber_dwc character varying(255),
268
  authorspecimencode character varying(20),
268 269
  CONSTRAINT specimen_pkey PRIMARY KEY (specimen_id ),
269 270
  CONSTRAINT specimen_collector_id FOREIGN KEY (collector_id)
270 271
      REFERENCES party (party_id) MATCH SIMPLE
......
279 280
      REFERENCES taxonoccurrence (taxonoccurrence_id) MATCH SIMPLE
280 281
      ON UPDATE CASCADE ON DELETE CASCADE,
281 282
  CONSTRAINT specimen_keys_accessioncode UNIQUE (reference_id , collectioncode_dwc , sourceaccessioncode ),
282
  CONSTRAINT specimen_keys_catalognumber UNIQUE (reference_id , collectioncode_dwc , catalognumber_dwc )
283
  CONSTRAINT specimen_keys_catalognumber UNIQUE (reference_id , collectioncode_dwc , catalognumber_dwc ),
284
  CONSTRAINT specimen_keys_code UNIQUE (reference_id , collectioncode_dwc , authorspecimencode )
283 285
);
284 286

  
285 287
CREATE TABLE voucher

Also available in: Unified diff