Browse Source

current SQL for GP related tables creation

tkas 4 years ago
parent
commit
4ca64f10ea
1 changed files with 36 additions and 0 deletions
  1. 36 0
      sql_import/hicheck_db_gp.sql

+ 36 - 0
sql_import/hicheck_db_gp.sql

@@ -2,6 +2,23 @@
 -- PostgreSQL database dump
 --
 
+-- Dumped from database version 9.4.9
+-- Dumped by pg_dump version 9.4.9
+-- Started on 2016-08-17 14:06:47 CEST
+
+SET client_encoding = 'UTF8';
+
+--
+-- Name: gp_analyze; Type: TABLE; Schema: hicheck; Owner: xsvana00; Tablespace: 
+--
+
+CREATE TABLE gp_analyze (
+    nodeid bigint NOT NULL,
+    ref character varying(128),
+    geom public.geometry(Point,4326),
+    img character varying(512)
+);
+
 --
 -- Name: gp_stats; Type: TABLE; Schema: hicheck; Owner: xsvana00; Tablespace: 
 --
@@ -18,6 +35,7 @@ CREATE TABLE gp_stats (
     node_bad integer
 );
 
+
 --
 -- Name: guideposts; Type: TABLE; Schema: hicheck; Owner: xsvana00; Tablespace: 
 --
@@ -34,7 +52,24 @@ COMMENT ON COLUMN guideposts.by IS 'author of the photo';
 
 
 --
+-- Name: gp_stats_pkey; Type: CONSTRAINT; Schema: hicheck; Owner: xsvana00; Tablespace: 
 --
 
+ALTER TABLE ONLY gp_stats
+    ADD CONSTRAINT gp_stats_pkey PRIMARY KEY (id);
+
+--
+-- Name: guideposts_pkey; Type: CONSTRAINT; Schema: hicheck; Owner: xsvana00; Tablespace: 
+--
+
+ALTER TABLE ONLY guideposts
+    ADD CONSTRAINT guideposts_pkey PRIMARY KEY (id);
+
+CREATE INDEX guideposts_geom_idx ON guideposts USING gist (geom);
+
+-- Completed on 2016-08-17 14:06:48 CEST
+
+--
+-- PostgreSQL database dump complete
+--