From 00f3b15204f6a64eb38884eeb83d9127472bbf7b Mon Sep 17 00:00:00 2001 From: leosw Date: Mon, 11 Jun 2018 20:56:59 +0200 Subject: [PATCH] Update DB model --- _ressources/database_drawing | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_ressources/database_drawing b/_ressources/database_drawing index 171ff90..3012097 100755 --- a/_ressources/database_drawing +++ b/_ressources/database_drawing @@ -33,21 +33,21 @@ update_date timestamp author int4 FK >- users.id is_public INDEX boolean is_archive INDEX boolean -type INDEX poi_type_enum # basic_hut; wilderness_hut; alpine_hut; hostel; bivouac; campsite +type INDEX poi_type_enum # basic_hut; wilderness_hut; alpine_hut; halt; bivouac; campsite is_destroyed INDEX boolean name varchar(255) alt_names NULL varchar(255) source NULL varchar(3) FK >- poi_sources.id source_id NULL varchar(255) position geometry # Contains elevation data -parameters jsonb +parameters NULL jsonb poi_localised - id PK int4 -poi UNIQUE int4 FK >- pois.id # The unique constraint is done with locale -locale UNIQUE varchar(32) FK >- locales.name # The unique constraint is done with poi -key INDEX poi_key_enum # description; access +poi UNIQUE int4 FK >- pois.id # The unique constraint is done with locale, key +locale UNIQUE varchar(32) FK >- locales.name # The unique constraint is done with poi, key +key UNIQUE poi_key_enum # description; access # The unique constraint is done with poi, locale value text poi_sources