Add real-time inputs table to DB

This commit is contained in:
D. Berge
2020-08-31 14:31:12 +02:00
parent e4803da149
commit 2cf9c36b2d

View File

@@ -2,8 +2,8 @@
-- PostgreSQL database dump
--
-- Dumped from database version 11.7
-- Dumped by pg_dump version 12.2
-- Dumped from database version 12.4
-- Dumped by pg_dump version 12.4
SET statement_timeout = 0;
SET lock_timeout = 0;
@@ -159,6 +159,8 @@ ALTER PROCEDURE public.set_survey(project_id text) OWNER TO postgres;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: projects; Type: TABLE; Schema: public; Owner: postgres
--
@@ -172,6 +174,19 @@ CREATE TABLE public.projects (
ALTER TABLE public.projects OWNER TO postgres;
--
-- Name: real_time_inputs; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.real_time_inputs (
tstamp timestamp with time zone NOT NULL,
geometry public.geometry(Point,4326),
meta jsonb
);
ALTER TABLE public.real_time_inputs OWNER TO postgres;
--
-- Name: projects projects_name_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
@@ -196,6 +211,13 @@ ALTER TABLE ONLY public.projects
ADD CONSTRAINT projects_schema_key UNIQUE (schema);
--
-- Name: tstamp_idx; Type: INDEX; Schema: public; Owner: postgres
--
CREATE INDEX tstamp_idx ON public.real_time_inputs USING btree (tstamp DESC);
--
-- PostgreSQL database dump complete
--