Ressources to root
This commit is contained in:
104
_ressources/logo.svg
Executable file
104
_ressources/logo.svg
Executable file
@@ -0,0 +1,104 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="154"
|
||||
height="44"
|
||||
viewBox="0 0 154 44"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="0.91 r13725"
|
||||
sodipodi:docname="logo3.svg">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="2.8"
|
||||
inkscape:cx="56.867628"
|
||||
inkscape:cy="65.836934"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="745"
|
||||
inkscape:window-x="1280"
|
||||
inkscape:window-y="23"
|
||||
inkscape:window-maximized="1"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Calque 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(2.2888184e-7,-1008.3622)">
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="text4136"
|
||||
transform="matrix(1.1379801,0,0,1.1379801,3.1581138e-8,-151.20504)">
|
||||
<path
|
||||
d="m 1.3999998,1024.6822 -1.40000002888184,0 0,27.28 1.40000002888184,0 0,-27.28 z m 13.9200002,0 -1.68,0 -12.1200002,12.6 12.7200002,14.68 1.72,0 -12.6800002,-14.68 12.0400002,-12.6 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#ffffff;fill-opacity:1"
|
||||
id="path4186"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 53.246875,1037.4822 c 3,-0.52 4.92,-2.44 4.92,-6.04 0,-4.56 -3.44,-6.76 -9.32,-6.76 l -5.8,0 0,27.28 7.36,0 c 5.76,0 9.12,-2.64 9.12,-7.44 0,-4.76 -2.88,-6.84 -6.28,-7.04 z m -4.24,-11.52 c 4.96,0 7.72,1.68 7.72,5.52 0,3.4 -2.32,5.48 -5.8,5.48 l -6.48,0 0,-11 4.56,0 z m 1.44,24.72 -6,0 0,-12.52 6.68,0 c 4.04,0 6.96,2 6.96,6.36 0,4.16 -2.88,6.16 -7.64,6.16 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#ffffff;fill-opacity:1"
|
||||
id="path4190"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 105.32312,1024.6822 -1.36,0 0,17.8 c 0,3.64 0.08,6.36 0.16,7.92 l -14.159995,-25.72 -1.76,0 0,27.28 1.36,0 0,-17.2 c 0,-4.8 -0.08,-6.92 -0.2,-8.52 l 14.199995,25.72 1.76,0 0,-27.28 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#ffffff;fill-opacity:1"
|
||||
id="path4194"
|
||||
inkscape:connector-curvature="0" />
|
||||
<path
|
||||
d="m 123.80562,1024.2422 c -6.4,0 -10.84,5.12 -10.84,14.16 0,9 4.4,13.96 10.84,13.96 6.68,0 10.84,-5.12 10.84,-14 0,-9.24 -4.36,-14.12 -10.84,-14.12 z m 0,1.32 c 5.64,0 9.4,4.2 9.4,12.8 0,8.4 -3.56,12.72 -9.4,12.72 -5.52,0 -9.4,-4.32 -9.4,-12.68 0,-8.56 3.84,-12.84 9.4,-12.84 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#ffffff;fill-opacity:1"
|
||||
id="path4196"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="text4136-1"
|
||||
transform="matrix(1.1379801,0,0,1.1379801,-327.34608,665.85293)">
|
||||
<path
|
||||
d="m 327.11423,334.16668 -10.09786,-27.23536 -10.34214,27.23536 z m -18.81955,-1.19739 5.88391,-15.62044 4.87414,-1.40926 6.40569,16.95891 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#ffffff;fill-opacity:1"
|
||||
id="path4159"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccc" />
|
||||
<path
|
||||
d="m 372.70688,333.82719 -0.008,-1.24916 -1.36672,-0.006 -8.73903,-23.76226 0.83839,-1.55306 -0.73436,-0.62958 -0.82296,1.22506 -0.69448,-1.17371 -0.71601,0.66008 0.84437,1.49829 -9.42882,23.88393 -1.23813,0.005 0.0188,1.14693 z m -17.50259,-1.13043 6.57828,-15.51649 6.1435,15.46802 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';letter-spacing:0px;word-spacing:0px;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="path4159-4"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccccccccccccc" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.7 KiB |
BIN
_ressources/logo_carre.png
Normal file
BIN
_ressources/logo_carre.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
85
_ressources/logo_carre.svg
Normal file
85
_ressources/logo_carre.svg
Normal file
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
width="44"
|
||||
height="44"
|
||||
viewBox="0 0 44 44"
|
||||
id="svg2"
|
||||
version="1.1"
|
||||
inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
|
||||
sodipodi:docname="logo_carre.svg"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<defs
|
||||
id="defs4" />
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="3.959798"
|
||||
inkscape:cx="17.172593"
|
||||
inkscape:cy="21.465742"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
units="px"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="702"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="1"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:showpageshadow="2"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#d1d1d1" />
|
||||
<metadata
|
||||
id="metadata7">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
inkscape:label="Calque 1"
|
||||
inkscape:groupmode="layer"
|
||||
id="layer1"
|
||||
transform="translate(2.2888184e-7,-1008.3622)">
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="text4136"
|
||||
transform="matrix(1.1379801,0,0,1.1379801,3.1581138e-8,-151.20504)" />
|
||||
<g
|
||||
style="font-style:normal;font-weight:normal;font-size:40px;line-height:125%;font-family:Sans;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="text4136-1"
|
||||
transform="matrix(1.1379801,0,0,1.1379801,-348.56109,665.85293)">
|
||||
<path
|
||||
d="m 327.11423,334.16668 -10.09786,-27.23536 -10.34214,27.23536 z m -18.81955,-1.26818 5.88391,-15.54965 4.87414,-1.40926 6.40569,16.95891 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';fill:#000000;fill-opacity:1"
|
||||
id="path4159"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="ccccccccc" />
|
||||
<path
|
||||
d="m 344.58688,334.12116 -0.008,-1.22266 h -1.36672 l -8.73903,-23.79476 0.83839,-1.55306 -0.73436,-0.62958 -0.82296,1.22506 -0.69448,-1.17371 -0.71601,0.66008 0.84437,1.49829 -9.42882,23.76768 h -1.23813 l 0.0188,1.26818 z m -17.50259,-1.22266 6.57828,-15.42426 6.1435,15.42426 z"
|
||||
style="font-style:normal;font-variant:normal;font-weight:200;font-stretch:normal;font-size:40px;line-height:125%;font-family:'Fira Sans';-inkscape-font-specification:'Fira Sans Ultra-Light';letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||
id="path4159-4"
|
||||
inkscape:connector-curvature="0"
|
||||
sodipodi:nodetypes="cccccccccccccccccc" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 3.7 KiB |
BIN
_ressources/logo_carre_blanc.png
Normal file
BIN
_ressources/logo_carre_blanc.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 20 KiB |
BIN
_ressources/logo_carre_noir.png
Normal file
BIN
_ressources/logo_carre_noir.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
741
_ressources/sql_skeleton.sql
Executable file
741
_ressources/sql_skeleton.sql
Executable file
@@ -0,0 +1,741 @@
|
||||
--
|
||||
-- PostgreSQL database dump
|
||||
--
|
||||
|
||||
-- Dumped from database version 18.1
|
||||
-- Dumped by pg_dump version 18.1
|
||||
|
||||
SET statement_timeout = 0;
|
||||
SET lock_timeout = 0;
|
||||
SET idle_in_transaction_session_timeout = 0;
|
||||
SET transaction_timeout = 0;
|
||||
SET client_encoding = 'UTF8';
|
||||
SET standard_conforming_strings = on;
|
||||
SELECT pg_catalog.set_config('search_path', '', false);
|
||||
SET check_function_bodies = false;
|
||||
SET xmloption = content;
|
||||
SET client_min_messages = warning;
|
||||
SET row_security = off;
|
||||
|
||||
--
|
||||
-- Name: public; Type: SCHEMA; Schema: -; Owner: postgres
|
||||
--
|
||||
|
||||
-- *not* creating schema, since initdb creates it
|
||||
|
||||
|
||||
ALTER SCHEMA public OWNER TO postgres;
|
||||
|
||||
--
|
||||
-- Name: postgis; Type: EXTENSION; Schema: -; Owner: -
|
||||
--
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS postgis WITH SCHEMA public;
|
||||
|
||||
|
||||
--
|
||||
-- Name: EXTENSION postgis; Type: COMMENT; Schema: -; Owner:
|
||||
--
|
||||
|
||||
COMMENT ON EXTENSION postgis IS 'PostGIS geometry and geography spatial types and functions';
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_type_enum; Type: TYPE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TYPE public.content_type_enum AS ENUM (
|
||||
'wiki',
|
||||
'blog',
|
||||
'forum',
|
||||
'poi'
|
||||
);
|
||||
|
||||
|
||||
ALTER TYPE public.content_type_enum OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_type_enum; Type: TYPE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TYPE public.poi_type_enum AS ENUM (
|
||||
'basic_hut',
|
||||
'wilderness_hut',
|
||||
'alpine_hut',
|
||||
'halt',
|
||||
'bivouac',
|
||||
'campsite'
|
||||
);
|
||||
|
||||
|
||||
ALTER TYPE public.poi_type_enum OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: user_rank_enum; Type: TYPE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TYPE public.user_rank_enum AS ENUM (
|
||||
'blocked',
|
||||
'registered',
|
||||
'premium',
|
||||
'moderator',
|
||||
'administrator',
|
||||
'visitor'
|
||||
);
|
||||
|
||||
|
||||
ALTER TYPE public.user_rank_enum OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_comments_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.content_comments_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.content_comments_sequence OWNER TO kabano;
|
||||
|
||||
SET default_tablespace = '';
|
||||
|
||||
SET default_table_access_method = heap;
|
||||
|
||||
--
|
||||
-- Name: content_comments; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.content_comments (
|
||||
id integer DEFAULT nextval('public.content_comments_sequence'::regclass) NOT NULL,
|
||||
version integer,
|
||||
creation_date timestamp without time zone,
|
||||
update_date timestamp without time zone,
|
||||
author integer,
|
||||
is_public boolean,
|
||||
is_archive boolean,
|
||||
content integer,
|
||||
comment text,
|
||||
locale character varying(32)
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.content_comments OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_contributors_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.content_contributors_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.content_contributors_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_contributors; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.content_contributors (
|
||||
id integer DEFAULT nextval('public.content_contributors_sequence'::regclass) NOT NULL,
|
||||
content integer,
|
||||
contributor integer
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.content_contributors OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_locales_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.content_locales_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.content_locales_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_locales; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.content_locales (
|
||||
id integer DEFAULT nextval('public.content_locales_sequence'::regclass) NOT NULL,
|
||||
content_id integer NOT NULL,
|
||||
locale character varying(32) NOT NULL,
|
||||
author integer NOT NULL
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.content_locales OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_version_poi_specifications; Type: TABLE; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
CREATE TABLE public.content_version_poi_specifications (
|
||||
content_version_id integer CONSTRAINT content_version_position_content_version_id_not_null NOT NULL,
|
||||
geom public.geometry(PointZ,4326) CONSTRAINT content_version_position_geom_not_null NOT NULL,
|
||||
source_id character varying(3),
|
||||
remote_source_id character varying(255)
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.content_version_poi_specifications OWNER TO postgres;
|
||||
|
||||
--
|
||||
-- Name: content_versions_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.content_versions_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.content_versions_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: content_versions; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.content_versions (
|
||||
id integer DEFAULT nextval('public.content_versions_sequence'::regclass) NOT NULL,
|
||||
version integer DEFAULT 0 NOT NULL,
|
||||
update_date timestamp without time zone NOT NULL,
|
||||
is_archive boolean DEFAULT false NOT NULL,
|
||||
name character varying(255),
|
||||
locale_id integer NOT NULL,
|
||||
content jsonb,
|
||||
CONSTRAINT content_json_is_object CHECK ((jsonb_typeof(content) = 'object'::text))
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.content_versions OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: contents_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.contents_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.contents_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: contents; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.contents (
|
||||
id integer DEFAULT nextval('public.contents_sequence'::regclass) NOT NULL,
|
||||
permalink character varying(255) NOT NULL,
|
||||
creation_date timestamp without time zone NOT NULL,
|
||||
is_public boolean DEFAULT true NOT NULL,
|
||||
is_commentable boolean DEFAULT true NOT NULL,
|
||||
type public.content_type_enum NOT NULL,
|
||||
poi_type public.poi_type_enum,
|
||||
CONSTRAINT contents_subtype_required_for_poi CHECK (((type <> 'poi'::public.content_type_enum) OR (poi_type IS NOT NULL)))
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.contents OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: locales; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.locales (
|
||||
name character varying(32) NOT NULL,
|
||||
display_name character varying(255) NOT NULL,
|
||||
flag_name character varying(32)
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.locales OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_comments_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.poi_comments_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.poi_comments_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_contributors_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.poi_contributors_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.poi_contributors_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_locales_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.poi_locales_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.poi_locales_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_sources_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.poi_sources_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.poi_sources_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: poi_versions_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.poi_versions_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.poi_versions_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: pois_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.pois_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.pois_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: sources; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.sources (
|
||||
id character varying(3) NOT NULL,
|
||||
display_name character varying(255) NOT NULL,
|
||||
icon_name character varying(255),
|
||||
website character varying(255),
|
||||
license_name character varying(255),
|
||||
license_url character varying(255)
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.sources OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: users_id_sequence; Type: SEQUENCE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE SEQUENCE public.users_id_sequence
|
||||
START WITH 1
|
||||
INCREMENT BY 1
|
||||
NO MINVALUE
|
||||
NO MAXVALUE
|
||||
CACHE 1;
|
||||
|
||||
|
||||
ALTER SEQUENCE public.users_id_sequence OWNER TO kabano;
|
||||
|
||||
--
|
||||
-- Name: users; Type: TABLE; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE TABLE public.users (
|
||||
id integer DEFAULT nextval('public.users_id_sequence'::regclass) NOT NULL,
|
||||
name character varying(255) NOT NULL,
|
||||
version integer DEFAULT 0 NOT NULL,
|
||||
email character varying(255) NOT NULL,
|
||||
password character varying(255) NOT NULL,
|
||||
website character varying(255),
|
||||
is_avatar_present boolean NOT NULL,
|
||||
is_archive boolean NOT NULL,
|
||||
rank public.user_rank_enum NOT NULL,
|
||||
locale character varying(32) NOT NULL,
|
||||
timezone character varying(32) NOT NULL,
|
||||
visit_date timestamp without time zone NOT NULL,
|
||||
register_date timestamp without time zone NOT NULL
|
||||
);
|
||||
|
||||
|
||||
ALTER TABLE public.users OWNER TO kabano;
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: locales; Type: TABLE DATA; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
COPY public.locales (name, display_name, flag_name) FROM stdin;
|
||||
fr_FR Français fr
|
||||
\.
|
||||
|
||||
|
||||
--
|
||||
-- Data for Name: sources; Type: TABLE DATA; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
COPY public.sources (id, display_name, icon_name, website, license_name, license_url) FROM stdin;
|
||||
kab Kabano kabano kabano.org \N \N
|
||||
\.
|
||||
|
||||
--
|
||||
-- Name: content_comments content_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_comments
|
||||
ADD CONSTRAINT content_comments_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_contributors content_contributors_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_contributors
|
||||
ADD CONSTRAINT content_contributors_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_contributors content_contributors_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_contributors
|
||||
ADD CONSTRAINT content_contributors_unique UNIQUE (content, contributor);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_locales content_locales_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_locales
|
||||
ADD CONSTRAINT content_locales_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_locales content_locales_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_locales
|
||||
ADD CONSTRAINT content_locales_unique UNIQUE (content_id, locale);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_version_poi_specifications content_version_position_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_version_poi_specifications
|
||||
ADD CONSTRAINT content_version_position_pkey PRIMARY KEY (content_version_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_versions content_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_versions
|
||||
ADD CONSTRAINT content_versions_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_versions content_versions_version_locale_key; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_versions
|
||||
ADD CONSTRAINT content_versions_version_locale_key UNIQUE (version, locale_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contents contents_permalink_type_key; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.contents
|
||||
ADD CONSTRAINT contents_permalink_type_key UNIQUE (permalink, type);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contents contents_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.contents
|
||||
ADD CONSTRAINT contents_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: locales locales_display_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.locales
|
||||
ADD CONSTRAINT locales_display_name_unique UNIQUE (display_name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: locales locales_flag_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.locales
|
||||
ADD CONSTRAINT locales_flag_name_unique UNIQUE (flag_name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: locales locales_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.locales
|
||||
ADD CONSTRAINT locales_pkey PRIMARY KEY (name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: sources sources_display_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.sources
|
||||
ADD CONSTRAINT sources_display_name_unique UNIQUE (display_name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: sources sources_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.sources
|
||||
ADD CONSTRAINT sources_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: users users_email_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.users
|
||||
ADD CONSTRAINT users_email_unique UNIQUE (email);
|
||||
|
||||
|
||||
--
|
||||
-- Name: users users_name_unique; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.users
|
||||
ADD CONSTRAINT users_name_unique UNIQUE (name, version);
|
||||
|
||||
|
||||
--
|
||||
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.users
|
||||
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_comments_is_archive_index; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX content_comments_is_archive_index ON public.content_comments USING btree (is_archive);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_comments_is_public_index; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX content_comments_is_public_index ON public.content_comments USING btree (is_public);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_version_position_gix; Type: INDEX; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
CREATE INDEX content_version_position_gix ON public.content_version_poi_specifications USING gist (geom);
|
||||
|
||||
|
||||
--
|
||||
-- Name: contents_is_public_index; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX contents_is_public_index ON public.contents USING btree (is_public);
|
||||
|
||||
|
||||
--
|
||||
-- Name: fki_content_contributors_content_fkey; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX fki_content_contributors_content_fkey ON public.content_contributors USING btree (content);
|
||||
|
||||
|
||||
--
|
||||
-- Name: fki_content_contributors_contributor_fkey; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX fki_content_contributors_contributor_fkey ON public.content_contributors USING btree (contributor);
|
||||
|
||||
|
||||
--
|
||||
-- Name: users_is_archive_index; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX users_is_archive_index ON public.users USING btree (is_archive);
|
||||
|
||||
|
||||
--
|
||||
-- Name: users_register_date_index; Type: INDEX; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
CREATE INDEX users_register_date_index ON public.users USING btree (register_date);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_comments content_comments_author_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_comments
|
||||
ADD CONSTRAINT content_comments_author_fkey FOREIGN KEY (author) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_comments content_comments_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_comments
|
||||
ADD CONSTRAINT content_comments_content_fkey FOREIGN KEY (content) REFERENCES public.contents(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_comments content_comments_locale_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_comments
|
||||
ADD CONSTRAINT content_comments_locale_fkey FOREIGN KEY (locale) REFERENCES public.locales(name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_contributors content_contributors_content_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_contributors
|
||||
ADD CONSTRAINT content_contributors_content_fkey FOREIGN KEY (content) REFERENCES public.content_locales(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_contributors content_contributors_contributor_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_contributors
|
||||
ADD CONSTRAINT content_contributors_contributor_fkey FOREIGN KEY (contributor) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_locales content_locales_author; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_locales
|
||||
ADD CONSTRAINT content_locales_author FOREIGN KEY (author) REFERENCES public.users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_locales content_locales_content; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_locales
|
||||
ADD CONSTRAINT content_locales_content FOREIGN KEY (content_id) REFERENCES public.contents(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_locales content_locales_locale; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_locales
|
||||
ADD CONSTRAINT content_locales_locale FOREIGN KEY (locale) REFERENCES public.locales(name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_version_poi_specifications content_version_position_content_version_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_version_poi_specifications
|
||||
ADD CONSTRAINT content_version_position_content_version_id_fkey FOREIGN KEY (content_version_id) REFERENCES public.content_versions(id) ON DELETE CASCADE;
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_versions content_versions_locale; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_versions
|
||||
ADD CONSTRAINT content_versions_locale FOREIGN KEY (locale_id) REFERENCES public.content_locales(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: content_version_poi_specifications fk_content_version_poi_specifications_source; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.content_version_poi_specifications
|
||||
ADD CONSTRAINT fk_content_version_poi_specifications_source FOREIGN KEY (source_id) REFERENCES public.sources(id) ON UPDATE CASCADE ON DELETE SET NULL;
|
||||
|
||||
|
||||
--
|
||||
-- Name: users users_locale_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kabano
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.users
|
||||
ADD CONSTRAINT users_locale_fkey FOREIGN KEY (locale) REFERENCES public.locales(name);
|
||||
|
||||
|
||||
--
|
||||
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: postgres
|
||||
--
|
||||
|
||||
REVOKE USAGE ON SCHEMA public FROM PUBLIC;
|
||||
GRANT ALL ON SCHEMA public TO PUBLIC;
|
||||
|
||||
|
||||
--
|
||||
-- Name: TABLE content_version_poi_specifications; Type: ACL; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
GRANT ALL ON TABLE public.content_version_poi_specifications TO kabano;
|
||||
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
Reference in New Issue
Block a user