Project

General

Profile

« Previous | Next » 

Revision 11030

schemas/VegCore/VegCore.ERD.mwb: record.dataset_record_id: renamed to id_within_dataset for clarity

View differences:

schemas/VegCore/VegCore.pg.sql
704 704
CREATE TABLE "record" (
705 705
  "id" text NOT NULL,
706 706
  "dataset" text NOT NULL,
707
  "dataset_record_id" text NOT NULL,
707
  "id_within_dataset" text NOT NULL,
708 708
  PRIMARY KEY ("id"),
709
  /*CONSTRAINT "record_unique" */UNIQUE ("dataset","dataset_record_id"),
709
  /*CONSTRAINT "record_unique" */UNIQUE ("dataset","id_within_dataset"),
710 710
  /*KEY "fk_record_source1_idx" ("dataset")*/CHECK (true),
711 711
  /*CONSTRAINT "fk_record_source10" FOREIGN KEY ("dataset") REFERENCES "dataset" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true),
712 712
  /*CONSTRAINT "fk_record_source2" FOREIGN KEY ("id") REFERENCES "source" ("id") ON DELETE CASCADE ON UPDATE CASCADE*/CHECK (true)
schemas/VegCore/document.mwb.xml
1252 1252
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
1253 1253
                      <value type="string" key="comment">the portion of the source record that this traceable refers to. denormalized source data often contains data for many VegCore tables in the same row, and the traceables for each of these table entries must be distinguished *from each other* since they share the same source. this is usually just the VegCore table name, sometimes with a distinguishing prefix (e.g. collector.party/identified_by.party; current_observation.taxon_determination/orig_observation.taxon_determination).</value>
1254 1254
                      <value type="string" key="name">table_fragment</value>
1255
                      <value type="string" key="oldName"></value>
1255
                      <value type="string" key="oldName">table_fragment</value>
1256 1256
                      <link type="object" struct-name="GrtObject" key="owner">be8cd56e-a6e0-11e2-95e9-080027bcf912</link>
1257 1257
                    </value>
1258 1258
                  </value>
......
1334 1334
                      <value type="int" key="isPrimary">0</value>
1335 1335
                      <value type="string" key="name">traceable_unique</value>
1336 1336
                      <value type="int" key="unique">1</value>
1337
                      <value type="string" key="oldName">record_unique</value>
1337
                      <value type="string" key="oldName">traceable_unique</value>
1338 1338
                      <link type="object" struct-name="GrtObject" key="owner">be8cd56e-a6e0-11e2-95e9-080027bcf912</link>
1339 1339
                    </value>
1340 1340
                  </value>
......
12541 12541
                      <value type="int" key="scale">-1</value>
12542 12542
                      <link type="object" struct-name="db.SimpleDatatype" key="simpleType">com.mysql.rdbms.mysql.datatype.varbinary</link>
12543 12543
                      <value type="string" key="comment"></value>
12544
                      <value type="string" key="name">dataset_record_id</value>
12544
                      <value type="string" key="name">id_within_dataset</value>
12545 12545
                      <value type="string" key="oldName">dataset_record_id</value>
12546 12546
                      <link type="object" struct-name="GrtObject" key="owner">0de39e86-1dec-11e3-b571-080027bcf912</link>
12547 12547
                    </value>
......
12702 12702
                  <value type="int" key="commentedOut">0</value>
12703 12703
                  <value type="string" key="createDate">2013-04-16 14:58</value>
12704 12704
                  <value _ptr_="0xaa9aad8" type="dict" key="customData"/>
12705
                  <value type="string" key="lastChangeDate">2013-09-15 04:43</value>
12705
                  <value type="string" key="lastChangeDate">2013-09-21 19:00</value>
12706 12706
                  <value type="int" key="modelOnly">0</value>
12707 12707
                  <value type="string" key="name">record</value>
12708 12708
                  <link type="object" struct-name="GrtNamedObject" key="owner">be8cb246-a6e0-11e2-95e9-080027bcf912</link>
......
17420 17420
                <value type="int" key="locked">0</value>
17421 17421
                <value type="int" key="manualSizing">0</value>
17422 17422
                <value type="real" key="top">6.54e+02</value>
17423
                <value type="real" key="width">1.1e+02</value>
17423
                <value type="real" key="width">1.06e+02</value>
17424 17424
                <link type="object" struct-name="model.Diagram" key="owner">3915EB3C-D507-4518-BE3A-63A8D8DD4471</link>
17425 17425
                <value type="int" key="visible">1</value>
17426 17426
                <value type="string" key="name">record</value>
......
17601 17601
        <link type="object" struct-name="db.mgmt.Rdbms" key="rdbms">com.mysql.rdbms.mysql</link>
17602 17602
        <value _ptr_="0xa9f7a68" type="list" content-type="object" content-struct-name="db.Script" key="scripts"/>
17603 17603
        <value _ptr_="0xa22a678" type="dict" key="syncProfiles">
17604
          <value type="object" struct-name="db.mgmt.SyncProfile" id="b6ac4e54-2324-11e3-a5a2-080027bcf912" struct-checksum="0xc64972c2" key="">
17605
            <value _ptr_="0xb5c96e0" type="dict" key="lastKnownDBNames">
17604
          <value type="object" struct-name="db.mgmt.SyncProfile" id="4927f0ee-232a-11e3-a5a2-080027bcf912" struct-checksum="0xc64972c2" key="">
17605
            <value _ptr_="0xc135f88" type="dict" key="lastKnownDBNames">
17606 17606
              <value type="string" key="01b2e3fe-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1</value>
17607 17607
              <value type="string" key="01b2e606-f6ed-11e2-9cf1-080027bcf912">georeferenced_by</value>
17608 17608
              <value type="string" key="01b2fe70-f6ed-11e2-9cf1-080027bcf912">fk_georeferencing_party_list1_idx</value>
......
18144 18144
              <value type="string" key="f9d23e32-1dc5-11e3-838b-410b6ef2c3ca">taxon_occurrence</value>
18145 18145
              <value type="string" key="f9d241ca-1dc5-11e3-838b-410b6ef2c3ca">id</value>
18146 18146
              <value type="string" key="f9d255c0-1dc5-11e3-838b-410b6ef2c3ca">PRIMARY</value>
18147
              <value type="string" key="fbf69d1e-a79d-11e2-a346-080027bcf912">record_unique</value>
18147
              <value type="string" key="f9d963a4-2326-11e3-a5a2-080027bcf912">table_fragment</value>
18148
              <value type="string" key="fbf69d1e-a79d-11e2-a346-080027bcf912">traceable_unique</value>
18148 18149
              <value type="string" key="fc6fbbae-f96e-11e2-9f36-080027bcf912">geoplace</value>
18149 18150
            </value>
18150 18151
            <value type="string" key="lastSyncDate"></value>
......
18233 18234
    <value type="object" struct-name="app.DocumentInfo" id="BEE3982F-55A1-4B2C-914A-CD6953803AB9" struct-checksum="0xbba780b8" key="info">
18234 18235
      <value type="string" key="author">Aaron Marcuse-Kubitza</value>
18235 18236
      <value type="string" key="caption">New Model</value>
18236
      <value type="string" key="dateChanged">2013-09-21 18:56</value>
18237
      <value type="string" key="dateChanged">2013-09-21 19:00</value>
18237 18238
      <value type="string" key="dateCreated">2012-01-19 14:06</value>
18238 18239
      <value type="string" key="description"></value>
18239 18240
      <value type="string" key="project">Name of the project</value>
schemas/VegCore/VegCore.my.sql
702 702
CREATE TABLE `record` (
703 703
  `id` varbinary(767) NOT NULL,
704 704
  `dataset` varbinary(767) NOT NULL,
705
  `dataset_record_id` varbinary(767) NOT NULL,
705
  `id_within_dataset` varbinary(767) NOT NULL,
706 706
  PRIMARY KEY (`id`),
707
  UNIQUE KEY `record_unique` (`dataset`,`dataset_record_id`),
707
  UNIQUE KEY `record_unique` (`dataset`,`id_within_dataset`),
708 708
  KEY `fk_record_source1_idx` (`dataset`),
709 709
  CONSTRAINT `fk_record_source10` FOREIGN KEY (`dataset`) REFERENCES `dataset` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
710 710
  CONSTRAINT `fk_record_source2` FOREIGN KEY (`id`) REFERENCES `source` (`id`) ON DELETE CASCADE ON UPDATE CASCADE

Also available in: Unified diff