Project

General

Profile

« Previous | Next » 

Revision 11189

schemas/VegCore/ERD/VegCore.ERD.mwb: dataset.contacts: make this required, so that anyone adding data to a VegCore DB always provides at least one contact person, possibly themselves, to ask about attribution questions (as suggested by Brad in BIEN 3 data use and attribution.docx)

View differences:

schemas/VegCore/ERD/document.mwb.xml
198 198
                      <value type="string" key="oldName">name</value>
199 199
                      <link type="object" struct-name="GrtObject" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
200 200
                    </value>
201
                    <value type="object" struct-name="db.mysql.Column" id="873d473c-1df1-11e3-bbb6-080027bcf912" struct-checksum="0x783b5183">
202
                      <value type="int" key="autoIncrement">0</value>
203
                      <value type="string" key="characterSetName"></value>
204
                      <value _ptr_="0xba588f0" type="list" content-type="object" content-struct-name="db.CheckConstraint" key="checks"/>
205
                      <value type="string" key="collationName"></value>
206
                      <value type="string" key="datatypeExplicitParams"></value>
207
                      <value type="string" key="defaultValue"></value>
208
                      <value type="int" key="defaultValueIsNull">0</value>
209
                      <value _ptr_="0xba58c18" type="list" content-type="string" key="flags"/>
210
                      <value type="int" key="isNotNull">1</value>
211
                      <value type="int" key="length">767</value>
212
                      <value type="int" key="precision">-1</value>
213
                      <value type="int" key="scale">-1</value>
214
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
215
                      <value type="string" key="comment"></value>
216
                      <value type="string" key="name">contacts</value>
217
                      <value type="string" key="oldName">contacts</value>
218
                      <link type="object" struct-name="GrtObject" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
219
                    </value>
201 220
                    <value type="object" struct-name="db.mysql.Column" id="1156d180-2393-11e3-a6f3-080027bcf912" struct-checksum="0x783b5183">
202 221
                      <value type="int" key="autoIncrement">0</value>
203 222
                      <value type="string" key="characterSetName"></value>
......
274 293
                      <value type="string" key="oldName">data_owners</value>
275 294
                      <link type="object" struct-name="GrtObject" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
276 295
                    </value>
277
                    <value type="object" struct-name="db.mysql.Column" id="873d473c-1df1-11e3-bbb6-080027bcf912" struct-checksum="0x783b5183">
278
                      <value type="int" key="autoIncrement">0</value>
279
                      <value type="string" key="characterSetName"></value>
280
                      <value _ptr_="0xba588f0" type="list" content-type="object" content-struct-name="db.CheckConstraint" key="checks"/>
281
                      <value type="string" key="collationName"></value>
282
                      <value type="string" key="datatypeExplicitParams"></value>
283
                      <value type="string" key="defaultValue"></value>
284
                      <value type="int" key="defaultValueIsNull">1</value>
285
                      <value _ptr_="0xba58c18" type="list" content-type="string" key="flags"/>
286
                      <value type="int" key="isNotNull">0</value>
287
                      <value type="int" key="length">767</value>
288
                      <value type="int" key="precision">-1</value>
289
                      <value type="int" key="scale">-1</value>
290
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
291
                      <value type="string" key="comment"></value>
292
                      <value type="string" key="name">contacts</value>
293
                      <value type="string" key="oldName">contacts</value>
294
                      <link type="object" struct-name="GrtObject" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
295
                    </value>
296 296
                  </value>
297 297
                  <value type="string" key="connectionString"></value>
298 298
                  <value type="string" key="defaultCharacterSetName">utf8</value>
299 299
                  <value type="string" key="defaultCollationName">utf8_bin</value>
300 300
                  <value type="int" key="delayKeyWrite">0</value>
301 301
                  <value _ptr_="0xba56bc0" type="list" content-type="object" content-struct-name="db.mysql.ForeignKey" key="foreignKeys">
302
                    <value type="object" struct-name="db.mysql.ForeignKey" id="873d44bc-1df1-11e3-bbb6-080027bcf912" struct-checksum="0x70a8fc40">
303
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">4001ec92-f678-11e2-9716-080027bcf912</link>
304
                      <value _ptr_="0xba58d90" type="list" content-type="object" content-struct-name="db.Column" key="columns">
305
                        <link type="object">873d473c-1df1-11e3-bbb6-080027bcf912</link>
302
                    <value type="object" struct-name="db.mysql.ForeignKey" id="c7c1e6aa-a91b-11e2-bdec-080027bcf912" struct-checksum="0x70a8fc40">
303
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">afc401d4-1df9-11e3-bbb6-080027bcf912</link>
304
                      <value _ptr_="0xba59e70" type="list" content-type="object" content-struct-name="db.Column" key="columns">
305
                        <link type="object">c7c1e862-a91b-11e2-bdec-080027bcf912</link>
306 306
                      </value>
307 307
                      <value type="int" key="deferability">0</value>
308 308
                      <value type="string" key="deleteRule">CASCADE</value>
309
                      <link type="object" struct-name="db.Index" key="index">d2855d46-1df2-11e3-bbb6-080027bcf912</link>
309
                      <link type="object" struct-name="db.Index" key="index">170b9dc8-310c-11e3-ab47-080027bcf912</link>
310 310
                      <value type="int" key="mandatory">1</value>
311 311
                      <value type="int" key="many">1</value>
312 312
                      <value type="int" key="modelOnly">0</value>
313 313
                      <link type="object" struct-name="db.Table" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
314
                      <value _ptr_="0xba59080" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
315
                        <link type="object">4001ef9e-f678-11e2-9716-080027bcf912</link>
314
                      <value _ptr_="0xba5a160" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
315
                        <link type="object">afc4053a-1df9-11e3-bbb6-080027bcf912</link>
316 316
                      </value>
317 317
                      <value type="int" key="referencedMandatory">0</value>
318 318
                      <value type="string" key="updateRule">CASCADE</value>
319 319
                      <value type="string" key="comment"></value>
320
                      <value type="string" key="name">fk_source_party1</value>
321
                      <value type="string" key="oldName">fk_source_party1</value>
320
                      <value type="string" key="name">fk_source_party2</value>
321
                      <value type="string" key="oldName">fk_source_party2</value>
322 322
                    </value>
323
                    <value type="object" struct-name="db.mysql.ForeignKey" id="3237beb6-238c-11e3-a6f3-080027bcf912" struct-checksum="0x70a8fc40">
324
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">afc401d4-1df9-11e3-bbb6-080027bcf912</link>
325
                      <value _ptr_="0xba590f0" type="list" content-type="object" content-struct-name="db.Column" key="columns">
326
                        <link type="object">2ebd5a70-238c-11e3-a6f3-080027bcf912</link>
323
                    <value type="object" struct-name="db.mysql.ForeignKey" id="61c193a8-1dee-11e3-b571-080027bcf912" struct-checksum="0x70a8fc40">
324
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">4001ec92-f678-11e2-9716-080027bcf912</link>
325
                      <value _ptr_="0xba5a1d0" type="list" content-type="object" content-struct-name="db.Column" key="columns">
326
                        <link type="object">c8552b14-a7bc-11e2-8af2-080027bcf912</link>
327 327
                      </value>
328 328
                      <value type="int" key="deferability">0</value>
329 329
                      <value type="string" key="deleteRule">CASCADE</value>
330
                      <link type="object" struct-name="db.Index" key="index">3237d356-238c-11e3-a6f3-080027bcf912</link>
330
                      <link type="object" struct-name="db.Index" key="index">61c1b04a-1dee-11e3-b571-080027bcf912</link>
331 331
                      <value type="int" key="mandatory">1</value>
332 332
                      <value type="int" key="many">1</value>
333 333
                      <value type="int" key="modelOnly">0</value>
334 334
                      <link type="object" struct-name="db.Table" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
335
                      <value _ptr_="0xba593e0" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
336
                        <link type="object">afc4053a-1df9-11e3-bbb6-080027bcf912</link>
335
                      <value _ptr_="0xba5a4c0" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
336
                        <link type="object">4001ef9e-f678-11e2-9716-080027bcf912</link>
337 337
                      </value>
338
                      <value type="int" key="referencedMandatory">1</value>
338
                      <value type="int" key="referencedMandatory">0</value>
339 339
                      <value type="string" key="updateRule">CASCADE</value>
340 340
                      <value type="string" key="comment"></value>
341
                      <value type="string" key="name">fk_dataset_source2</value>
342
                      <value type="string" key="oldName">fk_dataset_source2</value>
341
                      <value type="string" key="name">fk_source_party_list1</value>
342
                      <value type="string" key="oldName">fk_source_party_list1</value>
343 343
                    </value>
344 344
                    <value type="object" struct-name="db.mysql.ForeignKey" id="1156cf50-2393-11e3-a6f3-080027bcf912" struct-checksum="0x70a8fc40">
345 345
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
......
402 402
                      <value type="string" key="name">fk_dataset_traceable1</value>
403 403
                      <value type="string" key="oldName">fk_dataset_traceable1</value>
404 404
                    </value>
405
                    <value type="object" struct-name="db.mysql.ForeignKey" id="c7c1e6aa-a91b-11e2-bdec-080027bcf912" struct-checksum="0x70a8fc40">
405
                    <value type="object" struct-name="db.mysql.ForeignKey" id="3237beb6-238c-11e3-a6f3-080027bcf912" struct-checksum="0x70a8fc40">
406 406
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">afc401d4-1df9-11e3-bbb6-080027bcf912</link>
407
                      <value _ptr_="0xba59e70" type="list" content-type="object" content-struct-name="db.Column" key="columns">
408
                        <link type="object">c7c1e862-a91b-11e2-bdec-080027bcf912</link>
407
                      <value _ptr_="0xba590f0" type="list" content-type="object" content-struct-name="db.Column" key="columns">
408
                        <link type="object">2ebd5a70-238c-11e3-a6f3-080027bcf912</link>
409 409
                      </value>
410 410
                      <value type="int" key="deferability">0</value>
411 411
                      <value type="string" key="deleteRule">CASCADE</value>
412
                      <link type="object" struct-name="db.Index" key="index">170b9dc8-310c-11e3-ab47-080027bcf912</link>
412
                      <link type="object" struct-name="db.Index" key="index">3237d356-238c-11e3-a6f3-080027bcf912</link>
413 413
                      <value type="int" key="mandatory">1</value>
414 414
                      <value type="int" key="many">1</value>
415 415
                      <value type="int" key="modelOnly">0</value>
416 416
                      <link type="object" struct-name="db.Table" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
417
                      <value _ptr_="0xba5a160" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
417
                      <value _ptr_="0xba593e0" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
418 418
                        <link type="object">afc4053a-1df9-11e3-bbb6-080027bcf912</link>
419 419
                      </value>
420
                      <value type="int" key="referencedMandatory">0</value>
420
                      <value type="int" key="referencedMandatory">1</value>
421 421
                      <value type="string" key="updateRule">CASCADE</value>
422 422
                      <value type="string" key="comment"></value>
423
                      <value type="string" key="name">fk_source_party2</value>
424
                      <value type="string" key="oldName">fk_source_party2</value>
423
                      <value type="string" key="name">fk_dataset_source2</value>
424
                      <value type="string" key="oldName">fk_dataset_source2</value>
425 425
                    </value>
426
                    <value type="object" struct-name="db.mysql.ForeignKey" id="61c193a8-1dee-11e3-b571-080027bcf912" struct-checksum="0x70a8fc40">
426
                    <value type="object" struct-name="db.mysql.ForeignKey" id="873d44bc-1df1-11e3-bbb6-080027bcf912" struct-checksum="0x70a8fc40">
427 427
                      <link type="object" struct-name="db.mysql.Table" key="referencedTable">4001ec92-f678-11e2-9716-080027bcf912</link>
428
                      <value _ptr_="0xba5a1d0" type="list" content-type="object" content-struct-name="db.Column" key="columns">
429
                        <link type="object">c8552b14-a7bc-11e2-8af2-080027bcf912</link>
428
                      <value _ptr_="0xba58d90" type="list" content-type="object" content-struct-name="db.Column" key="columns">
429
                        <link type="object">873d473c-1df1-11e3-bbb6-080027bcf912</link>
430 430
                      </value>
431 431
                      <value type="int" key="deferability">0</value>
432 432
                      <value type="string" key="deleteRule">CASCADE</value>
433
                      <link type="object" struct-name="db.Index" key="index">61c1b04a-1dee-11e3-b571-080027bcf912</link>
433
                      <link type="object" struct-name="db.Index" key="index">d2855d46-1df2-11e3-bbb6-080027bcf912</link>
434 434
                      <value type="int" key="mandatory">1</value>
435 435
                      <value type="int" key="many">1</value>
436 436
                      <value type="int" key="modelOnly">0</value>
437 437
                      <link type="object" struct-name="db.Table" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
438
                      <value _ptr_="0xba5a4c0" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
438
                      <value _ptr_="0xba59080" type="list" content-type="object" content-struct-name="db.Column" key="referencedColumns">
439 439
                        <link type="object">4001ef9e-f678-11e2-9716-080027bcf912</link>
440 440
                      </value>
441
                      <value type="int" key="referencedMandatory">0</value>
441
                      <value type="int" key="referencedMandatory">1</value>
442 442
                      <value type="string" key="updateRule">CASCADE</value>
443 443
                      <value type="string" key="comment"></value>
444
                      <value type="string" key="name">fk_source_party_list1</value>
445
                      <value type="string" key="oldName">fk_source_party_list1</value>
444
                      <value type="string" key="name">fk_source_party1</value>
445
                      <value type="string" key="oldName">fk_source_party1</value>
446 446
                    </value>
447 447
                  </value>
448 448
                  <value _ptr_="0xba56bf0" type="list" content-type="object" content-struct-name="db.mysql.Index" key="indices">
......
612 612
                      <value type="int" key="isPrimary">0</value>
613 613
                      <value type="string" key="name">fk_source_party2_idx</value>
614 614
                      <value type="int" key="unique">0</value>
615
                      <value type="string" key="oldName">fk_source_party2</value>
615
                      <value type="string" key="oldName">fk_source_party2_idx</value>
616 616
                      <link type="object" struct-name="GrtObject" key="owner">be8cc04c-a6e0-11e2-95e9-080027bcf912</link>
617 617
                    </value>
618 618
                  </value>
......
646 646
                  <value type="int" key="commentedOut">0</value>
647 647
                  <value type="string" key="createDate">2013-04-16 14:58</value>
648 648
                  <value _ptr_="0xba4cf98" type="dict" key="customData"/>
649
                  <value type="string" key="lastChangeDate">2013-10-09 10:56</value>
649
                  <value type="string" key="lastChangeDate">2013-10-09 11:03</value>
650 650
                  <value type="int" key="modelOnly">0</value>
651 651
                  <value type="string" key="name">dataset</value>
652 652
                  <link type="object" struct-name="GrtNamedObject" key="owner">be8cb246-a6e0-11e2-95e9-080027bcf912</link>
......
17498 17498
        <link type="object" struct-name="db.mgmt.Rdbms" key="rdbms">com.mysql.rdbms.mysql</link>
17499 17499
        <value _ptr_="0xba53b00" type="list" content-type="object" content-struct-name="db.Script" key="scripts"/>
17500 17500
        <value _ptr_="0xb0204c8" type="dict" key="syncProfiles">
17501
          <value type="object" struct-name="db.mgmt.SyncProfile" id="9897e010-310a-11e3-ab47-080027bcf912" struct-checksum="0xc64972c2" key="">
17502
            <value _ptr_="0xc93b428" type="dict" key="lastKnownDBNames">
17501
          <value type="object" struct-name="db.mgmt.SyncProfile" id="261c5266-310d-11e3-ab47-080027bcf912" struct-checksum="0xc64972c2" key="">
17502
            <value _ptr_="0xd233de8" type="dict" key="lastKnownDBNames">
17503 17503
              <value type="string" key="016697c0-23ec-11e3-ab7c-080027bcf912">name</value>
17504 17504
              <value type="string" key="01b2e3fe-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1</value>
17505 17505
              <value type="string" key="01b2e606-f6ed-11e2-9cf1-080027bcf912">georeferenced_by</value>
......
17550 17550
              <value type="string" key="165389fc-a7a7-11e2-8ba6-080027bcf912">cultivated</value>
17551 17551
              <value type="string" key="16538c2c-a7a7-11e2-8ba6-080027bcf912">traits</value>
17552 17552
              <value type="string" key="165395c8-a7a7-11e2-8ba6-080027bcf912">PRIMARY</value>
17553
              <value type="string" key="170b9dc8-310c-11e3-ab47-080027bcf912">fk_source_party2_idx</value>
17553 17554
              <value type="string" key="174e1b4c-23e9-11e3-ab7c-080027bcf912">person</value>
17554 17555
              <value type="string" key="174e1e76-23e9-11e3-ab7c-080027bcf912">id</value>
17555 17556
              <value type="string" key="174e216e-23e9-11e3-ab7c-080027bcf912">fk_organization_party10</value>
......
17994 17995
              <value type="string" key="c7a57ce0-a92a-11e2-93c8-080027bcf912">lat_long_in_place_ranks</value>
17995 17996
              <value type="string" key="c7c1e6aa-a91b-11e2-bdec-080027bcf912">fk_source_party2</value>
17996 17997
              <value type="string" key="c7c1e862-a91b-11e2-bdec-080027bcf912">first_publisher</value>
17997
              <value type="string" key="c7c2089c-a91b-11e2-bdec-080027bcf912">fk_source_party2_idx</value>
17998 17998
              <value type="string" key="c8552b14-a7bc-11e2-8af2-080027bcf912">data_owners</value>
17999 17999
              <value type="string" key="cb38187e-29d4-11e3-a673-080027bcf912">source__unique</value>
18000 18000
              <value type="string" key="cfea1514-a790-11e2-84c3-080027bcf912">x_m</value>
......
18124 18124
    <value type="object" struct-name="app.DocumentInfo" id="BEE3982F-55A1-4B2C-914A-CD6953803AB9" struct-checksum="0xbba780b8" key="info">
18125 18125
      <value type="string" key="author">Aaron Marcuse-Kubitza</value>
18126 18126
      <value type="string" key="caption">New Model</value>
18127
      <value type="string" key="dateChanged">2013-10-09 10:59</value>
18127
      <value type="string" key="dateChanged">2013-10-09 11:03</value>
18128 18128
      <value type="string" key="dateCreated">2012-01-19 14:06</value>
18129 18129
      <value type="string" key="description"></value>
18130 18130
      <value type="string" key="project">Name of the project</value>
schemas/VegCore/VegCore.my.sql
123 123
CREATE TABLE `dataset` (
124 124
  `id` varbinary(767) NOT NULL,
125 125
  `name` varbinary(767) NOT NULL,
126
  `contacts` varbinary(767) NOT NULL,
126 127
  `parent` varbinary(767) DEFAULT NULL COMMENT 'this provides a containment relationship, which differs from the attribution relationship provided by data_source. e.g. the GBIF.ARIZ dataset is contained within the GBIF dataset (the parent), but was obtained from ARIZ (the data_source).',
127 128
  `dataset_source` varbinary(767) DEFAULT NULL COMMENT 'where the data in the dataset came from (as opposed to where the metadata *about* the dataset came from, which is in source, inherited from traceable); = Brad.vegpath.org?attribution.proximate_data_provider',
128 129
  `first_publisher` varbinary(767) DEFAULT NULL COMMENT '= Brad.vegpath.org?attribution.data_publisher, Brad.vegpath.org?data_provenance.primarydataprovider',
129 130
  `data_owners` varbinary(767) DEFAULT NULL COMMENT 'parties who must be given attribution, such as copyrightholders',
130
  `contacts` varbinary(767) DEFAULT NULL,
131 131
  PRIMARY KEY (`id`),
132 132
  UNIQUE KEY `dataset_unique` (`parent`,`name`),
133 133
  KEY `fk_source_party_list1_idx` (`data_owners`),
......
135 135
  KEY `fk_dataset_source2_idx` (`dataset_source`),
136 136
  KEY `fk_dataset_dataset1_idx` (`parent`),
137 137
  KEY `fk_source_party2_idx` (`first_publisher`),
138
  CONSTRAINT `fk_source_party1` FOREIGN KEY (`contacts`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
139 138
  CONSTRAINT `fk_source_party2` FOREIGN KEY (`first_publisher`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
139
  CONSTRAINT `fk_source_party_list1` FOREIGN KEY (`data_owners`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
140 140
  CONSTRAINT `fk_dataset_dataset1` FOREIGN KEY (`parent`) REFERENCES `dataset` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
141 141
  CONSTRAINT `fk_dataset_source1` FOREIGN KEY (`id`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
142 142
  CONSTRAINT `fk_dataset_source2` FOREIGN KEY (`dataset_source`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
143 143
  CONSTRAINT `fk_dataset_traceable1` FOREIGN KEY (`id`) REFERENCES `traceable` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
144
  CONSTRAINT `fk_source_party_list1` FOREIGN KEY (`data_owners`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
144
  CONSTRAINT `fk_source_party1` FOREIGN KEY (`contacts`) REFERENCES `party_list` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
145 145
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='a collection of records from the same place, with the same attribution requirements';
146 146
/*!40101 SET character_set_client = @saved_cs_client */;
147 147

  
schemas/VegCore/VegCore.pg.sql
125 125
CREATE TABLE "dataset" (
126 126
  "id" text NOT NULL,
127 127
  "name" text NOT NULL,
128
  "contacts" text NOT NULL,
128 129
  "parent" text DEFAULT NULL /*COMMENT 'this provides a containment relationship, which differs from the attribution relationship provided by data_source. e.g. the GBIF.ARIZ dataset is contained within the GBIF dataset (the parent), but was obtained from ARIZ (the data_source).'*/,
129 130
  "dataset_source" text DEFAULT NULL /*COMMENT 'where the data in the dataset came from (as opposed to where the metadata *about* the dataset came from, which is in source, inherited from traceable); = Brad.vegpath.org?attribution.proximate_data_provider'*/,
130 131
  "first_publisher" text DEFAULT NULL /*COMMENT '= Brad.vegpath.org?attribution.data_publisher, Brad.vegpath.org?data_provenance.primarydataprovider'*/,
131 132
  "data_owners" text DEFAULT NULL /*COMMENT 'parties who must be given attribution, such as copyrightholders'*/,
132
  "contacts" text DEFAULT NULL,
133 133
  PRIMARY KEY ("id"),
134 134
  /*CONSTRAINT "dataset_unique" */UNIQUE ("parent","name"),
135 135
  /*KEY "fk_source_party_list1_idx" ("data_owners")*/CHECK (true),
......
137 137
  /*KEY "fk_dataset_source2_idx" ("dataset_source")*/CHECK (true),
138 138
  /*KEY "fk_dataset_dataset1_idx" ("parent")*/CHECK (true),
139 139
  /*KEY "fk_source_party2_idx" ("first_publisher")*/CHECK (true),
140
  /*CONSTRAINT "fk_source_party1" FOREIGN KEY ("contacts") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
141 140
  /*CONSTRAINT "fk_source_party2" FOREIGN KEY ("first_publisher") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
141
  /*CONSTRAINT "fk_source_party_list1" FOREIGN KEY ("data_owners") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
142 142
  /*CONSTRAINT "fk_dataset_dataset1" FOREIGN KEY ("parent") REFERENCES "dataset" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
143 143
  /*CONSTRAINT "fk_dataset_source1" FOREIGN KEY ("id") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
144 144
  /*CONSTRAINT "fk_dataset_source2" FOREIGN KEY ("dataset_source") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
145 145
  /*CONSTRAINT "fk_dataset_traceable1" FOREIGN KEY ("id") REFERENCES "traceable" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
146
  /*CONSTRAINT "fk_source_party_list1" FOREIGN KEY ("data_owners") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
146
  /*CONSTRAINT "fk_source_party1" FOREIGN KEY ("contacts") REFERENCES "party_list" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
147 147
) /*ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin COMMENT='a collection of records from the same place, with the same attribution requirements'*/;
148 148
/*!40101 SET character_set_client = @saved_cs_client */;
149 149

  

Also available in: Unified diff