Update DB model

This commit is contained in:
Léo Serre 2018-06-11 20:56:59 +02:00
parent c851f2df6a
commit 00f3b15204
1 changed files with 5 additions and 5 deletions

View File

@ -33,21 +33,21 @@ update_date timestamp
author int4 FK >- users.id author int4 FK >- users.id
is_public INDEX boolean is_public INDEX boolean
is_archive 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 is_destroyed INDEX boolean
name varchar(255) name varchar(255)
alt_names NULL varchar(255) alt_names NULL varchar(255)
source NULL varchar(3) FK >- poi_sources.id source NULL varchar(3) FK >- poi_sources.id
source_id NULL varchar(255) source_id NULL varchar(255)
position geometry # Contains elevation data position geometry # Contains elevation data
parameters jsonb parameters NULL jsonb
poi_localised poi_localised
- -
id PK int4 id PK int4
poi UNIQUE int4 FK >- pois.id # The unique constraint is done with locale 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 locale UNIQUE varchar(32) FK >- locales.name # The unique constraint is done with poi, key
key INDEX poi_key_enum # description; access key UNIQUE poi_key_enum # description; access # The unique constraint is done with poi, locale
value text value text
poi_sources poi_sources