Browse Source

Add constraints on poi tables

master
Léo Serre 1 year ago
parent
commit
b5fa4fd21a
2 changed files with 706 additions and 960 deletions
  1. +7
    -1
      _ressources/db_model.dbm
  2. +699
    -959
      _ressources/sql_skeleton.sql

+ 7
- 1
_ressources/db_model.dbm View File

@@ -3,7 +3,7 @@
CAUTION: Do not modify this file unless you know what you are doing.
Unexpected results may occur if the code is changed deliberately.
-->
<dbmodel pgmodeler-ver="0.9.2-alpha1" last-position="171,1067" last-zoom="0.9" max-obj-count="24"
<dbmodel pgmodeler-ver="0.9.2-alpha1" last-position="0,998" last-zoom="0.9" max-obj-count="24"
default-owner="postgres">
<role name="kabano"
inherit="true"
@@ -550,6 +550,12 @@ CAUTION: Do not modify this file unless you know what you are doing.
<constraint name="pois_pkey" type="pk-constr" table="public.pois">
<columns names="id" ref-type="src-columns"/>
</constraint>
<constraint name="pois_permalink_key" type="uq-constr" table="public.pois">
<columns names="permalink" ref-type="src-columns"/>
</constraint>
<constraint name="pois_position_type_key" type="uq-constr" table="public.pois">
<columns names="position,type" ref-type="src-columns"/>
</constraint>
</table>

<table name="poi_versions" layer="0" collapse-mode="2" max-obj-count="12">

+ 699
- 959
_ressources/sql_skeleton.sql
File diff suppressed because it is too large
View File


Loading…
Cancel
Save