---
--- Name: gist_int8_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_int8_ops USING gist;
-
-
---
--- Name: gist_int8_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_int8_ops
- DEFAULT FOR TYPE bigint USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(bigint,bigint) ,
- OPERATOR 2 <=(bigint,bigint) ,
- OPERATOR 3 =(bigint,bigint) ,
- OPERATOR 4 >=(bigint,bigint) ,
- OPERATOR 5 >(bigint,bigint) ,
- FUNCTION 1 gbt_int8_consistent(internal,bigint,smallint,oid,internal) ,
- FUNCTION 2 gbt_int8_union(bytea,internal) ,
- FUNCTION 3 gbt_int8_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_int8_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_int8_picksplit(internal,internal) ,
- FUNCTION 7 gbt_int8_same(internal,internal,internal);
-
-
---
--- Name: gist_interval_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_interval_ops USING gist;
-
-
---
--- Name: gist_interval_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_interval_ops
- DEFAULT FOR TYPE interval USING gist AS
- STORAGE gbtreekey32 ,
- OPERATOR 1 <(interval,interval) ,
- OPERATOR 2 <=(interval,interval) ,
- OPERATOR 3 =(interval,interval) ,
- OPERATOR 4 >=(interval,interval) ,
- OPERATOR 5 >(interval,interval) ,
- FUNCTION 1 gbt_intv_consistent(internal,interval,smallint,oid,internal) ,
- FUNCTION 2 gbt_intv_union(bytea,internal) ,
- FUNCTION 3 gbt_intv_compress(internal) ,
- FUNCTION 4 gbt_intv_decompress(internal) ,
- FUNCTION 5 gbt_intv_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_intv_picksplit(internal,internal) ,
- FUNCTION 7 gbt_intv_same(internal,internal,internal);
-
-
---
--- Name: gist_macaddr_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_macaddr_ops USING gist;
-
-
---
--- Name: gist_macaddr_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_macaddr_ops
- DEFAULT FOR TYPE macaddr USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(macaddr,macaddr) ,
- OPERATOR 2 <=(macaddr,macaddr) ,
- OPERATOR 3 =(macaddr,macaddr) ,
- OPERATOR 4 >=(macaddr,macaddr) ,
- OPERATOR 5 >(macaddr,macaddr) ,
- FUNCTION 1 gbt_macad_consistent(internal,macaddr,smallint,oid,internal) ,
- FUNCTION 2 gbt_macad_union(bytea,internal) ,
- FUNCTION 3 gbt_macad_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_macad_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_macad_picksplit(internal,internal) ,
- FUNCTION 7 gbt_macad_same(internal,internal,internal);
-
-
---
--- Name: gist_numeric_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_numeric_ops USING gist;
-
-
---
--- Name: gist_numeric_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_numeric_ops
- DEFAULT FOR TYPE numeric USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(numeric,numeric) ,
- OPERATOR 2 <=(numeric,numeric) ,
- OPERATOR 3 =(numeric,numeric) ,
- OPERATOR 4 >=(numeric,numeric) ,
- OPERATOR 5 >(numeric,numeric) ,
- FUNCTION 1 gbt_numeric_consistent(internal,numeric,smallint,oid,internal) ,
- FUNCTION 2 gbt_numeric_union(bytea,internal) ,
- FUNCTION 3 gbt_numeric_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_numeric_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_numeric_picksplit(internal,internal) ,
- FUNCTION 7 gbt_numeric_same(internal,internal,internal);
-
-
---
--- Name: gist_oid_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_oid_ops USING gist;
-
-
---
--- Name: gist_oid_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_oid_ops
- DEFAULT FOR TYPE oid USING gist AS
- STORAGE gbtreekey8 ,
- OPERATOR 1 <(oid,oid) ,
- OPERATOR 2 <=(oid,oid) ,
- OPERATOR 3 =(oid,oid) ,
- OPERATOR 4 >=(oid,oid) ,
- OPERATOR 5 >(oid,oid) ,
- FUNCTION 1 gbt_oid_consistent(internal,oid,smallint,oid,internal) ,
- FUNCTION 2 gbt_oid_union(bytea,internal) ,
- FUNCTION 3 gbt_oid_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_oid_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_oid_picksplit(internal,internal) ,
- FUNCTION 7 gbt_oid_same(internal,internal,internal);
-
-
---
--- Name: gist_text_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_text_ops USING gist;
-
-
---
--- Name: gist_text_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_text_ops
- DEFAULT FOR TYPE text USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(text,text) ,
- OPERATOR 2 <=(text,text) ,
- OPERATOR 3 =(text,text) ,
- OPERATOR 4 >=(text,text) ,
- OPERATOR 5 >(text,text) ,
- FUNCTION 1 gbt_text_consistent(internal,text,smallint,oid,internal) ,
- FUNCTION 2 gbt_text_union(bytea,internal) ,
- FUNCTION 3 gbt_text_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_text_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_text_picksplit(internal,internal) ,
- FUNCTION 7 gbt_text_same(internal,internal,internal);
-
-
---
--- Name: gist_time_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_time_ops USING gist;
-
-
---
--- Name: gist_time_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_time_ops
- DEFAULT FOR TYPE time without time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(time without time zone,time without time zone) ,
- OPERATOR 2 <=(time without time zone,time without time zone) ,
- OPERATOR 3 =(time without time zone,time without time zone) ,
- OPERATOR 4 >=(time without time zone,time without time zone) ,
- OPERATOR 5 >(time without time zone,time without time zone) ,
- FUNCTION 1 gbt_time_consistent(internal,time without time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_time_union(bytea,internal) ,
- FUNCTION 3 gbt_time_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_time_picksplit(internal,internal) ,
- FUNCTION 7 gbt_time_same(internal,internal,internal);
-
-
---
--- Name: gist_timestamp_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timestamp_ops USING gist;
-
-
---
--- Name: gist_timestamp_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timestamp_ops
- DEFAULT FOR TYPE timestamp without time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 2 <=(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 3 =(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 4 >=(timestamp without time zone,timestamp without time zone) ,
- OPERATOR 5 >(timestamp without time zone,timestamp without time zone) ,
- FUNCTION 1 gbt_ts_consistent(internal,timestamp without time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_ts_union(bytea,internal) ,
- FUNCTION 3 gbt_ts_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
- FUNCTION 7 gbt_ts_same(internal,internal,internal);
-
-
---
--- Name: gist_timestamptz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timestamptz_ops USING gist;
-
-
---
--- Name: gist_timestamptz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timestamptz_ops
- DEFAULT FOR TYPE timestamp with time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 2 <=(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 3 =(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 4 >=(timestamp with time zone,timestamp with time zone) ,
- OPERATOR 5 >(timestamp with time zone,timestamp with time zone) ,
- FUNCTION 1 gbt_tstz_consistent(internal,timestamp with time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_ts_union(bytea,internal) ,
- FUNCTION 3 gbt_tstz_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_ts_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_ts_picksplit(internal,internal) ,
- FUNCTION 7 gbt_ts_same(internal,internal,internal);
-
-
---
--- Name: gist_timetz_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_timetz_ops USING gist;
-
-
---
--- Name: gist_timetz_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_timetz_ops
- DEFAULT FOR TYPE time with time zone USING gist AS
- STORAGE gbtreekey16 ,
- OPERATOR 1 <(time with time zone,time with time zone) ,
- OPERATOR 2 <=(time with time zone,time with time zone) ,
- OPERATOR 3 =(time with time zone,time with time zone) ,
- OPERATOR 4 >=(time with time zone,time with time zone) ,
- OPERATOR 5 >(time with time zone,time with time zone) ,
- FUNCTION 1 gbt_timetz_consistent(internal,time with time zone,smallint,oid,internal) ,
- FUNCTION 2 gbt_time_union(bytea,internal) ,
- FUNCTION 3 gbt_timetz_compress(internal) ,
- FUNCTION 4 gbt_decompress(internal) ,
- FUNCTION 5 gbt_time_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_time_picksplit(internal,internal) ,
- FUNCTION 7 gbt_time_same(internal,internal,internal);
-
-
---
--- Name: gist_vbit_ops; Type: OPERATOR FAMILY; Schema: public; Owner: -
---
-
-CREATE OPERATOR FAMILY gist_vbit_ops USING gist;
-
-
---
--- Name: gist_vbit_ops; Type: OPERATOR CLASS; Schema: public; Owner: -
---
-
-CREATE OPERATOR CLASS gist_vbit_ops
- DEFAULT FOR TYPE bit varying USING gist AS
- STORAGE gbtreekey_var ,
- OPERATOR 1 <(bit varying,bit varying) ,
- OPERATOR 2 <=(bit varying,bit varying) ,
- OPERATOR 3 =(bit varying,bit varying) ,
- OPERATOR 4 >=(bit varying,bit varying) ,
- OPERATOR 5 >(bit varying,bit varying) ,
- FUNCTION 1 gbt_bit_consistent(internal,bit,smallint,oid,internal) ,
- FUNCTION 2 gbt_bit_union(bytea,internal) ,
- FUNCTION 3 gbt_bit_compress(internal) ,
- FUNCTION 4 gbt_var_decompress(internal) ,
- FUNCTION 5 gbt_bit_penalty(internal,internal,internal) ,
- FUNCTION 6 gbt_bit_picksplit(internal,internal) ,
- FUNCTION 7 gbt_bit_same(internal,internal,internal);
-
-
-SET default_tablespace = '';
-
-SET default_with_oids = false;
-
---
--- Name: acls; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE acls (
- id integer NOT NULL,
- address inet,
- k character varying(255) NOT NULL,
- v character varying(255),
- domain character varying(255)
-);
-
-
---
--- Name: acls_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE acls_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: acls_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE acls_id_seq OWNED BY acls.id;
-
-
---
--- Name: changeset_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE changeset_tags (
- changeset_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: changesets; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE changesets (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- created_at timestamp without time zone NOT NULL,
- min_lat integer,
- max_lat integer,
- min_lon integer,
- max_lon integer,
- closed_at timestamp without time zone NOT NULL,
- num_changes integer DEFAULT 0 NOT NULL
-);
-
-
---
--- Name: changesets_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE changesets_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: changesets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE changesets_id_seq OWNED BY changesets.id;
-
-
---
--- Name: client_applications; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE client_applications (
- id integer NOT NULL,
- name character varying(255),
- url character varying(255),
- support_url character varying(255),
- callback_url character varying(255),
- key character varying(50),
- secret character varying(50),
- user_id integer,
- created_at timestamp without time zone,
- updated_at timestamp without time zone,
- allow_read_prefs boolean DEFAULT false NOT NULL,
- allow_write_prefs boolean DEFAULT false NOT NULL,
- allow_write_diary boolean DEFAULT false NOT NULL,
- allow_write_api boolean DEFAULT false NOT NULL,
- allow_read_gpx boolean DEFAULT false NOT NULL,
- allow_write_gpx boolean DEFAULT false NOT NULL
-);
-
-
---
--- Name: client_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE client_applications_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: client_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE client_applications_id_seq OWNED BY client_applications.id;
-
-
---
--- Name: countries; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE countries (
- id integer NOT NULL,
- code character varying(2) NOT NULL,
- min_lat double precision NOT NULL,
- max_lat double precision NOT NULL,
- min_lon double precision NOT NULL,
- max_lon double precision NOT NULL
-);
-
-
---
--- Name: countries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE countries_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: countries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE countries_id_seq OWNED BY countries.id;
-
-
---
--- Name: current_node_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_node_tags (
- node_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_nodes (
- id bigint NOT NULL,
- latitude integer NOT NULL,
- longitude integer NOT NULL,
- changeset_id bigint NOT NULL,
- visible boolean NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- tile bigint NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_nodes_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_nodes_id_seq OWNED BY current_nodes.id;
-
-
---
--- Name: current_relation_members; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relation_members (
- relation_id bigint NOT NULL,
- member_type nwr_enum NOT NULL,
- member_id bigint NOT NULL,
- member_role character varying(255) NOT NULL,
- sequence_id integer DEFAULT 0 NOT NULL
-);
-
-
---
--- Name: current_relation_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relation_tags (
- relation_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_relations; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_relations (
- id bigint NOT NULL,
- changeset_id bigint NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- visible boolean NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_relations_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_relations_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_relations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_relations_id_seq OWNED BY current_relations.id;
-
-
---
--- Name: current_way_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_way_nodes (
- way_id bigint NOT NULL,
- node_id bigint NOT NULL,
- sequence_id bigint NOT NULL
-);
-
-
---
--- Name: current_way_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_way_tags (
- way_id bigint NOT NULL,
- k character varying(255) DEFAULT ''::character varying NOT NULL,
- v character varying(255) DEFAULT ''::character varying NOT NULL
-);
-
-
---
--- Name: current_ways; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE current_ways (
- id bigint NOT NULL,
- changeset_id bigint NOT NULL,
- "timestamp" timestamp without time zone NOT NULL,
- visible boolean NOT NULL,
- version bigint NOT NULL
-);
-
-
---
--- Name: current_ways_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE current_ways_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: current_ways_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE current_ways_id_seq OWNED BY current_ways.id;
-
-
---
--- Name: diary_comments; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE diary_comments (
- id bigint NOT NULL,
- diary_entry_id bigint NOT NULL,
- user_id bigint NOT NULL,
- body text NOT NULL,
- created_at timestamp without time zone NOT NULL,
- updated_at timestamp without time zone NOT NULL,
- visible boolean DEFAULT true NOT NULL
-);
-
-
---
--- Name: diary_comments_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE diary_comments_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: diary_comments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE diary_comments_id_seq OWNED BY diary_comments.id;
-
-
---
--- Name: diary_entries; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE diary_entries (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- title character varying(255) NOT NULL,
- body text NOT NULL,
- created_at timestamp without time zone NOT NULL,
- updated_at timestamp without time zone NOT NULL,
- latitude double precision,
- longitude double precision,
- language_code character varying(255) DEFAULT 'en'::character varying NOT NULL,
- visible boolean DEFAULT true NOT NULL
-);
-
-
---
--- Name: diary_entries_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE diary_entries_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: diary_entries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE diary_entries_id_seq OWNED BY diary_entries.id;
-
-
---
--- Name: friends; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE friends (
- id bigint NOT NULL,
- user_id bigint NOT NULL,
- friend_user_id bigint NOT NULL
-);
-
-
---
--- Name: friends_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE friends_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;
-
-
---
--- Name: friends_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: -
---
-
-ALTER SEQUENCE friends_id_seq OWNED BY friends.id;
-
-
---
--- Name: gps_points; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE gps_points (
- altitude double precision,
- trackid integer NOT NULL,
- latitude integer NOT NULL,
- longitude integer NOT NULL,
- gpx_id bigint NOT NULL,
- "timestamp" timestamp without time zone,
- tile bigint
-);
-
-
---
--- Name: gpx_file_tags; Type: TABLE; Schema: public; Owner: -; Tablespace:
---
-
-CREATE TABLE gpx_file_tags (
- gpx_id bigint DEFAULT 0 NOT NULL,
- tag character varying(255) NOT NULL,
- id bigint NOT NULL
-);
-
-
---
--- Name: gpx_file_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: -
---
-
-CREATE SEQUENCE gpx_file_tags_id_seq
- START WITH 1
- INCREMENT BY 1
- NO MINVALUE
- NO MAXVALUE
- CACHE 1;