--
-- PostgreSQL database dump
--

\restrict XTQKLfyJjEgwGyWj4y8ogFznWaICeqXkLOw7GUT2TnBjUqJHf8BrjygbLvfZun2

-- Dumped from database version 17.8 (Debian 17.8-0+deb13u1)
-- Dumped by pg_dump version 17.8 (Debian 17.8-0+deb13u1)

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;

DROP DATABASE geodata;
--
-- Name: geodata; Type: DATABASE; Schema: -; Owner: postgres
--

CREATE DATABASE geodata WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = icu LOCALE = 'sv_SE.UTF-8' ICU_LOCALE = 'sv-SE-x-icu';


ALTER DATABASE geodata OWNER TO postgres;

\unrestrict XTQKLfyJjEgwGyWj4y8ogFznWaICeqXkLOw7GUT2TnBjUqJHf8BrjygbLvfZun2
\connect geodata
\restrict XTQKLfyJjEgwGyWj4y8ogFznWaICeqXkLOw7GUT2TnBjUqJHf8BrjygbLvfZun2

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: DATABASE geodata; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON DATABASE geodata IS 'Backend PostGIS database for KlimatanalysNorr tooling';


--
-- Name: lm_topo250; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA lm_topo250;


ALTER SCHEMA lm_topo250 OWNER TO postgres;

--
-- Name: SCHEMA lm_topo250; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA lm_topo250 IS 'Lantmäteriets Topografi 250 (vektor)';


--
-- Name: lst; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA lst;


ALTER SCHEMA lst OWNER TO postgres;

--
-- Name: SCHEMA lst; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA lst IS 'Länsstyrelserna';


--
-- Name: misc; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA misc;


ALTER SCHEMA misc OWNER TO postgres;

--
-- Name: SCHEMA misc; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA misc IS 'Övriga skikt';


--
-- Name: mrr; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA mrr;


ALTER SCHEMA mrr OWNER TO postgres;

--
-- Name: SCHEMA mrr; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA mrr IS 'Mineralrättigheter och prospektering';


--
-- Name: nvk; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA nvk;


ALTER SCHEMA nvk OWNER TO postgres;

--
-- Name: SCHEMA nvk; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA nvk IS 'Naturvårdsverket';


--
-- Name: nvr; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA nvr;


ALTER SCHEMA nvr OWNER TO postgres;

--
-- Name: SCHEMA nvr; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA nvr IS 'Naturvårdsregistret';


--
-- Name: ogr_system_tables; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA ogr_system_tables;


ALTER SCHEMA ogr_system_tables OWNER TO postgres;

--
-- Name: SCHEMA ogr_system_tables; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA ogr_system_tables IS 'OGR metadata';


--
-- Name: sametinget; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA sametinget;


ALTER SCHEMA sametinget OWNER TO postgres;

--
-- Name: SCHEMA sametinget; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA sametinget IS 'Sametinget';


--
-- Name: sks; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA sks;


ALTER SCHEMA sks OWNER TO postgres;

--
-- Name: SCHEMA sks; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA sks IS 'Skogsstyrelsen';


--
-- Name: svk; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA svk;


ALTER SCHEMA svk OWNER TO postgres;

--
-- Name: SCHEMA svk; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA svk IS 'Svenska kraftnät';


--
-- Name: vbk; Type: SCHEMA; Schema: -; Owner: postgres
--

CREATE SCHEMA vbk;


ALTER SCHEMA vbk OWNER TO postgres;

--
-- Name: SCHEMA vbk; Type: COMMENT; Schema: -; Owner: postgres
--

COMMENT ON SCHEMA vbk IS 'Vindbrukskollen';


--
-- 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 'Geographic objects support for PostgreSQL';


--
-- Name: kommunyta_subdivide_func(); Type: FUNCTION; Schema: lm_topo250; Owner: geodata
--

CREATE FUNCTION lm_topo250.kommunyta_subdivide_func() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
    BEGIN
      -- Propagate changes to lm_topo250.kommunyta to lm_topo250.kommunyta_sub
      IF (TG_OP = 'DELETE' OR TG_OP = 'UPDATE') THEN
        DELETE FROM lm_topo250.kommunyta_sub WHERE kommunkod = OLD.kommunkod;
      END IF;
      IF (TG_OP = 'UPDATE' OR TG_OP = 'INSERT') THEN
        INSERT INTO lm_topo250.kommunyta_sub(kommunkod, wkb_geometry) VALUES
          (NEW.kommunkod, ST_Subdivide(NEW.wkb_geometry, 10));
      END IF;
      RETURN NULL;
    END;
  $$;


ALTER FUNCTION lm_topo250.kommunyta_subdivide_func() OWNER TO geodata;

--
-- Name: lansyta_subdivide_func(); Type: FUNCTION; Schema: lm_topo250; Owner: geodata
--

CREATE FUNCTION lm_topo250.lansyta_subdivide_func() RETURNS trigger
    LANGUAGE plpgsql
    AS $$
    BEGIN
      -- Propagate changes to lm_topo250.lansyta to lm_topo250.lansyta_sub
      IF (TG_OP = 'DELETE' OR TG_OP = 'UPDATE') THEN
        DELETE FROM lm_topo250.lansyta_sub WHERE lanskod = OLD.lanskod;
      END IF;
      IF (TG_OP = 'UPDATE' OR TG_OP = 'INSERT') THEN
        INSERT INTO lm_topo250.lansyta_sub(lanskod, wkb_geometry) VALUES
          (NEW.lanskod, ST_Subdivide(NEW.wkb_geometry, 10));
      END IF;
      RETURN NULL;
    END;
  $$;


ALTER FUNCTION lm_topo250.lansyta_subdivide_func() OWNER TO geodata;

--
-- Name: event_trigger_function_for_metadata(); Type: FUNCTION; Schema: ogr_system_tables; Owner: geodata
--

CREATE FUNCTION ogr_system_tables.event_trigger_function_for_metadata() RETURNS event_trigger
    LANGUAGE plpgsql
    AS $$
DECLARE
    obj record;
BEGIN
  IF has_schema_privilege('ogr_system_tables', 'USAGE') THEN
   IF has_table_privilege('ogr_system_tables.metadata', 'DELETE') THEN
    FOR obj IN SELECT * FROM pg_event_trigger_dropped_objects()
    LOOP
        IF obj.object_type = 'table' THEN
            DELETE FROM ogr_system_tables.metadata m WHERE m.schema_name = obj.schema_name AND m.table_name = obj.object_name;
        END IF;
    END LOOP;
   END IF;
  END IF;
END;
$$;


ALTER FUNCTION ogr_system_tables.event_trigger_function_for_metadata() OWNER TO geodata;

--
-- Name: get_counties(public.geometry); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.get_counties(public.geometry) RETURNS smallint[]
    LANGUAGE sql IMMUTABLE STRICT PARALLEL SAFE
    AS $_$
    SELECT array_agg(DISTINCT t.lanskod ORDER BY t.lanskod)
      FROM lm_topo250.lansyta_sub t
      -- Make use of spatial indices: filter out non-overlapping envelopes first.
      -- This function works for curves and points too, as the interior of a curve
      -- is the set of points between its endpoints, and the interior of a point is
      -- the point itself.  It also works for 3D input geometries (in that case the
      -- Z component is dropped).
      -- TODO we might want to check '*T*******' too (so a line exactly on a
      -- boundary segment would belong to both counties)
      WHERE t.wkb_geometry && $1 AND ST_Relate(t.wkb_geometry, $1, 'T********')
  $_$;


ALTER FUNCTION public.get_counties(public.geometry) OWNER TO postgres;

--
-- Name: get_municipalities(public.geometry); Type: FUNCTION; Schema: public; Owner: postgres
--

CREATE FUNCTION public.get_municipalities(public.geometry) RETURNS smallint[]
    LANGUAGE sql IMMUTABLE STRICT PARALLEL SAFE
    AS $_$
    SELECT array_agg(DISTINCT t.kommunkod ORDER BY t.kommunkod)
      FROM lm_topo250.kommunyta_sub t
      -- Make use of spatial indices: filter out non-overlapping envelopes first.
      -- This function works for curves and points too, as the interior of a curve
      -- is the set of points between its endpoints, and the interior of a point is
      -- the point itself.  It also works for 3D input geometries (in that case the
      -- Z component is dropped).
      -- TODO we might want to check '*T*******' too (so a line exactly on a
      -- boundary segment would belong to both municipalities)
      WHERE t.wkb_geometry && $1 AND ST_Relate(t.wkb_geometry, $1, 'T********')
  $_$;


ALTER FUNCTION public.get_municipalities(public.geometry) OWNER TO postgres;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- Name: kommunyta; Type: TABLE; Schema: lm_topo250; Owner: geodata
--

CREATE TABLE lm_topo250.kommunyta (
    ogc_fid bigint NOT NULL,
    objektidentitet uuid,
    skapad timestamp without time zone,
    kommunkod smallint NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lm_topo250.kommunyta OWNER TO geodata;

--
-- Name: TABLE kommunyta; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON TABLE lm_topo250.kommunyta IS 'Sveriges kommuner (Lantmäteriet)';


--
-- Name: COLUMN kommunyta.objektidentitet; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.kommunyta.objektidentitet IS 'Globalt unik identitet för generaliserat objekt';


--
-- Name: COLUMN kommunyta.skapad; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.kommunyta.skapad IS 'Tidpunkt när objektet ändrades';


--
-- Name: COLUMN kommunyta.kommunkod; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.kommunyta.kommunkod IS 'Fyrsiffrig kod för kommun';


--
-- Name: kommunyta_ogc_fid_seq; Type: SEQUENCE; Schema: lm_topo250; Owner: geodata
--

CREATE SEQUENCE lm_topo250.kommunyta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lm_topo250.kommunyta_ogc_fid_seq OWNER TO geodata;

--
-- Name: kommunyta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lm_topo250; Owner: geodata
--

ALTER SEQUENCE lm_topo250.kommunyta_ogc_fid_seq OWNED BY lm_topo250.kommunyta.ogc_fid;


--
-- Name: kommunyta_sub; Type: TABLE; Schema: lm_topo250; Owner: geodata
--

CREATE TABLE lm_topo250.kommunyta_sub (
    ogc_fid bigint NOT NULL,
    kommunkod smallint NOT NULL,
    wkb_geometry public.geometry(Polygon,3006)
);


ALTER TABLE lm_topo250.kommunyta_sub OWNER TO geodata;

--
-- Name: kommunyta_sub_ogc_fid_seq; Type: SEQUENCE; Schema: lm_topo250; Owner: geodata
--

CREATE SEQUENCE lm_topo250.kommunyta_sub_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lm_topo250.kommunyta_sub_ogc_fid_seq OWNER TO geodata;

--
-- Name: kommunyta_sub_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lm_topo250; Owner: geodata
--

ALTER SEQUENCE lm_topo250.kommunyta_sub_ogc_fid_seq OWNED BY lm_topo250.kommunyta_sub.ogc_fid;


--
-- Name: lansyta; Type: TABLE; Schema: lm_topo250; Owner: geodata
--

CREATE TABLE lm_topo250.lansyta (
    ogc_fid bigint NOT NULL,
    objektidentitet uuid,
    skapad timestamp without time zone,
    lanskod smallint NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lm_topo250.lansyta OWNER TO geodata;

--
-- Name: TABLE lansyta; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON TABLE lm_topo250.lansyta IS 'Sveriges län (Lantmäteriet)';


--
-- Name: COLUMN lansyta.objektidentitet; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.lansyta.objektidentitet IS 'Globalt unik identitet för generaliserat objekt';


--
-- Name: COLUMN lansyta.skapad; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.lansyta.skapad IS 'Tidpunkt när objektet ändrades';


--
-- Name: COLUMN lansyta.lanskod; Type: COMMENT; Schema: lm_topo250; Owner: geodata
--

COMMENT ON COLUMN lm_topo250.lansyta.lanskod IS 'Tvåsiffrig kod för län';


--
-- Name: lansyta_ogc_fid_seq; Type: SEQUENCE; Schema: lm_topo250; Owner: geodata
--

CREATE SEQUENCE lm_topo250.lansyta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lm_topo250.lansyta_ogc_fid_seq OWNER TO geodata;

--
-- Name: lansyta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lm_topo250; Owner: geodata
--

ALTER SEQUENCE lm_topo250.lansyta_ogc_fid_seq OWNED BY lm_topo250.lansyta.ogc_fid;


--
-- Name: lansyta_sub; Type: TABLE; Schema: lm_topo250; Owner: geodata
--

CREATE TABLE lm_topo250.lansyta_sub (
    ogc_fid bigint NOT NULL,
    lanskod smallint NOT NULL,
    wkb_geometry public.geometry(Polygon,3006)
);


ALTER TABLE lm_topo250.lansyta_sub OWNER TO geodata;

--
-- Name: lansyta_sub_ogc_fid_seq; Type: SEQUENCE; Schema: lm_topo250; Owner: geodata
--

CREATE SEQUENCE lm_topo250.lansyta_sub_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lm_topo250.lansyta_sub_ogc_fid_seq OWNER TO geodata;

--
-- Name: lansyta_sub_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lm_topo250; Owner: geodata
--

ALTER SEQUENCE lm_topo250.lansyta_sub_ogc_fid_seq OWNED BY lm_topo250.lansyta_sub.ogc_fid;


--
-- Name: pagaende_naturreservatsbildning; Type: TABLE; Schema: lst; Owner: geodata
--

CREATE TABLE lst.pagaende_naturreservatsbildning (
    ogc_fid bigint NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "GRANSJUST" date,
    "DOS_ID" integer,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lst.pagaende_naturreservatsbildning OWNER TO geodata;

--
-- Name: TABLE pagaende_naturreservatsbildning; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON TABLE lst.pagaende_naturreservatsbildning IS 'LstBD Pågående naturreservatsbildning';


--
-- Name: pagaende_naturreservatsbildning_ogc_fid_seq; Type: SEQUENCE; Schema: lst; Owner: geodata
--

CREATE SEQUENCE lst.pagaende_naturreservatsbildning_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lst.pagaende_naturreservatsbildning_ogc_fid_seq OWNER TO geodata;

--
-- Name: pagaende_naturreservatsbildning_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lst; Owner: geodata
--

ALTER SEQUENCE lst.pagaende_naturreservatsbildning_ogc_fid_seq OWNED BY lst.pagaende_naturreservatsbildning.ogc_fid;


--
-- Name: riksintresse_obruten_kust; Type: TABLE; Schema: lst; Owner: geodata
--

CREATE TABLE lst.riksintresse_obruten_kust (
    ogc_fid bigint NOT NULL,
    "ORIGINALID" character varying(16),
    "NAMN" character varying(64),
    "BESKRIVNIN" character varying(254),
    "METODBESKR" character varying(254),
    "TILLKDATUM" date,
    "REVDATUM" date,
    "ANM" character varying(254),
    "OBJTYP" character varying(254),
    "OBJEKTLANK" character varying(254),
    "REFERENS" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lst.riksintresse_obruten_kust OWNER TO geodata;

--
-- Name: TABLE riksintresse_obruten_kust; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON TABLE lst.riksintresse_obruten_kust IS 'Obruten kust (MB 4 kap 3 §)';


--
-- Name: COLUMN riksintresse_obruten_kust."ANM"; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON COLUMN lst.riksintresse_obruten_kust."ANM" IS 'Anmärkning';


--
-- Name: riksintresse_obruten_kust_ogc_fid_seq; Type: SEQUENCE; Schema: lst; Owner: geodata
--

CREATE SEQUENCE lst.riksintresse_obruten_kust_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lst.riksintresse_obruten_kust_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_obruten_kust_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lst; Owner: geodata
--

ALTER SEQUENCE lst.riksintresse_obruten_kust_ogc_fid_seq OWNED BY lst.riksintresse_obruten_kust.ogc_fid;


--
-- Name: riksintresse_obrutet_fjall; Type: TABLE; Schema: lst; Owner: geodata
--

CREATE TABLE lst.riksintresse_obrutet_fjall (
    ogc_fid bigint NOT NULL,
    "ORIGINALID" character varying(16),
    "NAMN" character varying(64) NOT NULL,
    "BESKRIVNIN" character varying(254),
    "METODBESKR" character varying(254),
    "TILLKDATUM" date,
    "REVDATUM" date,
    "OBJEKTLANK" character varying(254),
    "REFERENS" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lst.riksintresse_obrutet_fjall OWNER TO geodata;

--
-- Name: TABLE riksintresse_obrutet_fjall; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON TABLE lst.riksintresse_obrutet_fjall IS 'Obrutet fjäll (MB 4 kap 5 §)';


--
-- Name: riksintresse_obrutet_fjall_ogc_fid_seq; Type: SEQUENCE; Schema: lst; Owner: geodata
--

CREATE SEQUENCE lst.riksintresse_obrutet_fjall_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lst.riksintresse_obrutet_fjall_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_obrutet_fjall_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lst; Owner: geodata
--

ALTER SEQUENCE lst.riksintresse_obrutet_fjall_ogc_fid_seq OWNED BY lst.riksintresse_obrutet_fjall.ogc_fid;


--
-- Name: riksintresse_rorligt_friluftsliv; Type: TABLE; Schema: lst; Owner: geodata
--

CREATE TABLE lst.riksintresse_rorligt_friluftsliv (
    ogc_fid bigint NOT NULL,
    "ORIGINALID" character varying(16),
    "NAMN" character varying(64),
    "BESKRIVNIN" character varying(254),
    "METODBESKR" character varying(254),
    "TILLKDATUM" date,
    "REVDATUM" date,
    "ANM" character varying(254),
    "OBJEKTLANK" character varying(254),
    "REFERENS" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lst.riksintresse_rorligt_friluftsliv OWNER TO geodata;

--
-- Name: TABLE riksintresse_rorligt_friluftsliv; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON TABLE lst.riksintresse_rorligt_friluftsliv IS 'Rörligt friluftsliv (MB 4 kap 1 och 2 §§)';


--
-- Name: COLUMN riksintresse_rorligt_friluftsliv."ANM"; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON COLUMN lst.riksintresse_rorligt_friluftsliv."ANM" IS 'Anmärkning';


--
-- Name: riksintresse_rorligt_friluftsliv_ogc_fid_seq; Type: SEQUENCE; Schema: lst; Owner: geodata
--

CREATE SEQUENCE lst.riksintresse_rorligt_friluftsliv_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lst.riksintresse_rorligt_friluftsliv_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_rorligt_friluftsliv_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lst; Owner: geodata
--

ALTER SEQUENCE lst.riksintresse_rorligt_friluftsliv_ogc_fid_seq OWNED BY lst.riksintresse_rorligt_friluftsliv.ogc_fid;


--
-- Name: riksintresse_skyddade_vattendrag; Type: TABLE; Schema: lst; Owner: geodata
--

CREATE TABLE lst.riksintresse_skyddade_vattendrag (
    ogc_fid bigint NOT NULL,
    "ORIGINALID" character varying(16),
    "NAMN" character varying(64) NOT NULL,
    "BESKRIVNIN" character varying(254),
    "METODBESKR" character varying(254),
    "TILLKDATUM" date,
    "REVDATUM" date,
    "ANM" character varying(254),
    "DIG_SKALA" integer,
    "OBJEKTLANK" character varying(254),
    "REFERENS" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE lst.riksintresse_skyddade_vattendrag OWNER TO geodata;

--
-- Name: TABLE riksintresse_skyddade_vattendrag; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON TABLE lst.riksintresse_skyddade_vattendrag IS 'Skyddade vattendrag (MB 4 kap 6 §)';


--
-- Name: COLUMN riksintresse_skyddade_vattendrag."ANM"; Type: COMMENT; Schema: lst; Owner: geodata
--

COMMENT ON COLUMN lst.riksintresse_skyddade_vattendrag."ANM" IS 'Anmärkning';


--
-- Name: riksintresse_skyddade_vattendrag_ogc_fid_seq; Type: SEQUENCE; Schema: lst; Owner: geodata
--

CREATE SEQUENCE lst.riksintresse_skyddade_vattendrag_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE lst.riksintresse_skyddade_vattendrag_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_skyddade_vattendrag_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: lst; Owner: geodata
--

ALTER SEQUENCE lst.riksintresse_skyddade_vattendrag_ogc_fid_seq OWNED BY lst.riksintresse_skyddade_vattendrag.ogc_fid;


--
-- Name: dammar; Type: TABLE; Schema: misc; Owner: geodata
--

CREATE TABLE misc.dammar (
    ogc_fid bigint NOT NULL,
    "DammID" uuid NOT NULL,
    "LST_OBJID" character varying(32),
    "Datum" date NOT NULL,
    "DNamn" character varying(64),
    "Status" smallint NOT NULL,
    "Regleringstyp" smallint NOT NULL,
    "Konstruktion" smallint NOT NULL,
    "ByggAr" smallint,
    "DammHojd" real,
    "KronLangd" real,
    "Fiskvag" smallint NOT NULL,
    "FiskvagByggAr" smallint,
    "Fiskavledare" smallint,
    "Vandringshinder" boolean NOT NULL,
    "HARO" integer NOT NULL,
    "Vattendistrikt" character varying(10) NOT NULL,
    inrapp_lst character varying(32) NOT NULL,
    eu_cd character varying(32),
    vf_typ character varying(1),
    vy_eucd character varying(32),
    vy_vf_typ character varying(1),
    "DammanlID" character varying(64),
    "Namn" character varying(64),
    "Verksamhet" smallint,
    "OmbyggAr" smallint,
    "DG" real,
    "SG" real,
    "HojdSys" smallint,
    "MY" double precision,
    "RV" double precision,
    "Kommentar" character varying(254),
    "XX_Distance" double precision,
    wkb_geometry public.geometry(Point,3006) NOT NULL
);


ALTER TABLE misc.dammar OWNER TO geodata;

--
-- Name: TABLE dammar; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON TABLE misc.dammar IS 'Dammar';


--
-- Name: COLUMN dammar."DammID"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."DammID" IS 'Dammenhetens identitet';


--
-- Name: COLUMN dammar."LST_OBJID"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."LST_OBJID" IS 'Länsstyrelsens objektid';


--
-- Name: COLUMN dammar."Datum"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Datum" IS 'Datum för registrering av dammenheten i SVAR';


--
-- Name: COLUMN dammar."DNamn"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."DNamn" IS 'Dammenhetens namn';


--
-- Name: COLUMN dammar."ByggAr"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."ByggAr" IS 'År för första byggnation av dammenheten';


--
-- Name: COLUMN dammar."DammHojd"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."DammHojd" IS 'Dammdelens högsta höjd (m)';


--
-- Name: COLUMN dammar."KronLangd"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."KronLangd" IS 'Krönlängd (m)';


--
-- Name: COLUMN dammar."Fiskvag"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Fiskvag" IS 'Förekomst och typ av fiskväg vid dammenheten';


--
-- Name: COLUMN dammar."FiskvagByggAr"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."FiskvagByggAr" IS 'Byggår fiskväg';


--
-- Name: COLUMN dammar."Fiskavledare"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Fiskavledare" IS 'Finns fiskavledare till fiskvägen';


--
-- Name: COLUMN dammar."Vandringshinder"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Vandringshinder" IS 'Om dammenheten utgör ett vandringshinder';


--
-- Name: COLUMN dammar."HARO"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."HARO" IS 'Huvudavrinningsområdesnummer';


--
-- Name: COLUMN dammar."Vattendistrikt"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Vattendistrikt" IS 'Huvudavrinningsområdesnummer';


--
-- Name: COLUMN dammar.inrapp_lst; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar.inrapp_lst IS 'Den Länsstyrelse dammenheten är inrapporterad av';


--
-- Name: COLUMN dammar.eu_cd; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar.eu_cd IS 'Vattenförekomstidentitet';


--
-- Name: COLUMN dammar.vf_typ; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar.vf_typ IS 'Typ av vattenförekomst';


--
-- Name: COLUMN dammar.vy_eucd; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar.vy_eucd IS 'Vattenförekomstidentitet för eventuell vattenyta kopplat till dammanläggning';


--
-- Name: COLUMN dammar.vy_vf_typ; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar.vy_vf_typ IS 'Typ av vattenförekomst för eventuell vattenyta kopplat till dammanläggning';


--
-- Name: COLUMN dammar."DammanlID"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."DammanlID" IS 'Identitet för eventuell dammanläggning dammenheten är kopplad till';


--
-- Name: COLUMN dammar."Namn"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Namn" IS 'Dammanläggningens namn';


--
-- Name: COLUMN dammar."OmbyggAr"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."OmbyggAr" IS 'År för idrifttagande av anläggning i dess nuvarande skepnad';


--
-- Name: COLUMN dammar."DG"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."DG" IS 'Högsta dämningsgräns (m) enligt tillstånd';


--
-- Name: COLUMN dammar."SG"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."SG" IS 'Högsta dämningsgräns (m) enligt tillstånd';


--
-- Name: COLUMN dammar."HojdSys"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."HojdSys" IS 'Höjdsystem som DG och SG räknats i';


--
-- Name: COLUMN dammar."MY"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."MY" IS 'Magasinsyta (km²) vid angiven DG';


--
-- Name: COLUMN dammar."RV"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."RV" IS 'Reglerbar volym (milj. m³)';


--
-- Name: COLUMN dammar."Kommentar"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."Kommentar" IS 'Inrapporterade kommentarer från Länsstyrelserna';


--
-- Name: COLUMN dammar."XX_Distance"; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON COLUMN misc.dammar."XX_Distance" IS 'Distance to the closest SvK station or production dam';


--
-- Name: dammar_ogc_fid_seq; Type: SEQUENCE; Schema: misc; Owner: geodata
--

CREATE SEQUENCE misc.dammar_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE misc.dammar_ogc_fid_seq OWNER TO geodata;

--
-- Name: dammar_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: misc; Owner: geodata
--

ALTER SEQUENCE misc.dammar_ogc_fid_seq OWNED BY misc.dammar.ogc_fid;


--
-- Name: gigafactories; Type: TABLE; Schema: misc; Owner: geodata
--

CREATE TABLE misc.gigafactories (
    ogc_fid bigint NOT NULL,
    "Name" character varying(254),
    "Url" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE misc.gigafactories OWNER TO geodata;

--
-- Name: TABLE gigafactories; Type: COMMENT; Schema: misc; Owner: geodata
--

COMMENT ON TABLE misc.gigafactories IS 'Stora industrisatsningar';


--
-- Name: gigafactories_ogc_fid_seq; Type: SEQUENCE; Schema: misc; Owner: geodata
--

CREATE SEQUENCE misc.gigafactories_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE misc.gigafactories_ogc_fid_seq OWNER TO geodata;

--
-- Name: gigafactories_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: misc; Owner: geodata
--

ALTER SEQUENCE misc.gigafactories_ogc_fid_seq OWNED BY misc.gigafactories.ogc_fid;


--
-- Name: bearbetningskoncessioner_ansokta; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.bearbetningskoncessioner_ansokta (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.bearbetningskoncessioner_ansokta OWNER TO geodata;

--
-- Name: TABLE bearbetningskoncessioner_ansokta; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.bearbetningskoncessioner_ansokta IS 'Bearbetningskoncessioner, ansökta (SGU)';


--
-- Name: COLUMN bearbetningskoncessioner_ansokta.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_ansokta.name IS 'Namn på ansökt bearbetningskoncession';


--
-- Name: COLUMN bearbetningskoncessioner_ansokta.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_ansokta.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN bearbetningskoncessioner_ansokta.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_ansokta.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN bearbetningskoncessioner_ansokta.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_ansokta.mineral IS 'Ansökta koncessionsmineraler';


--
-- Name: COLUMN bearbetningskoncessioner_ansokta.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_ansokta.owners IS 'Sökanden av bearbetningskoncessionen';


--
-- Name: bearbetningskoncessioner_ansokta_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.bearbetningskoncessioner_ansokta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.bearbetningskoncessioner_ansokta_ogc_fid_seq OWNER TO geodata;

--
-- Name: bearbetningskoncessioner_ansokta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.bearbetningskoncessioner_ansokta_ogc_fid_seq OWNED BY mrr.bearbetningskoncessioner_ansokta.ogc_fid;


--
-- Name: bearbetningskoncessioner_beviljade; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.bearbetningskoncessioner_beviljade (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    dec_date date NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.bearbetningskoncessioner_beviljade OWNER TO geodata;

--
-- Name: TABLE bearbetningskoncessioner_beviljade; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.bearbetningskoncessioner_beviljade IS 'Bearbetningskoncessioner, beviljade (SGU)';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.name IS 'Namn på beviljad bearbetningskoncession';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.licenceid IS 'Tillståndsid för bearbetningskoncessionen';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.dec_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.dec_date IS 'Datum när bearbetningskoncessionen beviljades';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.validfrom IS 'Datum från och med när bearbetningskoncessionen började gälla';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.validto IS 'Sista dagen bearbetningskoncessionen gäller';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.mineral IS 'Koncessionsmineral';


--
-- Name: COLUMN bearbetningskoncessioner_beviljade.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_beviljade.owners IS 'Innehavare av bearbetningskoncessionen';


--
-- Name: bearbetningskoncessioner_beviljade_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.bearbetningskoncessioner_beviljade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.bearbetningskoncessioner_beviljade_ogc_fid_seq OWNER TO geodata;

--
-- Name: bearbetningskoncessioner_beviljade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.bearbetningskoncessioner_beviljade_ogc_fid_seq OWNED BY mrr.bearbetningskoncessioner_beviljade.ogc_fid;


--
-- Name: bearbetningskoncessioner_forfallna; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.bearbetningskoncessioner_forfallna (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    appl_date date,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.bearbetningskoncessioner_forfallna OWNER TO geodata;

--
-- Name: TABLE bearbetningskoncessioner_forfallna; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.bearbetningskoncessioner_forfallna IS 'Bearbetningskoncessioner, förfallna (SGU)';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.name IS 'Namn på förfallen bearbetningskoncession';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.mineral IS 'Koncessionsmineral';


--
-- Name: COLUMN bearbetningskoncessioner_forfallna.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.bearbetningskoncessioner_forfallna.owners IS 'Innehavare av bearbetningskoncessionen';


--
-- Name: bearbetningskoncessioner_forfallna_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.bearbetningskoncessioner_forfallna_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.bearbetningskoncessioner_forfallna_ogc_fid_seq OWNER TO geodata;

--
-- Name: bearbetningskoncessioner_forfallna_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.bearbetningskoncessioner_forfallna_ogc_fid_seq OWNED BY mrr.bearbetningskoncessioner_forfallna.ogc_fid;


--
-- Name: markanvisningar_bk_ansokta; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.markanvisningar_bk_ansokta (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    diarynr character varying(16) NOT NULL,
    conc_name character varying(254) NOT NULL,
    appl_date date NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.markanvisningar_bk_ansokta OWNER TO geodata;

--
-- Name: TABLE markanvisningar_bk_ansokta; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.markanvisningar_bk_ansokta IS 'Markanvisningar till bearbetningskoncessioner, ansökta (SGU)';


--
-- Name: COLUMN markanvisningar_bk_ansokta.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_ansokta.name IS 'Namn på ansökt markanvisning';


--
-- Name: COLUMN markanvisningar_bk_ansokta.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_ansokta.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN markanvisningar_bk_ansokta.conc_name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_ansokta.conc_name IS 'Bearbetningskoncession(er) som markanvisningen hör till';


--
-- Name: COLUMN markanvisningar_bk_ansokta.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_ansokta.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: markanvisningar_bk_ansokta_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.markanvisningar_bk_ansokta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.markanvisningar_bk_ansokta_ogc_fid_seq OWNER TO geodata;

--
-- Name: markanvisningar_bk_ansokta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.markanvisningar_bk_ansokta_ogc_fid_seq OWNED BY mrr.markanvisningar_bk_ansokta.ogc_fid;


--
-- Name: markanvisningar_bk_beviljade; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.markanvisningar_bk_beviljade (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    conc_name character varying(254) NOT NULL,
    appl_date date NOT NULL,
    dec_date date NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.markanvisningar_bk_beviljade OWNER TO geodata;

--
-- Name: TABLE markanvisningar_bk_beviljade; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.markanvisningar_bk_beviljade IS 'Markanvisningar till bearbetningskoncessioner, beviljade (SGU)';


--
-- Name: COLUMN markanvisningar_bk_beviljade.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.name IS 'Namn på beviljad markanvisning';


--
-- Name: COLUMN markanvisningar_bk_beviljade.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.licenceid IS 'Tillståndsid för markanvisningen';


--
-- Name: COLUMN markanvisningar_bk_beviljade.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN markanvisningar_bk_beviljade.conc_name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.conc_name IS 'Bearbetningskoncession(er) som markanvisningen hör till';


--
-- Name: COLUMN markanvisningar_bk_beviljade.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN markanvisningar_bk_beviljade.dec_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.markanvisningar_bk_beviljade.dec_date IS 'Datum när markanvisningen beviljades';


--
-- Name: markanvisningar_bk_beviljade_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.markanvisningar_bk_beviljade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.markanvisningar_bk_beviljade_ogc_fid_seq OWNER TO geodata;

--
-- Name: markanvisningar_bk_beviljade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.markanvisningar_bk_beviljade_ogc_fid_seq OWNED BY mrr.markanvisningar_bk_beviljade.ogc_fid;


--
-- Name: ut_diamant_ansokta; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_diamant_ansokta (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_diamant_ansokta OWNER TO geodata;

--
-- Name: TABLE ut_diamant_ansokta; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_diamant_ansokta IS 'Undersökningstillstånd - Diamant, ansökta (SGU)';


--
-- Name: COLUMN ut_diamant_ansokta.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_ansokta.name IS 'Namn på ansökt undersökningsområde';


--
-- Name: COLUMN ut_diamant_ansokta.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_ansokta.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_diamant_ansokta.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_ansokta.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN ut_diamant_ansokta.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_ansokta.mineral IS 'Koncessionsmineral som ska eftersökas';


--
-- Name: COLUMN ut_diamant_ansokta.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_ansokta.owners IS 'Sökanden av undersökningstillståndet';


--
-- Name: ut_diamant_ansokta_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_diamant_ansokta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_diamant_ansokta_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_diamant_ansokta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_diamant_ansokta_ogc_fid_seq OWNED BY mrr.ut_diamant_ansokta.ogc_fid;


--
-- Name: ut_diamant_beviljade; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_diamant_beviljade (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    dec_date date NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_diamant_beviljade OWNER TO geodata;

--
-- Name: TABLE ut_diamant_beviljade; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_diamant_beviljade IS 'Undersökningstillstånd - Diamant, beviljade (SGU)';


--
-- Name: COLUMN ut_diamant_beviljade.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.name IS 'Namn på beviljat undersökningstillstånd';


--
-- Name: COLUMN ut_diamant_beviljade.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_diamant_beviljade.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_diamant_beviljade.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN ut_diamant_beviljade.dec_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.dec_date IS 'Datum när undersökningstillståndet beviljades';


--
-- Name: COLUMN ut_diamant_beviljade.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.validfrom IS 'Datum från och med när undersökningstillståndet började gälla';


--
-- Name: COLUMN ut_diamant_beviljade.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.validto IS 'Sista dagen undersökningstillståndet gäller';


--
-- Name: COLUMN ut_diamant_beviljade.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.mineral IS 'Koncessionsmineral som eftersöks';


--
-- Name: COLUMN ut_diamant_beviljade.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_beviljade.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: ut_diamant_beviljade_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_diamant_beviljade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_diamant_beviljade_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_diamant_beviljade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_diamant_beviljade_ogc_fid_seq OWNED BY mrr.ut_diamant_beviljade.ogc_fid;


--
-- Name: ut_diamant_forbud; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_diamant_forbud (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    prospdata_url character varying(254),
    prospdata_filesize_mb real,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_diamant_forbud OWNER TO geodata;

--
-- Name: TABLE ut_diamant_forbud; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_diamant_forbud IS 'Undersökningstillstånd - Diamant, förbud (SGU)';


--
-- Name: COLUMN ut_diamant_forbud.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.name IS 'Namn på undersökningstillstånd under förbudsår';


--
-- Name: COLUMN ut_diamant_forbud.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_diamant_forbud.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_diamant_forbud.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.validfrom IS 'Datum då undersökningstillståndets förbudsår startar';


--
-- Name: COLUMN ut_diamant_forbud.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.validto IS 'Datum då undersökningstillståndets förbudsår slutar';


--
-- Name: COLUMN ut_diamant_forbud.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.mineral IS 'Koncessionsmineral som eftersökts';


--
-- Name: COLUMN ut_diamant_forbud.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: COLUMN ut_diamant_forbud.prospdata_url; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.prospdata_url IS 'Länk till nedladdning av återrapporterad prospekteringsinformation';


--
-- Name: COLUMN ut_diamant_forbud.prospdata_filesize_mb; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_diamant_forbud.prospdata_filesize_mb IS 'Filstorlek i Mb för återrapporterad prospekteringsinformation';


--
-- Name: ut_diamant_forbud_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_diamant_forbud_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_diamant_forbud_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_diamant_forbud_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_diamant_forbud_ogc_fid_seq OWNED BY mrr.ut_diamant_forbud.ogc_fid;


--
-- Name: ut_metaller_industrimineral_ansokta; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_metaller_industrimineral_ansokta (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_metaller_industrimineral_ansokta OWNER TO geodata;

--
-- Name: TABLE ut_metaller_industrimineral_ansokta; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_metaller_industrimineral_ansokta IS 'Undersökningstillstånd - Metaller och industrimineral, ansökta (SGU)';


--
-- Name: COLUMN ut_metaller_industrimineral_ansokta.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_ansokta.name IS 'Namn på ansökt undersökningsområde';


--
-- Name: COLUMN ut_metaller_industrimineral_ansokta.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_ansokta.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_metaller_industrimineral_ansokta.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_ansokta.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN ut_metaller_industrimineral_ansokta.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_ansokta.mineral IS 'Koncessionsmineral som ska eftersökas';


--
-- Name: COLUMN ut_metaller_industrimineral_ansokta.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_ansokta.owners IS 'Sökanden av undersökningstillståndet';


--
-- Name: ut_metaller_industrimineral_ansokta_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_metaller_industrimineral_ansokta_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_metaller_industrimineral_ansokta_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_metaller_industrimineral_ansokta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_metaller_industrimineral_ansokta_ogc_fid_seq OWNED BY mrr.ut_metaller_industrimineral_ansokta.ogc_fid;


--
-- Name: ut_metaller_industrimineral_beviljade; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_metaller_industrimineral_beviljade (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    appl_date date NOT NULL,
    dec_date date NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_metaller_industrimineral_beviljade OWNER TO geodata;

--
-- Name: TABLE ut_metaller_industrimineral_beviljade; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_metaller_industrimineral_beviljade IS 'Undersökningstillstånd - Metaller och industrimineral, beviljade (SGU)';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.name IS 'Namn på beviljat undersökningstillstånd';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.appl_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.appl_date IS 'Datum när ansökan inkom till Bergsstaten';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.dec_date; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.dec_date IS 'Datum när undersökningstillståndet beviljades';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.validfrom IS 'Datum från och med när undersökningstillståndet började gälla';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.validto IS 'Sista dagen undersökningstillståndet gäller';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.mineral IS 'Koncessionsmineral som eftersöks';


--
-- Name: COLUMN ut_metaller_industrimineral_beviljade.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_beviljade.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: ut_metaller_industrimineral_beviljade_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_metaller_industrimineral_beviljade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_metaller_industrimineral_beviljade_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_metaller_industrimineral_beviljade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_metaller_industrimineral_beviljade_ogc_fid_seq OWNED BY mrr.ut_metaller_industrimineral_beviljade.ogc_fid;


--
-- Name: ut_metaller_industrimineral_forbud; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_metaller_industrimineral_forbud (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(254) NOT NULL,
    prospdata_url character varying(254),
    prospdata_filesize_mb real,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_metaller_industrimineral_forbud OWNER TO geodata;

--
-- Name: TABLE ut_metaller_industrimineral_forbud; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_metaller_industrimineral_forbud IS 'Undersökningstillstånd - Metaller och industrimineral, förbud (SGU)';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.name IS 'Namn på undersökningstillstånd under förbudsår';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.validfrom IS 'Datum då undersökningstillståndets förbudsår startar';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.validto IS 'Datum då undersökningstillståndets förbudsår slutar';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.mineral IS 'Koncessionsmineral som eftersökts';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.prospdata_url; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.prospdata_url IS 'Länk till nedladdning av återrapporterad prospekteringsinformation';


--
-- Name: COLUMN ut_metaller_industrimineral_forbud.prospdata_filesize_mb; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forbud.prospdata_filesize_mb IS 'Filstorlek i Mb för återrapporterad prospekteringsinformation';


--
-- Name: ut_metaller_industrimineral_forbud_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_metaller_industrimineral_forbud_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_metaller_industrimineral_forbud_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_metaller_industrimineral_forbud_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_metaller_industrimineral_forbud_ogc_fid_seq OWNED BY mrr.ut_metaller_industrimineral_forbud.ogc_fid;


--
-- Name: ut_metaller_industrimineral_forfallna; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_metaller_industrimineral_forfallna (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(510) NOT NULL,
    prospdata_url character varying(254),
    prospdata_filesize_mb real,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_metaller_industrimineral_forfallna OWNER TO geodata;

--
-- Name: TABLE ut_metaller_industrimineral_forfallna; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_metaller_industrimineral_forfallna IS 'Undersökningstillstånd - Metaller och industrimineral, förfallna (SGU)';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.name IS 'Namn på förfallet undersökningstillstånd';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.validfrom IS 'Datum från och med när undersökningstillståndet började gälla';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.validto IS 'Sista dagen undersökningstillståndet gällde';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.mineral IS 'Koncessionsmineral som eftersökts';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.prospdata_url; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.prospdata_url IS 'Länk till nedladdning av återrapporterad prospekteringsinformation';


--
-- Name: COLUMN ut_metaller_industrimineral_forfallna.prospdata_filesize_mb; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_metaller_industrimineral_forfallna.prospdata_filesize_mb IS 'Filstorlek i Mb för återrapporterad prospekteringsinformation';


--
-- Name: ut_metaller_industrimineral_forfallna_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_metaller_industrimineral_forfallna_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_metaller_industrimineral_forfallna_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_metaller_industrimineral_forfallna_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_metaller_industrimineral_forfallna_ogc_fid_seq OWNED BY mrr.ut_metaller_industrimineral_forfallna.ogc_fid;


--
-- Name: ut_olja_gas_diamant_forfallna; Type: TABLE; Schema: mrr; Owner: geodata
--

CREATE TABLE mrr.ut_olja_gas_diamant_forfallna (
    ogc_fid bigint NOT NULL,
    name character varying(254) NOT NULL,
    licenceid character varying(16),
    diarynr character varying(16) NOT NULL,
    validfrom date NOT NULL,
    validto date NOT NULL,
    mineral character varying(254) NOT NULL,
    owners character varying(510) NOT NULL,
    prospdata_url character varying(254),
    prospdata_filesize_mb real,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE mrr.ut_olja_gas_diamant_forfallna OWNER TO geodata;

--
-- Name: TABLE ut_olja_gas_diamant_forfallna; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON TABLE mrr.ut_olja_gas_diamant_forfallna IS 'Undersökningstillstånd - Olja, gas och diamant, förfallna (SGU)';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.name; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.name IS 'Namn på förfallet undersökningstillstånd';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.licenceid; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.licenceid IS 'Tillståndsid för undersökningstillståndet';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.diarynr; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.diarynr IS 'Ärendenummer i diariet';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.validfrom; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.validfrom IS 'Datum från och med när undersökningstillståndet började gälla';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.validto; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.validto IS 'Sista dagen undersökningstillståndet gällde';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.mineral; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.mineral IS 'Koncessionsmineral som eftersökts';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.owners; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.owners IS 'Innehavare av undersökningstillståndet';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.prospdata_url; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.prospdata_url IS 'Länk till nedladdning av återrapporterad prospekteringsinformation';


--
-- Name: COLUMN ut_olja_gas_diamant_forfallna.prospdata_filesize_mb; Type: COMMENT; Schema: mrr; Owner: geodata
--

COMMENT ON COLUMN mrr.ut_olja_gas_diamant_forfallna.prospdata_filesize_mb IS 'Filstorlek i Mb för återrapporterad prospekteringsinformation';


--
-- Name: ut_olja_gas_diamant_forfallna_ogc_fid_seq; Type: SEQUENCE; Schema: mrr; Owner: geodata
--

CREATE SEQUENCE mrr.ut_olja_gas_diamant_forfallna_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE mrr.ut_olja_gas_diamant_forfallna_ogc_fid_seq OWNER TO geodata;

--
-- Name: ut_olja_gas_diamant_forfallna_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: mrr; Owner: geodata
--

ALTER SEQUENCE mrr.ut_olja_gas_diamant_forfallna_ogc_fid_seq OWNED BY mrr.ut_olja_gas_diamant_forfallna.ogc_fid;


--
-- Name: naturvardsavtal; Type: TABLE; Schema: nvk; Owner: geodata
--

CREATE TABLE nvk.naturvardsavtal (
    ogc_fid bigint NOT NULL,
    "ID" integer NOT NULL,
    "DIARIENRNV" character varying(12) NOT NULL,
    "STATUS" character varying(32) NOT NULL,
    "OBJNAMN" character varying(64),
    "FASTBET" character varying(64),
    "DATSTART" date NOT NULL,
    "DATSLUT" date NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvk.naturvardsavtal OWNER TO geodata;

--
-- Name: TABLE naturvardsavtal; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON TABLE nvk.naturvardsavtal IS 'Naturvårdsavtal (Naturvårdsverket, Länsstyrelse)';


--
-- Name: naturvardsavtal_ogc_fid_seq; Type: SEQUENCE; Schema: nvk; Owner: geodata
--

CREATE SEQUENCE nvk.naturvardsavtal_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvk.naturvardsavtal_ogc_fid_seq OWNER TO geodata;

--
-- Name: naturvardsavtal_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvk; Owner: geodata
--

ALTER SEQUENCE nvk.naturvardsavtal_ogc_fid_seq OWNED BY nvk.naturvardsavtal.ogc_fid;


--
-- Name: riksintresse_friluftsliv; Type: TABLE; Schema: nvk; Owner: geodata
--

CREATE TABLE nvk.riksintresse_friluftsliv (
    ogc_fid bigint NOT NULL,
    "SKYDD" character varying(64) NOT NULL,
    "OMRADESNR" character varying(16) NOT NULL,
    "AMNESOMR" character varying(16) NOT NULL,
    "NAMN" character varying(127) NOT NULL,
    "LANK_VARDE" character varying(127) NOT NULL,
    "BESLDATUM" date,
    "LAGRUM" character varying(64) NOT NULL,
    "ARENDENR" character varying(11) NOT NULL,
    "LANK_BESLU" character varying(127) NOT NULL,
    "AKTIVITET" character varying(127),
    "NATURTYP" character varying(127),
    "AREA_LAND_" double precision,
    "AREA_VATTE" double precision,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvk.riksintresse_friluftsliv OWNER TO geodata;

--
-- Name: TABLE riksintresse_friluftsliv; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON TABLE nvk.riksintresse_friluftsliv IS 'Riksintresse friluftsliv';


--
-- Name: COLUMN riksintresse_friluftsliv."AREA_LAND_"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.riksintresse_friluftsliv."AREA_LAND_" IS 'Areal land i hektar';


--
-- Name: COLUMN riksintresse_friluftsliv."AREA_VATTE"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.riksintresse_friluftsliv."AREA_VATTE" IS 'Areal vatten i hektar';


--
-- Name: riksintresse_friluftsliv_ogc_fid_seq; Type: SEQUENCE; Schema: nvk; Owner: geodata
--

CREATE SEQUENCE nvk.riksintresse_friluftsliv_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvk.riksintresse_friluftsliv_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_friluftsliv_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvk; Owner: geodata
--

ALTER SEQUENCE nvk.riksintresse_friluftsliv_ogc_fid_seq OWNED BY nvk.riksintresse_friluftsliv.ogc_fid;


--
-- Name: riksintresse_naturvard; Type: TABLE; Schema: nvk; Owner: geodata
--

CREATE TABLE nvk.riksintresse_naturvard (
    ogc_fid bigint NOT NULL,
    "SKYDD" character varying(64) NOT NULL,
    "AMNESOMRAD" character varying(64) NOT NULL,
    "NAMN" character varying(127) NOT NULL,
    "BESKRIVNIN" character varying(254) NOT NULL,
    "LAGRUM" character varying(64) NOT NULL,
    "BESLUTSDAT" date NOT NULL,
    "ORGINALID" character varying(16) NOT NULL,
    "RIKSID" integer NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvk.riksintresse_naturvard OWNER TO geodata;

--
-- Name: TABLE riksintresse_naturvard; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON TABLE nvk.riksintresse_naturvard IS 'Riksintresse naturvård';


--
-- Name: riksintresse_naturvard_ogc_fid_seq; Type: SEQUENCE; Schema: nvk; Owner: geodata
--

CREATE SEQUENCE nvk.riksintresse_naturvard_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvk.riksintresse_naturvard_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_naturvard_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvk; Owner: geodata
--

ALTER SEQUENCE nvk.riksintresse_naturvard_ogc_fid_seq OWNED BY nvk.riksintresse_naturvard.ogc_fid;


--
-- Name: skyddsvard_statlig_skog; Type: TABLE; Schema: nvk; Owner: geodata
--

CREATE TABLE nvk.skyddsvard_statlig_skog (
    ogc_fid bigint NOT NULL,
    "ID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "AR" smallint NOT NULL,
    "NATURGEOGR" character varying(62),
    "OBJEKTKATE" character varying(12),
    "MARKAGARE" character varying(254),
    "VARDEKARNA" double precision NOT NULL,
    "UTV_MARK" double precision NOT NULL,
    "TOTAL_AREA" double precision NOT NULL,
    "LAND" double precision NOT NULL,
    "VATTEN" double precision NOT NULL,
    "PROD_SKOG" double precision NOT NULL,
    "SKOG_O_FJG" double precision NOT NULL,
    "SKOG_N_FJG" double precision NOT NULL,
    "SKYDDSZON" double precision NOT NULL,
    "ARRO_MARK" double precision NOT NULL,
    "KRITERIER" character varying(254) NOT NULL,
    "BESKRIVN" character varying(254) NOT NULL,
    "LST_BEDOMN" character varying(254) NOT NULL,
    "KALLOR" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvk.skyddsvard_statlig_skog OWNER TO geodata;

--
-- Name: TABLE skyddsvard_statlig_skog; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON TABLE nvk.skyddsvard_statlig_skog IS 'Skyddsvärda statliga skogar';


--
-- Name: COLUMN skyddsvard_statlig_skog."AR"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."AR" IS 'År';


--
-- Name: COLUMN skyddsvard_statlig_skog."NATURGEOGR"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."NATURGEOGR" IS 'Naturgeografisk region';


--
-- Name: COLUMN skyddsvard_statlig_skog."OBJEKTKATE"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."OBJEKTKATE" IS 'Objektskategori';


--
-- Name: COLUMN skyddsvard_statlig_skog."MARKAGARE"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."MARKAGARE" IS 'Markägare';


--
-- Name: COLUMN skyddsvard_statlig_skog."VARDEKARNA"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."VARDEKARNA" IS 'Areal värdekärna (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."UTV_MARK"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."UTV_MARK" IS 'Areal utvecklingsmark (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."TOTAL_AREA"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."TOTAL_AREA" IS 'Totalareal (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."LAND"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."LAND" IS 'Areal land (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."VATTEN"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."VATTEN" IS 'Areal vatten (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."PROD_SKOG"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."PROD_SKOG" IS 'Areal produktiv skogsmark (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."SKOG_O_FJG"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."SKOG_O_FJG" IS 'Areal produktiv skogsmark ovanför fjällnära gräns (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."SKOG_N_FJG"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."SKOG_N_FJG" IS 'Areal produktiv skogsmark nedanför fjällnära gräns (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."SKYDDSZON"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."SKYDDSZON" IS 'Areal skyddszon (ha)';


--
-- Name: COLUMN skyddsvard_statlig_skog."ARRO_MARK"; Type: COMMENT; Schema: nvk; Owner: geodata
--

COMMENT ON COLUMN nvk.skyddsvard_statlig_skog."ARRO_MARK" IS 'Areal arronderingsmark (ha)';


--
-- Name: skyddsvard_statlig_skog_ogc_fid_seq; Type: SEQUENCE; Schema: nvk; Owner: geodata
--

CREATE SEQUENCE nvk.skyddsvard_statlig_skog_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvk.skyddsvard_statlig_skog_ogc_fid_seq OWNER TO geodata;

--
-- Name: skyddsvard_statlig_skog_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvk; Owner: geodata
--

ALTER SEQUENCE nvk.skyddsvard_statlig_skog_ogc_fid_seq OWNED BY nvk.skyddsvard_statlig_skog.ogc_fid;


--
-- Name: Biosfarsomraden; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Biosfarsomraden" (
    ogc_fid bigint NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "NAMN" character varying(32) NOT NULL,
    "LINK" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Biosfarsomraden" OWNER TO geodata;

--
-- Name: TABLE "Biosfarsomraden"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Biosfarsomraden" IS 'Biosfärsområden (UNESCO)';


--
-- Name: COLUMN "Biosfarsomraden"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biosfarsomraden"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: Biosfarsomraden_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Biosfarsomraden_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Biosfarsomraden_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Biosfarsomraden_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Biosfarsomraden_ogc_fid_seq" OWNED BY nvr."Biosfarsomraden".ogc_fid;


--
-- Name: Biotopskydd; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Biotopskydd" (
    ogc_fid bigint NOT NULL,
    "Uuid" uuid NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "ArendeAr" smallint NOT NULL,
    "Biotyp" character varying(254) NOT NULL,
    "Naturtyp" character varying(254),
    "AreaTot" double precision,
    "AreaProd" double precision,
    "Standort" character varying(254),
    "Datbeslut" date,
    "Url" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Biotopskydd" OWNER TO geodata;

--
-- Name: TABLE "Biotopskydd"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Biotopskydd" IS 'Biotopskydd i skogsmark (beslutade av Skogsstyrelsen)';


--
-- Name: COLUMN "Biotopskydd"."Uuid"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Uuid" IS 'Unik identitet';


--
-- Name: COLUMN "Biotopskydd"."Beteckn"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN "Biotopskydd"."ArendeAr"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."ArendeAr" IS 'År anmälan/ansökan registrerades';


--
-- Name: COLUMN "Biotopskydd"."Biotyp"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Biotyp" IS 'Biotoptyp';


--
-- Name: COLUMN "Biotopskydd"."Standort"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Standort" IS 'Ståndortsindex';


--
-- Name: COLUMN "Biotopskydd"."Datbeslut"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Datbeslut" IS 'Datum för beslut';


--
-- Name: COLUMN "Biotopskydd"."Url"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Biotopskydd"."Url" IS 'Länk till visningsformulär i Skogens Pärlor';


--
-- Name: Biotopskydd_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Biotopskydd_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Biotopskydd_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Biotopskydd_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Biotopskydd_ogc_fid_seq" OWNED BY nvr."Biotopskydd".ogc_fid;


--
-- Name: Djur_och_vaxtskyddsomrade; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Djur_och_vaxtskyddsomrade" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(254) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(62) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Djur_och_vaxtskyddsomrade" OWNER TO geodata;

--
-- Name: TABLE "Djur_och_vaxtskyddsomrade"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Djur_och_vaxtskyddsomrade" IS 'Djur- och växtskyddsområden';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Djur_och_vaxtskyddsomrade"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Djur_och_vaxtskyddsomrade"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Djur_och_vaxtskyddsomrade_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Djur_och_vaxtskyddsomrade_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Djur_och_vaxtskyddsomrade_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Djur_och_vaxtskyddsomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Djur_och_vaxtskyddsomrade_ogc_fid_seq" OWNED BY nvr."Djur_och_vaxtskyddsomrade".ogc_fid;


--
-- Name: HELCOM; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."HELCOM" (
    ogc_fid bigint NOT NULL,
    "BSPA_ID" integer NOT NULL,
    "NAME" character varying(62) NOT NULL,
    wkb_geometry public.geometry(MultiPolygonZ,3006) NOT NULL
);


ALTER TABLE nvr."HELCOM" OWNER TO geodata;

--
-- Name: TABLE "HELCOM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."HELCOM" IS 'Marina skyddade områden (Helcom MPA)';


--
-- Name: HELCOM_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."HELCOM_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."HELCOM_ogc_fid_seq" OWNER TO geodata;

--
-- Name: HELCOM_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."HELCOM_ogc_fid_seq" OWNED BY nvr."HELCOM".ogc_fid;


--
-- Name: Interimistiskt_forbud; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Interimistiskt_forbud" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62),
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Interimistiskt_forbud" OWNER TO geodata;

--
-- Name: TABLE "Interimistiskt_forbud"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Interimistiskt_forbud" IS 'Interimistiska förbud';


--
-- Name: COLUMN "Interimistiskt_forbud"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Interimistiskt_forbud"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Interimistiskt_forbud"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Interimistiskt_forbud"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Interimistiskt_forbud"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Interimistiskt_forbud"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Interimistiskt_forbud"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Interimistiskt_forbud"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Interimistiskt_forbud"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Interimistiskt_forbud"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Interimistiskt_forbud"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Interimistiskt_forbud"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Interimistiskt_forbud"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Interimistiskt_forbud"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Interimistiskt_forbud"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Interimistiskt_forbud"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Interimistiskt_forbud"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Interimistiskt_forbud"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Interimistiskt_forbud_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Interimistiskt_forbud_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Interimistiskt_forbud_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Interimistiskt_forbud_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Interimistiskt_forbud_ogc_fid_seq" OWNED BY nvr."Interimistiskt_forbud".ogc_fid;


--
-- Name: Kultureservat; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Kultureservat" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Kultureservat" OWNER TO geodata;

--
-- Name: TABLE "Kultureservat"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Kultureservat" IS 'Kulturreservat';


--
-- Name: COLUMN "Kultureservat"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Kultureservat"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Kultureservat"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Kultureservat"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Kultureservat"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Kultureservat"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Kultureservat"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Kultureservat"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Kultureservat"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Kultureservat"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Kultureservat"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Kultureservat"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Kultureservat"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Kultureservat"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Kultureservat"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Kultureservat"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Kultureservat"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Kultureservat"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Kultureservat_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Kultureservat_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Kultureservat_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Kultureservat_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Kultureservat_ogc_fid_seq" OWNED BY nvr."Kultureservat".ogc_fid;


--
-- Name: Landskapsbildsskyddsomrade; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Landskapsbildsskyddsomrade" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16),
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Landskapsbildsskyddsomrade" OWNER TO geodata;

--
-- Name: TABLE "Landskapsbildsskyddsomrade"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Landskapsbildsskyddsomrade" IS 'Landskapsbildsskyddsområden';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Landskapsbildsskyddsomrade"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Landskapsbildsskyddsomrade"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Landskapsbildsskyddsomrade_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Landskapsbildsskyddsomrade_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Landskapsbildsskyddsomrade_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Landskapsbildsskyddsomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Landskapsbildsskyddsomrade_ogc_fid_seq" OWNED BY nvr."Landskapsbildsskyddsomrade".ogc_fid;


--
-- Name: Nationalpark; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Nationalpark" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Nationalpark" OWNER TO geodata;

--
-- Name: TABLE "Nationalpark"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Nationalpark" IS 'Nationalparker';


--
-- Name: COLUMN "Nationalpark"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Nationalpark"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Nationalpark"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Nationalpark"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Nationalpark"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Nationalpark"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Nationalpark"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Nationalpark"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Nationalpark"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Nationalpark"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Nationalpark"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Nationalpark"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Nationalpark"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Nationalpark"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Nationalpark"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Nationalpark"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Nationalpark"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Nationalpark"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Nationalpark_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Nationalpark_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Nationalpark_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Nationalpark_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Nationalpark_ogc_fid_seq" OWNED BY nvr."Nationalpark".ogc_fid;


--
-- Name: Naturminne_punkt; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Naturminne_punkt" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(64) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPoint,3006) NOT NULL
);


ALTER TABLE nvr."Naturminne_punkt" OWNER TO geodata;

--
-- Name: TABLE "Naturminne_punkt"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Naturminne_punkt" IS 'Naturminne, punkt';


--
-- Name: COLUMN "Naturminne_punkt"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Naturminne_punkt"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Naturminne_punkt"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Naturminne_punkt"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Naturminne_punkt"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Naturminne_punkt"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Naturminne_punkt"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Naturminne_punkt"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Naturminne_punkt"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Naturminne_punkt"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Naturminne_punkt"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Naturminne_punkt"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Naturminne_punkt"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Naturminne_punkt"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_punkt"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Naturminne_punkt_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Naturminne_punkt_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Naturminne_punkt_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Naturminne_punkt_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Naturminne_punkt_ogc_fid_seq" OWNED BY nvr."Naturminne_punkt".ogc_fid;


--
-- Name: Naturminne_yta; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Naturminne_yta" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(64) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Naturminne_yta" OWNER TO geodata;

--
-- Name: TABLE "Naturminne_yta"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Naturminne_yta" IS 'Naturminne, yta';


--
-- Name: COLUMN "Naturminne_yta"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Naturminne_yta"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Naturminne_yta"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Naturminne_yta"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Naturminne_yta"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Naturminne_yta"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Naturminne_yta"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Naturminne_yta"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Naturminne_yta"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Naturminne_yta"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Naturminne_yta"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Naturminne_yta"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Naturminne_yta"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Naturminne_yta"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Naturminne_yta"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Naturminne_yta"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Naturminne_yta"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturminne_yta"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Naturminne_yta_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Naturminne_yta_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Naturminne_yta_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Naturminne_yta_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Naturminne_yta_ogc_fid_seq" OWNED BY nvr."Naturminne_yta".ogc_fid;


--
-- Name: Naturreservat; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Naturreservat" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(128) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62),
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16),
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Naturreservat" OWNER TO geodata;

--
-- Name: TABLE "Naturreservat"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Naturreservat" IS 'Naturreservat';


--
-- Name: COLUMN "Naturreservat"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Naturreservat"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Naturreservat"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Naturreservat"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Naturreservat"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Naturreservat"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Naturreservat"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Naturreservat"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Naturreservat"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Naturreservat"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Naturreservat"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Naturreservat"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Naturreservat"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Naturreservat"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Naturreservat"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Naturreservat"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Naturreservat"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturreservat"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Naturreservat_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Naturreservat_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Naturreservat_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Naturreservat_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Naturreservat_ogc_fid_seq" OWNED BY nvr."Naturreservat".ogc_fid;


--
-- Name: Naturvardsomrade; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Naturvardsomrade" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(64) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Naturvardsomrade" OWNER TO geodata;

--
-- Name: TABLE "Naturvardsomrade"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Naturvardsomrade" IS 'Naturvårdsområden';


--
-- Name: COLUMN "Naturvardsomrade"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Naturvardsomrade"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Naturvardsomrade"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Naturvardsomrade"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Naturvardsomrade"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Naturvardsomrade"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Naturvardsomrade"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Naturvardsomrade"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Naturvardsomrade"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Naturvardsomrade"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Naturvardsomrade"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Naturvardsomrade"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Naturvardsomrade"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Naturvardsomrade"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Naturvardsomrade"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Naturvardsomrade"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Naturvardsomrade"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Naturvardsomrade"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Naturvardsomrade_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Naturvardsomrade_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Naturvardsomrade_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Naturvardsomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Naturvardsomrade_ogc_fid_seq" OWNED BY nvr."Naturvardsomrade".ogc_fid;


--
-- Name: OSPAR; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."OSPAR" (
    ogc_fid bigint NOT NULL,
    "ORIGIN" character varying(10) NOT NULL,
    "NAMN_N2000" character varying(64) NOT NULL,
    "MPA_ID" character varying(16) NOT NULL,
    "MPA_NAMN" character varying(64) NOT NULL,
    "N2000_SITE" character varying(16) NOT NULL,
    wkb_geometry public.geometry(MultiPolygonZ,3006) NOT NULL
);


ALTER TABLE nvr."OSPAR" OWNER TO geodata;

--
-- Name: TABLE "OSPAR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."OSPAR" IS 'Marina skyddade områden (Ospar MPA)';


--
-- Name: OSPAR_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."OSPAR_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."OSPAR_ogc_fid_seq" OWNER TO geodata;

--
-- Name: OSPAR_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."OSPAR_ogc_fid_seq" OWNED BY nvr."OSPAR".ogc_fid;


--
-- Name: Ovrigt_biotopskyddsomrade; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Ovrigt_biotopskyddsomrade" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "IUCNKAT" character varying(254) NOT NULL,
    "FORVALTARE" character varying(62) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16) NOT NULL,
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Ovrigt_biotopskyddsomrade" OWNER TO geodata;

--
-- Name: TABLE "Ovrigt_biotopskyddsomrade"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Ovrigt_biotopskyddsomrade" IS 'Biotopskydd utanför skogsmark';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."FORVALTARE"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."FORVALTARE" IS 'Förvaltare för området';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Ovrigt_biotopskyddsomrade"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ovrigt_biotopskyddsomrade"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Ovrigt_biotopskyddsomrade_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Ovrigt_biotopskyddsomrade_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Ovrigt_biotopskyddsomrade_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Ovrigt_biotopskyddsomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Ovrigt_biotopskyddsomrade_ogc_fid_seq" OWNED BY nvr."Ovrigt_biotopskyddsomrade".ogc_fid;


--
-- Name: Ramsar; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Ramsar" (
    ogc_fid bigint NOT NULL,
    "RAMSAR_ID" integer NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "NATION" character varying(32) NOT NULL,
    "NAMN" character varying(32) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "LINK" character varying(254) NOT NULL,
    "URSPR_BESL" date NOT NULL,
    "SEN_BESLUT" date,
    "LEGAL_ACT" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Ramsar" OWNER TO geodata;

--
-- Name: TABLE "Ramsar"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Ramsar" IS 'Ramsar-områden (Våtmarkskonventionen)';


--
-- Name: COLUMN "Ramsar"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ramsar"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Ramsar"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ramsar"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Ramsar"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ramsar"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Ramsar"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Ramsar"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: Ramsar_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Ramsar_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Ramsar_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Ramsar_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Ramsar_ogc_fid_seq" OWNED BY nvr."Ramsar".ogc_fid;


--
-- Name: SCI_Rikstackande; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."SCI_Rikstackande" (
    ogc_fid bigint NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "BEVPLAN" character varying(128) NOT NULL,
    "SITE_CODE" character varying(9) NOT NULL,
    "OMRADESTYP" character varying(16) NOT NULL,
    "UPPLAMNARE" character varying(62) NOT NULL,
    "SCI_FORSL" character varying(6) NOT NULL,
    "SCI_DATUM" character varying(6),
    "SAC_DATUM" character varying(6),
    "SPA_DATUM" character varying(6),
    "KVALITET" character varying(254) NOT NULL,
    "KARAKTAR" character varying(254) NOT NULL,
    "ARTER" character varying(254),
    "NATURTYPER" character varying(254),
    wkb_geometry public.geometry(MultiPolygonZ,3006) NOT NULL
);


ALTER TABLE nvr."SCI_Rikstackande" OWNER TO geodata;

--
-- Name: TABLE "SCI_Rikstackande"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."SCI_Rikstackande" IS 'Habitatdirektivet (SCI, direktiv 92/43/EEG)';


--
-- Name: COLUMN "SCI_Rikstackande"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."SCI_Rikstackande"."NAMN" IS 'Områdets namn';


--
-- Name: SCI_Rikstackande_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."SCI_Rikstackande_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."SCI_Rikstackande_ogc_fid_seq" OWNER TO geodata;

--
-- Name: SCI_Rikstackande_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."SCI_Rikstackande_ogc_fid_seq" OWNED BY nvr."SCI_Rikstackande".ogc_fid;


--
-- Name: SPA_Rikstackande; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."SPA_Rikstackande" (
    ogc_fid bigint NOT NULL,
    "NAMN" character varying(62) NOT NULL,
    "BEVPLAN" character varying(128) NOT NULL,
    "SITE_CODE" character varying(9) NOT NULL,
    "OMRADESTYP" character varying(16) NOT NULL,
    "UPPLAMNARE" character varying(62) NOT NULL,
    "SCI_FORSL" character varying(6),
    "SCI_DATUM" character varying(6),
    "SAC_DATUM" character varying(6),
    "SPA_DATUM" character varying(6) NOT NULL,
    "KVALITET" character varying(254) NOT NULL,
    "KARAKTAR" character varying(254) NOT NULL,
    "ARTER" character varying(254) NOT NULL,
    "NATURTYPER" character varying(254),
    wkb_geometry public.geometry(MultiPolygonZ,3006) NOT NULL
);


ALTER TABLE nvr."SPA_Rikstackande" OWNER TO geodata;

--
-- Name: TABLE "SPA_Rikstackande"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."SPA_Rikstackande" IS 'Fågeldirektivet (SPA, direktiv 79/409/EEG)';


--
-- Name: COLUMN "SPA_Rikstackande"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."SPA_Rikstackande"."NAMN" IS 'Områdets namn';


--
-- Name: SPA_Rikstackande_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."SPA_Rikstackande_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."SPA_Rikstackande_ogc_fid_seq" OWNER TO geodata;

--
-- Name: SPA_Rikstackande_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."SPA_Rikstackande_ogc_fid_seq" OWNED BY nvr."SPA_Rikstackande".ogc_fid;


--
-- Name: Tilltradesforbud; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Tilltradesforbud" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "BESLSTAT" character varying(12) NOT NULL,
    "FORESKRTYP" character varying(16) NOT NULL,
    "FORESKRIFT" character varying(62) NOT NULL,
    "FRANDATUM" character varying(10) NOT NULL,
    "TILLDATUM" character varying(10) NOT NULL,
    "BESKRIVN" character varying(254),
    "OBJEKTNAMN" character varying(254) NOT NULL,
    "FORSKRNAMN" character varying(254),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Tilltradesforbud" OWNER TO geodata;

--
-- Name: TABLE "Tilltradesforbud"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Tilltradesforbud" IS 'Områden med föreskrifter som inskränker rätten att färdas eller vistas i området, permanent eller under en del av året';


--
-- Name: COLUMN "Tilltradesforbud"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Tilltradesforbud"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Tilltradesforbud"."BESLSTAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Tilltradesforbud"."BESLSTAT" IS 'Beslutsstatus';


--
-- Name: Tilltradesforbud_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Tilltradesforbud_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Tilltradesforbud_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Tilltradesforbud_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Tilltradesforbud_ogc_fid_seq" OWNED BY nvr."Tilltradesforbud".ogc_fid;


--
-- Name: Varldsarv; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Varldsarv" (
    ogc_fid bigint NOT NULL,
    "NAMN" character varying(64) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Varldsarv" OWNER TO geodata;

--
-- Name: TABLE "Varldsarv"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Varldsarv" IS 'Världsarv med mycket höga naturvärden (UNESCO)';


--
-- Name: Varldsarv_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Varldsarv_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Varldsarv_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Varldsarv_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Varldsarv_ogc_fid_seq" OWNED BY nvr."Varldsarv".ogc_fid;


--
-- Name: Vattenskyddsomrade; Type: TABLE; Schema: nvr; Owner: geodata
--

CREATE TABLE nvr."Vattenskyddsomrade" (
    ogc_fid bigint NOT NULL,
    "NVRID" integer NOT NULL,
    "NAMN" character varying(254) NOT NULL,
    "SKYDDSTYP" character varying(32) NOT NULL,
    "BESLSTATUS" character varying(12) NOT NULL,
    "URSBESLDAT" date NOT NULL,
    "IKRAFTDATF" date,
    "URSGALLDAT" date,
    "SENGALLDAT" date,
    "TILLSYNSMH" character varying(64) NOT NULL,
    "PROVNMHDIS" character varying(64),
    "PROVNMHTIL" character varying(64),
    "IUCNKAT" character varying(254) NOT NULL,
    "LAND_HA" double precision,
    "VATTEN_HA" double precision,
    "SKOG_HA" double precision,
    "GEOSTATUS" character varying(62) NOT NULL,
    "DIARIENR" character varying(62),
    "LAGRUM" character varying(16),
    "BESLMYND" character varying(32) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE nvr."Vattenskyddsomrade" OWNER TO geodata;

--
-- Name: TABLE "Vattenskyddsomrade"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON TABLE nvr."Vattenskyddsomrade" IS 'Vattenskyddsområden';


--
-- Name: COLUMN "Vattenskyddsomrade"."NVRID"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."NVRID" IS 'Områdets unika ID i naturvårdsregistret';


--
-- Name: COLUMN "Vattenskyddsomrade"."NAMN"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."NAMN" IS 'Områdets namn';


--
-- Name: COLUMN "Vattenskyddsomrade"."SKYDDSTYP"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."SKYDDSTYP" IS 'Skyddstyp';


--
-- Name: COLUMN "Vattenskyddsomrade"."BESLSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."BESLSTATUS" IS 'Beslutsstatus';


--
-- Name: COLUMN "Vattenskyddsomrade"."URSBESLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."URSBESLDAT" IS 'Ursprungligt beslutsdatum';


--
-- Name: COLUMN "Vattenskyddsomrade"."IKRAFTDATF"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."IKRAFTDATF" IS 'Ikraftträdandedatum för föreskrifte';


--
-- Name: COLUMN "Vattenskyddsomrade"."URSGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."URSGALLDAT" IS 'Ursprungligt gällandedatum';


--
-- Name: COLUMN "Vattenskyddsomrade"."SENGALLDAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."SENGALLDAT" IS 'Senaste gällandedatum';


--
-- Name: COLUMN "Vattenskyddsomrade"."TILLSYNSMH"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."TILLSYNSMH" IS 'Tillsynsmyndighet';


--
-- Name: COLUMN "Vattenskyddsomrade"."PROVNMHDIS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."PROVNMHDIS" IS 'Prövningsmyndighet för dispens';


--
-- Name: COLUMN "Vattenskyddsomrade"."PROVNMHTIL"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."PROVNMHTIL" IS 'Prövningsmyndighet för tillstånd';


--
-- Name: COLUMN "Vattenskyddsomrade"."IUCNKAT"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."IUCNKAT" IS 'Klassificering av skyddade områden enligt internationella naturvårdsunionens';


--
-- Name: COLUMN "Vattenskyddsomrade"."LAND_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."LAND_HA" IS 'Areal land i hektar (våtmarker ingår i landarealen)';


--
-- Name: COLUMN "Vattenskyddsomrade"."VATTEN_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."VATTEN_HA" IS 'Areal vatten i hektar (både sötvatten och marint vatten ingår)';


--
-- Name: COLUMN "Vattenskyddsomrade"."SKOG_HA"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."SKOG_HA" IS 'Skogsmarksareal i hektar';


--
-- Name: COLUMN "Vattenskyddsomrade"."GEOSTATUS"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."GEOSTATUS" IS 'Hur ytter gränsen för området har mätts in';


--
-- Name: COLUMN "Vattenskyddsomrade"."DIARIENR"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."DIARIENR" IS 'Diarienummer i beslutande myndighets diarium';


--
-- Name: COLUMN "Vattenskyddsomrade"."LAGRUM"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."LAGRUM" IS 'Lagrum som använts som grund för beslutet';


--
-- Name: COLUMN "Vattenskyddsomrade"."BESLMYND"; Type: COMMENT; Schema: nvr; Owner: geodata
--

COMMENT ON COLUMN nvr."Vattenskyddsomrade"."BESLMYND" IS 'Beslutsmyndighet';


--
-- Name: Vattenskyddsomrade_ogc_fid_seq; Type: SEQUENCE; Schema: nvr; Owner: geodata
--

CREATE SEQUENCE nvr."Vattenskyddsomrade_ogc_fid_seq"
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE nvr."Vattenskyddsomrade_ogc_fid_seq" OWNER TO geodata;

--
-- Name: Vattenskyddsomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: nvr; Owner: geodata
--

ALTER SEQUENCE nvr."Vattenskyddsomrade_ogc_fid_seq" OWNED BY nvr."Vattenskyddsomrade".ogc_fid;


--
-- Name: metadata; Type: TABLE; Schema: ogr_system_tables; Owner: geodata
--

CREATE TABLE ogr_system_tables.metadata (
    id integer NOT NULL,
    schema_name text NOT NULL,
    table_name text NOT NULL,
    metadata text
);


ALTER TABLE ogr_system_tables.metadata OWNER TO geodata;

--
-- Name: metadata_id_seq; Type: SEQUENCE; Schema: ogr_system_tables; Owner: geodata
--

CREATE SEQUENCE ogr_system_tables.metadata_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE ogr_system_tables.metadata_id_seq OWNER TO geodata;

--
-- Name: metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: ogr_system_tables; Owner: geodata
--

ALTER SEQUENCE ogr_system_tables.metadata_id_seq OWNED BY ogr_system_tables.metadata.id;


--
-- Name: layercache; Type: TABLE; Schema: public; Owner: geodata
--

CREATE TABLE public.layercache (
    ogc_fid bigint NOT NULL,
    layername character varying(255) NOT NULL,
    last_updated timestamp with time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
    fingerprint bytea NOT NULL
);


ALTER TABLE public.layercache OWNER TO geodata;

--
-- Name: TABLE layercache; Type: COMMENT; Schema: public; Owner: geodata
--

COMMENT ON TABLE public.layercache IS 'Layer metadata cache';


--
-- Name: layercache_ogc_fid_seq; Type: SEQUENCE; Schema: public; Owner: geodata
--

CREATE SEQUENCE public.layercache_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE public.layercache_ogc_fid_seq OWNER TO geodata;

--
-- Name: layercache_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: geodata
--

ALTER SEQUENCE public.layercache_ogc_fid_seq OWNED BY public.layercache.ogc_fid;


--
-- Name: betesomrade; Type: TABLE; Schema: sametinget; Owner: geodata
--

CREATE TABLE sametinget.betesomrade (
    ogc_fid bigint NOT NULL,
    "SAMEBY_ID" integer NOT NULL,
    "BY_ID" integer,
    "NAMN" character varying(62) NOT NULL,
    "SIGNATUR" character varying(25) NOT NULL,
    "SAMEBY_TYP" character varying(62) NOT NULL,
    "BY_OMR" boolean NOT NULL,
    "OVR_OMR" boolean NOT NULL,
    "AKTUALITET" date NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sametinget.betesomrade OWNER TO geodata;

--
-- Name: TABLE betesomrade; Type: COMMENT; Schema: sametinget; Owner: geodata
--

COMMENT ON TABLE sametinget.betesomrade IS 'Samebyarnas betesområden: Renbetesområden';


--
-- Name: betesomrade_ogc_fid_seq; Type: SEQUENCE; Schema: sametinget; Owner: geodata
--

CREATE SEQUENCE sametinget.betesomrade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sametinget.betesomrade_ogc_fid_seq OWNER TO geodata;

--
-- Name: betesomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sametinget; Owner: geodata
--

ALTER SEQUENCE sametinget.betesomrade_ogc_fid_seq OWNED BY sametinget.betesomrade.ogc_fid;


--
-- Name: flyttled; Type: TABLE; Schema: sametinget; Owner: geodata
--

CREATE TABLE sametinget.flyttled (
    ogc_fid bigint NOT NULL,
    "LED_ID" integer NOT NULL,
    "BYNR1" integer NOT NULL,
    "BYNR2" integer NOT NULL,
    "BYNR3" integer NOT NULL,
    "SAMEBY1" character varying(62),
    "SAMEBY2" character varying(62),
    "SAMEBY3" character varying(62),
    "KKOD" integer NOT NULL,
    "BESKRIVNIN" character varying(62),
    "ARSTID" character varying(62),
    "KONV_AR" character varying(62),
    "SIGNATUR" character varying(25),
    "RIKSINTR" boolean NOT NULL,
    "FAST_LED" boolean NOT NULL,
    "AKTUALITET" character varying(10),
    "GlobalID" uuid NOT NULL,
    wkb_geometry public.geometry(MultiLineString,3006) NOT NULL
);


ALTER TABLE sametinget.flyttled OWNER TO geodata;

--
-- Name: TABLE flyttled; Type: COMMENT; Schema: sametinget; Owner: geodata
--

COMMENT ON TABLE sametinget.flyttled IS 'Samebyarnas markanvändningsredovisning: Flyttled';


--
-- Name: flyttled_ogc_fid_seq; Type: SEQUENCE; Schema: sametinget; Owner: geodata
--

CREATE SEQUENCE sametinget.flyttled_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sametinget.flyttled_ogc_fid_seq OWNER TO geodata;

--
-- Name: flyttled_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sametinget; Owner: geodata
--

ALTER SEQUENCE sametinget.flyttled_ogc_fid_seq OWNED BY sametinget.flyttled.ogc_fid;


--
-- Name: riksintresse_rennaringen; Type: TABLE; Schema: sametinget; Owner: geodata
--

CREATE TABLE sametinget.riksintresse_rennaringen (
    ogc_fid bigint NOT NULL,
    "LAGRUM" character varying(254) NOT NULL,
    "AKTUALITET" date NOT NULL,
    "SIGNATUR" character varying(25) NOT NULL,
    "LANK" character varying(254),
    "GlobalID" uuid NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sametinget.riksintresse_rennaringen OWNER TO geodata;

--
-- Name: TABLE riksintresse_rennaringen; Type: COMMENT; Schema: sametinget; Owner: geodata
--

COMMENT ON TABLE sametinget.riksintresse_rennaringen IS 'Riksintresse Rennäringen';


--
-- Name: riksintresse_rennaringen_karnomrade; Type: TABLE; Schema: sametinget; Owner: geodata
--

CREATE TABLE sametinget.riksintresse_rennaringen_karnomrade (
    ogc_fid bigint NOT NULL,
    "LANK" character varying(254) NOT NULL,
    "LANSKOD" character varying(25) NOT NULL,
    "OMR_NR" integer,
    "ARET_RUNT" integer,
    "SAMEBY" character varying(62) NOT NULL,
    "ANSVARIG" character varying(25) NOT NULL,
    "AKTUALITET" date NOT NULL,
    "SIGNATUR" character varying(25),
    "GlobalID" uuid NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sametinget.riksintresse_rennaringen_karnomrade OWNER TO geodata;

--
-- Name: TABLE riksintresse_rennaringen_karnomrade; Type: COMMENT; Schema: sametinget; Owner: geodata
--

COMMENT ON TABLE sametinget.riksintresse_rennaringen_karnomrade IS 'Riksintresse Rennäringen — Kärnområde';


--
-- Name: riksintresse_rennaringen_karnomrade_ogc_fid_seq; Type: SEQUENCE; Schema: sametinget; Owner: geodata
--

CREATE SEQUENCE sametinget.riksintresse_rennaringen_karnomrade_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sametinget.riksintresse_rennaringen_karnomrade_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_rennaringen_karnomrade_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sametinget; Owner: geodata
--

ALTER SEQUENCE sametinget.riksintresse_rennaringen_karnomrade_ogc_fid_seq OWNED BY sametinget.riksintresse_rennaringen_karnomrade.ogc_fid;


--
-- Name: riksintresse_rennaringen_ogc_fid_seq; Type: SEQUENCE; Schema: sametinget; Owner: geodata
--

CREATE SEQUENCE sametinget.riksintresse_rennaringen_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sametinget.riksintresse_rennaringen_ogc_fid_seq OWNER TO geodata;

--
-- Name: riksintresse_rennaringen_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sametinget; Owner: geodata
--

ALTER SEQUENCE sametinget.riksintresse_rennaringen_ogc_fid_seq OWNED BY sametinget.riksintresse_rennaringen.ogc_fid;


--
-- Name: atervatningsavtal; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.atervatningsavtal (
    ogc_fid bigint NOT NULL,
    "Uuid" uuid NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "ArendeAr" smallint NOT NULL,
    "AvtalatDatum" date,
    "Url" character varying(252),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.atervatningsavtal OWNER TO geodata;

--
-- Name: TABLE atervatningsavtal; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.atervatningsavtal IS 'Återvätningsavtal';


--
-- Name: COLUMN atervatningsavtal."Uuid"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.atervatningsavtal."Uuid" IS 'Unikt ID';


--
-- Name: COLUMN atervatningsavtal."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.atervatningsavtal."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN atervatningsavtal."ArendeAr"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.atervatningsavtal."ArendeAr" IS 'Ärendeår';


--
-- Name: COLUMN atervatningsavtal."AvtalatDatum"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.atervatningsavtal."AvtalatDatum" IS 'Avtalat datum';


--
-- Name: COLUMN atervatningsavtal."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.atervatningsavtal."Url" IS 'Länk till Skogens pärlors formulär för objektet';


--
-- Name: atervatningsavtal_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.atervatningsavtal_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.atervatningsavtal_ogc_fid_seq OWNER TO geodata;

--
-- Name: atervatningsavtal_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.atervatningsavtal_ogc_fid_seq OWNED BY sks.atervatningsavtal.ogc_fid;


--
-- Name: avverk_anmald; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.avverk_anmald (
    ogc_fid bigint NOT NULL,
    "OBJECTID" integer NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "ArendeAr" smallint NOT NULL,
    "Inkomdatum" date NOT NULL,
    "AnmaldHa" real NOT NULL,
    "SkogsodlHa" real,
    "NatforHa" real,
    "AvvSasong" character varying(254) NOT NULL,
    "ArendeStatus" character varying(254) NOT NULL,
    "AvvHa" real,
    "AvverkningsanmalanKlass" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.avverk_anmald OWNER TO geodata;

--
-- Name: TABLE avverk_anmald; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.avverk_anmald IS 'Avverkningsanmälningar (Skogsstyrelsen)';


--
-- Name: COLUMN avverk_anmald."OBJECTID"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."OBJECTID" IS 'Unik identitet';


--
-- Name: COLUMN avverk_anmald."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN avverk_anmald."ArendeAr"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."ArendeAr" IS 'År anmälan/ansökan registrerades';


--
-- Name: COLUMN avverk_anmald."Inkomdatum"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."Inkomdatum" IS 'Anmälan/ansökan inkom datum';


--
-- Name: COLUMN avverk_anmald."AnmaldHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."AnmaldHa" IS 'Areal anmält (ha)';


--
-- Name: COLUMN avverk_anmald."SkogsodlHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."SkogsodlHa" IS 'Areal plantering (ha)';


--
-- Name: COLUMN avverk_anmald."NatforHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."NatforHa" IS 'Areal naturlig föryngring (ha)';


--
-- Name: COLUMN avverk_anmald."AvvSasong"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."AvvSasong" IS 'Avverkningssäsong';


--
-- Name: COLUMN avverk_anmald."ArendeStatus"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."ArendeStatus" IS 'Ärendestatus';


--
-- Name: COLUMN avverk_anmald."AvvHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."AvvHa" IS 'Avverkad areal (ha)';


--
-- Name: COLUMN avverk_anmald."AvverkningsanmalanKlass"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_anmald."AvverkningsanmalanKlass" IS 'Avverkningsamalan/NyAvverkningsanmalan';


--
-- Name: avverk_anmald_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.avverk_anmald_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.avverk_anmald_ogc_fid_seq OWNER TO geodata;

--
-- Name: avverk_anmald_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.avverk_anmald_ogc_fid_seq OWNED BY sks.avverk_anmald.ogc_fid;


--
-- Name: avverk_utford; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.avverk_utford (
    ogc_fid bigint NOT NULL,
    "OBJECTID" integer NOT NULL,
    "Beteckn" character varying(12),
    "ArendeAr" smallint NOT NULL,
    "Avverktyp" character varying(254) NOT NULL,
    "Skogstyp" character varying(254) NOT NULL,
    "AnmaldHa" real NOT NULL,
    "NatforHa" real,
    "Avvdatum" date,
    "KallaDatum" character varying(62),
    "Forebild" character varying(62),
    "Efterbild" character varying(62),
    "ArealHa" real NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.avverk_utford OWNER TO geodata;

--
-- Name: TABLE avverk_utford; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.avverk_utford IS 'Utförd avverkning (Skogsstyrelsen)';


--
-- Name: COLUMN avverk_utford."OBJECTID"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."OBJECTID" IS 'Unik identitet';


--
-- Name: COLUMN avverk_utford."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN avverk_utford."ArendeAr"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."ArendeAr" IS 'År anmälan/ansökan registrerades';


--
-- Name: COLUMN avverk_utford."Avverktyp"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Avverktyp" IS 'Vad anmälan/ansökan gäller';


--
-- Name: COLUMN avverk_utford."Skogstyp"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Skogstyp" IS 'Anger om avverkning är inom fjällnära skog, ädellövskog eller normal skog';


--
-- Name: COLUMN avverk_utford."AnmaldHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."AnmaldHa" IS 'Areal anmält (ha)';


--
-- Name: COLUMN avverk_utford."NatforHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."NatforHa" IS 'Areal naturlig föryngring (ha)';


--
-- Name: COLUMN avverk_utford."Avvdatum"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Avvdatum" IS 'Datum för avverkning';


--
-- Name: COLUMN avverk_utford."KallaDatum"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."KallaDatum" IS 'Ursprung för datum för avverkning (vid ”Uppgift saknas” är det vanligen Skogsstyrelsens personal som registrerat datumet)';


--
-- Name: COLUMN avverk_utford."Forebild"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Forebild" IS 'Namnet på den gamla bilden i skillnadsanalysen';


--
-- Name: COLUMN avverk_utford."Efterbild"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."Efterbild" IS 'Namnet på den nya bilden i skillnadsanalysen';


--
-- Name: COLUMN avverk_utford."ArealHa"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.avverk_utford."ArealHa" IS 'Areal för ytan (ha)';


--
-- Name: avverk_utford_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.avverk_utford_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.avverk_utford_ogc_fid_seq OWNER TO geodata;

--
-- Name: avverk_utford_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.avverk_utford_ogc_fid_seq OWNED BY sks.avverk_utford.ogc_fid;


--
-- Name: naturvarde; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.naturvarde (
    ogc_fid bigint NOT NULL,
    "ObjectId" integer NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "Objnamn" character varying(62),
    "Datinv" date NOT NULL,
    "Biotop1" character varying(62),
    "Biotop2" character varying(62),
    "Biotop3" character varying(62),
    "Beskrivn1" character varying(62),
    "Beskrivn2" character varying(62),
    "Beskrivn3" character varying(62),
    "Url" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.naturvarde OWNER TO geodata;

--
-- Name: TABLE naturvarde; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.naturvarde IS 'Objekt med naturvärden - Skogsstyrelsen';


--
-- Name: COLUMN naturvarde."ObjectId"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvarde."ObjectId" IS 'Unik identitet';


--
-- Name: COLUMN naturvarde."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvarde."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN naturvarde."Objnamn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvarde."Objnamn" IS 'Namn på objektet';


--
-- Name: COLUMN naturvarde."Datinv"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvarde."Datinv" IS 'Datum för fältinventering';


--
-- Name: COLUMN naturvarde."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvarde."Url" IS 'Länk till visningsformulär i Skogens Pärlor';


--
-- Name: naturvarde_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.naturvarde_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.naturvarde_ogc_fid_seq OWNER TO geodata;

--
-- Name: naturvarde_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.naturvarde_ogc_fid_seq OWNED BY sks.naturvarde.ogc_fid;


--
-- Name: naturvardsavtal; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.naturvardsavtal (
    ogc_fid bigint NOT NULL,
    "Uuid" uuid NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "ArendeAr" smallint NOT NULL,
    "NvaTyp" character varying(254),
    "Naturtyp" character varying(254),
    "AreaTot" double precision NOT NULL,
    "AreaProd" double precision NOT NULL,
    "Standort" character varying(254),
    "DatAvtal" date,
    "Url" character varying(254) NOT NULL,
    "Undertyp" character varying(64),
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.naturvardsavtal OWNER TO geodata;

--
-- Name: TABLE naturvardsavtal; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.naturvardsavtal IS 'Naturvårdsavtal (Skogsstyrelsen)';


--
-- Name: COLUMN naturvardsavtal."Uuid"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvardsavtal."Uuid" IS 'Unik identitet';


--
-- Name: COLUMN naturvardsavtal."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvardsavtal."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN naturvardsavtal."ArendeAr"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvardsavtal."ArendeAr" IS 'År anmälan/ansökan registrerades';


--
-- Name: COLUMN naturvardsavtal."Standort"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvardsavtal."Standort" IS 'Ståndortsindex';


--
-- Name: COLUMN naturvardsavtal."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.naturvardsavtal."Url" IS 'Länk till visningsformulär i Skogens Pärlor';


--
-- Name: naturvardsavtal_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.naturvardsavtal_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.naturvardsavtal_ogc_fid_seq OWNER TO geodata;

--
-- Name: naturvardsavtal_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.naturvardsavtal_ogc_fid_seq OWNED BY sks.naturvardsavtal.ogc_fid;


--
-- Name: nyckelbiotop; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.nyckelbiotop (
    ogc_fid bigint NOT NULL,
    "Beteckn" character varying(12) NOT NULL,
    "Objnamn" character varying(62),
    "Datinv" date NOT NULL,
    "Biotop1" character varying(62),
    "Biotop2" character varying(62),
    "Biotop3" character varying(62),
    "Beskrivn1" character varying(62),
    "Beskrivn2" character varying(62),
    "Beskrivn3" character varying(62),
    "Beskrivn4" character varying(62),
    "Beskrivn5" character varying(62),
    "Beskrivn6" character varying(62),
    "Beskrivn7" character varying(62),
    "Beskrivn8" character varying(62),
    "Url" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.nyckelbiotop OWNER TO geodata;

--
-- Name: TABLE nyckelbiotop; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.nyckelbiotop IS 'Nyckelbiotoper - Skogsstyrelsen';


--
-- Name: COLUMN nyckelbiotop."Beteckn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop."Beteckn" IS 'Ärendebeteckning';


--
-- Name: COLUMN nyckelbiotop."Objnamn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop."Objnamn" IS 'Namn på objektet';


--
-- Name: COLUMN nyckelbiotop."Datinv"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop."Datinv" IS 'Datum för fältinventering';


--
-- Name: COLUMN nyckelbiotop."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop."Url" IS 'Länk till visningsformulär i Skogens Pärlor';


--
-- Name: nyckelbiotop_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.nyckelbiotop_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.nyckelbiotop_ogc_fid_seq OWNER TO geodata;

--
-- Name: nyckelbiotop_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.nyckelbiotop_ogc_fid_seq OWNED BY sks.nyckelbiotop.ogc_fid;


--
-- Name: nyckelbiotop_storskogsbruk; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.nyckelbiotop_storskogsbruk (
    ogc_fid bigint NOT NULL,
    objectid integer NOT NULL,
    "Org" character varying(62) NOT NULL,
    "InkomDatum" date NOT NULL,
    "Url" character varying(254) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.nyckelbiotop_storskogsbruk OWNER TO geodata;

--
-- Name: TABLE nyckelbiotop_storskogsbruk; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.nyckelbiotop_storskogsbruk IS 'Nyckelbiotoper - storskogsbruket';


--
-- Name: COLUMN nyckelbiotop_storskogsbruk.objectid; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop_storskogsbruk.objectid IS 'Unik identitet';


--
-- Name: COLUMN nyckelbiotop_storskogsbruk."Org"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop_storskogsbruk."Org" IS 'Namn på Organisation som gjort inventeringen';


--
-- Name: COLUMN nyckelbiotop_storskogsbruk."InkomDatum"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop_storskogsbruk."InkomDatum" IS 'Datum då data inkommit till Skogsstyrelsen';


--
-- Name: COLUMN nyckelbiotop_storskogsbruk."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.nyckelbiotop_storskogsbruk."Url" IS 'Länk till Skogens Pärlors visningsformulär';


--
-- Name: nyckelbiotop_storskogsbruk_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.nyckelbiotop_storskogsbruk_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.nyckelbiotop_storskogsbruk_ogc_fid_seq OWNER TO geodata;

--
-- Name: nyckelbiotop_storskogsbruk_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.nyckelbiotop_storskogsbruk_ogc_fid_seq OWNED BY sks.nyckelbiotop_storskogsbruk.ogc_fid;


--
-- Name: sumpskog; Type: TABLE; Schema: sks; Owner: geodata
--

CREATE TABLE sks.sumpskog (
    ogc_fid bigint NOT NULL,
    "OBJECTID" integer NOT NULL,
    "Namn" character varying(62),
    "Hydrtext" character varying(62),
    "Tradtext" character varying(62) NOT NULL,
    "Delklass" character varying(62),
    "Klassu" character varying(62),
    "Lovandel" character varying(62),
    "Krontakn" character varying(62),
    "Huggklas" character varying(62),
    "Andelva" character varying(62),
    "Ingrepp" character varying(62),
    "Ingrpavv" character varying(62),
    "Objnyck" character varying(62),
    "Delnyck" character varying(62),
    "Flygar" smallint,
    "Faltdat" date,
    "Invtekn" character varying(62) NOT NULL,
    "Invdat" date NOT NULL,
    "Ansvmynd" character varying(62) NOT NULL,
    "Url" character varying(252) NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE sks.sumpskog OWNER TO geodata;

--
-- Name: TABLE sumpskog; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON TABLE sks.sumpskog IS 'Sumpskogar';


--
-- Name: COLUMN sumpskog."OBJECTID"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."OBJECTID" IS 'Unik identitet';


--
-- Name: COLUMN sumpskog."Namn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Namn" IS 'Objektnamn';


--
-- Name: COLUMN sumpskog."Hydrtext"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Hydrtext" IS 'Hydrologisk text, ex. kärrskog, mosseskog';


--
-- Name: COLUMN sumpskog."Tradtext"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Tradtext" IS 'Trädslag';


--
-- Name: COLUMN sumpskog."Delklass"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Delklass" IS 'Klass på delobjektet';


--
-- Name: COLUMN sumpskog."Klassu"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Klassu" IS 'Klass på objektet';


--
-- Name: COLUMN sumpskog."Lovandel"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Lovandel" IS 'Lövandel';


--
-- Name: COLUMN sumpskog."Krontakn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Krontakn" IS 'Krontäckning';


--
-- Name: COLUMN sumpskog."Huggklas"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Huggklas" IS 'Huggningsklass';


--
-- Name: COLUMN sumpskog."Andelva"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Andelva" IS 'Andel öppet vatten';


--
-- Name: COLUMN sumpskog."Ingrepp"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Ingrepp" IS 'Ingrepp på delobjekt (max 4)';


--
-- Name: COLUMN sumpskog."Ingrpavv"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Ingrpavv" IS 'Grad av påverkan på delobjekt (max 4)';


--
-- Name: COLUMN sumpskog."Objnyck"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Objnyck" IS 'Nyckelord på objektnivå';


--
-- Name: COLUMN sumpskog."Delnyck"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Delnyck" IS 'Nyckelord på delobjektsnivå';


--
-- Name: COLUMN sumpskog."Flygar"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Flygar" IS 'Flygbildsår';


--
-- Name: COLUMN sumpskog."Faltdat"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Faltdat" IS 'Faltdat';


--
-- Name: COLUMN sumpskog."Invtekn"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Invtekn" IS 'Inventeringsteknik';


--
-- Name: COLUMN sumpskog."Invdat"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Invdat" IS 'Inventeringdatum';


--
-- Name: COLUMN sumpskog."Ansvmynd"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Ansvmynd" IS 'Ansvarig myndighet';


--
-- Name: COLUMN sumpskog."Url"; Type: COMMENT; Schema: sks; Owner: geodata
--

COMMENT ON COLUMN sks.sumpskog."Url" IS 'Länk till Skogens pärlors formulär för objektet';


--
-- Name: sumpskog_ogc_fid_seq; Type: SEQUENCE; Schema: sks; Owner: geodata
--

CREATE SEQUENCE sks.sumpskog_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE sks.sumpskog_ogc_fid_seq OWNER TO geodata;

--
-- Name: sumpskog_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: sks; Owner: geodata
--

ALTER SEQUENCE sks.sumpskog_ogc_fid_seq OWNED BY sks.sumpskog.ogc_fid;


--
-- Name: ledningar; Type: TABLE; Schema: svk; Owner: geodata
--

CREATE TABLE svk.ledningar (
    ogc_fid bigint NOT NULL,
    "Placement" character varying(32),
    "Voltage" integer,
    wkb_geometry public.geometry(MultiLineString,3006) NOT NULL
);


ALTER TABLE svk.ledningar OWNER TO geodata;

--
-- Name: TABLE ledningar; Type: COMMENT; Schema: svk; Owner: geodata
--

COMMENT ON TABLE svk.ledningar IS 'Kraftledningar (befintliga)';


--
-- Name: ledningar_ogc_fid_seq; Type: SEQUENCE; Schema: svk; Owner: geodata
--

CREATE SEQUENCE svk.ledningar_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE svk.ledningar_ogc_fid_seq OWNER TO geodata;

--
-- Name: ledningar_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: svk; Owner: geodata
--

ALTER SEQUENCE svk.ledningar_ogc_fid_seq OWNED BY svk.ledningar.ogc_fid;


--
-- Name: stationsomraden; Type: TABLE; Schema: svk; Owner: geodata
--

CREATE TABLE svk.stationsomraden (
    ogc_fid bigint NOT NULL,
    wkb_geometry public.geometry(MultiPolygonZ,3006) NOT NULL
);


ALTER TABLE svk.stationsomraden OWNER TO geodata;

--
-- Name: TABLE stationsomraden; Type: COMMENT; Schema: svk; Owner: geodata
--

COMMENT ON TABLE svk.stationsomraden IS 'Stationsomraden';


--
-- Name: stationsomraden_ogc_fid_seq; Type: SEQUENCE; Schema: svk; Owner: geodata
--

CREATE SEQUENCE svk.stationsomraden_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE svk.stationsomraden_ogc_fid_seq OWNER TO geodata;

--
-- Name: stationsomraden_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: svk; Owner: geodata
--

ALTER SEQUENCE svk.stationsomraden_ogc_fid_seq OWNED BY svk.stationsomraden.ogc_fid;


--
-- Name: stolpar; Type: TABLE; Schema: svk; Owner: geodata
--

CREATE TABLE svk.stolpar (
    ogc_fid bigint NOT NULL,
    wkb_geometry public.geometry(PointZ,3006) NOT NULL
);


ALTER TABLE svk.stolpar OWNER TO geodata;

--
-- Name: TABLE stolpar; Type: COMMENT; Schema: svk; Owner: geodata
--

COMMENT ON TABLE svk.stolpar IS 'Stolpar (befintliga)';


--
-- Name: stolpar_ogc_fid_seq; Type: SEQUENCE; Schema: svk; Owner: geodata
--

CREATE SEQUENCE svk.stolpar_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE svk.stolpar_ogc_fid_seq OWNER TO geodata;

--
-- Name: stolpar_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: svk; Owner: geodata
--

ALTER SEQUENCE svk.stolpar_ogc_fid_seq OWNED BY svk.stolpar.ogc_fid;


--
-- Name: transmissionsnatsprojekt; Type: TABLE; Schema: svk; Owner: geodata
--

CREATE TABLE svk.transmissionsnatsprojekt (
    ogc_fid bigint NOT NULL,
    "Name" character varying(254),
    "Voltage" integer,
    "Url" character varying(254),
    wkb_geometry public.geometry(MultiLineString,3006) NOT NULL
);


ALTER TABLE svk.transmissionsnatsprojekt OWNER TO geodata;

--
-- Name: TABLE transmissionsnatsprojekt; Type: COMMENT; Schema: svk; Owner: geodata
--

COMMENT ON TABLE svk.transmissionsnatsprojekt IS 'Transmissionsnätsprojekt';


--
-- Name: transmissionsnatsprojekt_ogc_fid_seq; Type: SEQUENCE; Schema: svk; Owner: geodata
--

CREATE SEQUENCE svk.transmissionsnatsprojekt_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE svk.transmissionsnatsprojekt_ogc_fid_seq OWNER TO geodata;

--
-- Name: transmissionsnatsprojekt_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: svk; Owner: geodata
--

ALTER SEQUENCE svk.transmissionsnatsprojekt_ogc_fid_seq OWNED BY svk.transmissionsnatsprojekt.ogc_fid;


--
-- Name: havsbaserad_vindkraft; Type: TABLE; Schema: vbk; Owner: geodata
--

CREATE TABLE vbk.havsbaserad_vindkraft (
    ogc_fid bigint NOT NULL,
    "OmrID" character varying(10) NOT NULL,
    "Projektnamn" character varying(62),
    "Organisationsnamn" character varying(254),
    "Organisationsnummer" character varying(11),
    "Projektstatus" character varying(62) NOT NULL,
    "Diarienummer" character varying(254),
    "AndringsansokanPagar" boolean,
    "SamradsunderlagInlamnat" date,
    "AnsokanInlamnat" date,
    "AnsokanAterkallad" date,
    "AnsokanBeviljad" date,
    "AnsokanAvslagen" date,
    "AnsokanOverklagad" date,
    "Natura2000_Ansokan" character varying(62) NOT NULL,
    "Natura2000_Beslutdatum" date,
    "UnderByggnation" boolean,
    "Uppfort" date,
    "PlaneratAntalVerkMin" smallint,
    "PlaneratAntalVerkMax" smallint,
    "PlaneradHojdMin" smallint,
    "PlaneradHojdMax" smallint,
    "PlaneradProduktionMin" real,
    "PlaneradProduktionMax" real,
    "PlaneradByggstart" date,
    "PlaneratDrift" date,
    "BeviljatAntalVerk" smallint,
    "UppfortAntalVerk" smallint,
    "BeviljadMaxhojd" smallint,
    "InstalleradEffekt" real,
    "Calprod" real,
    "ElNamn" character varying(62) NOT NULL,
    "SenasteUppdaterat" date NOT NULL,
    "Raderat" boolean NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE vbk.havsbaserad_vindkraft OWNER TO geodata;

--
-- Name: TABLE havsbaserad_vindkraft; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON TABLE vbk.havsbaserad_vindkraft IS 'Vindbrukskollen havsbaserad vindkraft (Länsstyrelsen)';


--
-- Name: COLUMN havsbaserad_vindkraft."OmrID"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."OmrID" IS 'ID-nummer i Vindbruksollen för projekteringsområdet';


--
-- Name: COLUMN havsbaserad_vindkraft."Projektnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."Projektnamn" IS 'Namn på projekteringsområdet';


--
-- Name: COLUMN havsbaserad_vindkraft."Organisationsnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."Organisationsnamn" IS 'Namnet på verksamhetsutövaren för projekteringsområdet';


--
-- Name: COLUMN havsbaserad_vindkraft."Organisationsnummer"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."Organisationsnummer" IS 'Verksamhetsutövarens organisationsnummer';


--
-- Name: COLUMN havsbaserad_vindkraft."AndringsansokanPagar"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."AndringsansokanPagar" IS 'Om ändringsansökan pågår';


--
-- Name: COLUMN havsbaserad_vindkraft."UnderByggnation"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."UnderByggnation" IS 'Om projekteringsområdet är under byggnation';


--
-- Name: COLUMN havsbaserad_vindkraft."Uppfort"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."Uppfort" IS 'Uppförandedatum för vindkraftverket';


--
-- Name: COLUMN havsbaserad_vindkraft."PlaneradByggstart"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."PlaneradByggstart" IS 'Datumangivelse för planerad byggstart för projektet';


--
-- Name: COLUMN havsbaserad_vindkraft."PlaneratDrift"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."PlaneratDrift" IS 'Datumangivelse för planerat idrifttagande för projektet';


--
-- Name: COLUMN havsbaserad_vindkraft."Calprod"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."Calprod" IS 'Den beräknade årsproduktionern (GWh) för vindkraftverket';


--
-- Name: COLUMN havsbaserad_vindkraft."ElNamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."ElNamn" IS 'Elområde dit vindkraftverket tillhör';


--
-- Name: COLUMN havsbaserad_vindkraft."SenasteUppdaterat"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.havsbaserad_vindkraft."SenasteUppdaterat" IS 'Datum då vindkraftverket senast sparats i Vindbrukskollen';


--
-- Name: havsbaserad_vindkraft_ogc_fid_seq; Type: SEQUENCE; Schema: vbk; Owner: geodata
--

CREATE SEQUENCE vbk.havsbaserad_vindkraft_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE vbk.havsbaserad_vindkraft_ogc_fid_seq OWNER TO geodata;

--
-- Name: havsbaserad_vindkraft_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: vbk; Owner: geodata
--

ALTER SEQUENCE vbk.havsbaserad_vindkraft_ogc_fid_seq OWNED BY vbk.havsbaserad_vindkraft.ogc_fid;


--
-- Name: projekteringsomraden; Type: TABLE; Schema: vbk; Owner: geodata
--

CREATE TABLE vbk.projekteringsomraden (
    ogc_fid bigint NOT NULL,
    "OmrID" character varying(10) NOT NULL,
    "Projektnamn" character varying(62),
    "AntalVerk" smallint NOT NULL,
    "AntalEjXY" smallint NOT NULL,
    "Calprod" real,
    "PlaneradByggstart" date,
    "PlaneratDrift" date,
    "AndringsansokanPagar" boolean,
    "UnderByggnation" boolean,
    "Organisationsnamn" character varying(254),
    "Organisationsnummer" character varying(11),
    "ElNamn" character varying(62) NOT NULL,
    "SenasteUppdaterat" date,
    "EjAktuell" boolean NOT NULL,
    "Raderat" boolean NOT NULL,
    wkb_geometry public.geometry(MultiPolygon,3006) NOT NULL
);


ALTER TABLE vbk.projekteringsomraden OWNER TO geodata;

--
-- Name: TABLE projekteringsomraden; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON TABLE vbk.projekteringsomraden IS 'Vindbrukskollen landbaserade projekteringsområden (Länsstyrelsen)';


--
-- Name: COLUMN projekteringsomraden."OmrID"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."OmrID" IS 'ID-nummer i Vindbruksollen för projekteringsområdet';


--
-- Name: COLUMN projekteringsomraden."Projektnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."Projektnamn" IS 'Namn på projekteringsområdet';


--
-- Name: COLUMN projekteringsomraden."AntalVerk"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."AntalVerk" IS 'Antal vindkraftverk exklusive status "Ej aktuell/återkallat"';


--
-- Name: COLUMN projekteringsomraden."AntalEjXY"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."AntalEjXY" IS 'Antal vindkraftverk utan koordinater som tillhör projekteringsområdet';


--
-- Name: COLUMN projekteringsomraden."Calprod"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."Calprod" IS 'Summan av verkens uppgivna beräknade årsproduktion (GWh)';


--
-- Name: COLUMN projekteringsomraden."PlaneradByggstart"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."PlaneradByggstart" IS 'Datumangivelse för planerad byggstart för projektet';


--
-- Name: COLUMN projekteringsomraden."PlaneratDrift"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."PlaneratDrift" IS 'Datumangivelse för planerat idrifttagande för projektet';


--
-- Name: COLUMN projekteringsomraden."AndringsansokanPagar"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."AndringsansokanPagar" IS 'Om ändringsansökan pågår';


--
-- Name: COLUMN projekteringsomraden."UnderByggnation"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."UnderByggnation" IS 'Om projekteringsområdet är under byggnation';


--
-- Name: COLUMN projekteringsomraden."Organisationsnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."Organisationsnamn" IS 'Namnet på verksamhetsutövaren för projekteringsområdet';


--
-- Name: COLUMN projekteringsomraden."Organisationsnummer"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."Organisationsnummer" IS 'Verksamhetsutövarens organisationsnummer';


--
-- Name: COLUMN projekteringsomraden."ElNamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."ElNamn" IS 'Elområde dit projekteringsområdet tillhör';


--
-- Name: COLUMN projekteringsomraden."SenasteUppdaterat"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."SenasteUppdaterat" IS 'Datum då projektet senast sparats i Vindbrukskollen (om datum saknas har området inte sparats efter nov 2018)';


--
-- Name: COLUMN projekteringsomraden."EjAktuell"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.projekteringsomraden."EjAktuell" IS 'Om samtliga verk inom projekteringsområdet har status ej aktuellt / återkallat / avslag med laga kraft';


--
-- Name: projekteringsomraden_ogc_fid_seq; Type: SEQUENCE; Schema: vbk; Owner: geodata
--

CREATE SEQUENCE vbk.projekteringsomraden_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE vbk.projekteringsomraden_ogc_fid_seq OWNER TO geodata;

--
-- Name: projekteringsomraden_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: vbk; Owner: geodata
--

ALTER SEQUENCE vbk.projekteringsomraden_ogc_fid_seq OWNED BY vbk.projekteringsomraden.ogc_fid;


--
-- Name: vindkraftverk; Type: TABLE; Schema: vbk; Owner: geodata
--

CREATE TABLE vbk.vindkraftverk (
    ogc_fid bigint NOT NULL,
    "VerkID" character varying(14) NOT NULL,
    "OmrID" character varying(10) NOT NULL,
    "Projektnamn" character varying(62),
    "Status" character varying(62) NOT NULL,
    "Statuskod" smallint NOT NULL,
    "Handlingstyp" character varying(62),
    "Uppfort" date,
    "MB_Tillstand" date,
    "Totalhojd" smallint,
    "Navhojd" smallint,
    "Rotordiameter" smallint,
    "Maxeffekt" real,
    "Calprod" real,
    "Fabrikat" character varying(62),
    "Modell" character varying(62),
    "Organisationsnamn" character varying(254),
    "Organisationsnummer" character varying(11),
    "Placering" character varying(62),
    "ElNamn" character varying(62) NOT NULL,
    "SenasteUppdaterat" date,
    "EjAktuell" boolean,
    "Raderat" boolean NOT NULL,
    wkb_geometry public.geometry(Point,3006) NOT NULL
);


ALTER TABLE vbk.vindkraftverk OWNER TO geodata;

--
-- Name: TABLE vindkraftverk; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON TABLE vbk.vindkraftverk IS 'Vindbrukskollen landbaserade vindkraftverk (Länsstyrelsen)';


--
-- Name: COLUMN vindkraftverk."VerkID"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."VerkID" IS 'ID-nummer i Vindbrukskollen för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."OmrID"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."OmrID" IS 'ID-nummer i Vindbruksollen för projekteringsområdet';


--
-- Name: COLUMN vindkraftverk."Projektnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Projektnamn" IS 'Namn på projekteringsområdet';


--
-- Name: COLUMN vindkraftverk."Status"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Status" IS 'Status för vindkraftverket (t.ex beviljat)';


--
-- Name: COLUMN vindkraftverk."Handlingstyp"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Handlingstyp" IS 'Aktuell prövningsgrund enligt Miljöbalken eller Plan och Bygglagen';


--
-- Name: COLUMN vindkraftverk."Uppfort"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Uppfort" IS 'Uppförandedatum för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."MB_Tillstand"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."MB_Tillstand" IS 'Datum för tidsbegränsning av miljötillståndet';


--
-- Name: COLUMN vindkraftverk."Totalhojd"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Totalhojd" IS 'Totalhöjd (m) för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."Navhojd"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Navhojd" IS 'Navhöjd (m) för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."Rotordiameter"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Rotordiameter" IS 'Rotordiameter (m) för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."Maxeffekt"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Maxeffekt" IS 'Ansökt eller installerad maxeffekt (MW) för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."Calprod"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Calprod" IS 'Den beräknade årsproduktionern (GWh) för vindkraftverket';


--
-- Name: COLUMN vindkraftverk."Fabrikat"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Fabrikat" IS 'Namn på vindkraftverkets fabrikat';


--
-- Name: COLUMN vindkraftverk."Modell"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Modell" IS 'Namn på vindkraftverkets modell';


--
-- Name: COLUMN vindkraftverk."Organisationsnamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Organisationsnamn" IS 'Namnet på verksamhetsutövaren för projekteringsområdet';


--
-- Name: COLUMN vindkraftverk."Organisationsnummer"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Organisationsnummer" IS 'Verksamhetsutövarens organisationsnummer';


--
-- Name: COLUMN vindkraftverk."Placering"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."Placering" IS 'Anger om verket är placerat på land eller i vatten';


--
-- Name: COLUMN vindkraftverk."ElNamn"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."ElNamn" IS 'Elområde dit vindkraftverket tillhör';


--
-- Name: COLUMN vindkraftverk."SenasteUppdaterat"; Type: COMMENT; Schema: vbk; Owner: geodata
--

COMMENT ON COLUMN vbk.vindkraftverk."SenasteUppdaterat" IS 'Datum då vindkraftverket senast sparats i Vindbrukskollen (om datum saknas har vindkraftverket inte sparats efter nov 2018)';


--
-- Name: vindkraftverk_ogc_fid_seq; Type: SEQUENCE; Schema: vbk; Owner: geodata
--

CREATE SEQUENCE vbk.vindkraftverk_ogc_fid_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE vbk.vindkraftverk_ogc_fid_seq OWNER TO geodata;

--
-- Name: vindkraftverk_ogc_fid_seq; Type: SEQUENCE OWNED BY; Schema: vbk; Owner: geodata
--

ALTER SEQUENCE vbk.vindkraftverk_ogc_fid_seq OWNED BY vbk.vindkraftverk.ogc_fid;


--
-- Name: kommunyta ogc_fid; Type: DEFAULT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta ALTER COLUMN ogc_fid SET DEFAULT nextval('lm_topo250.kommunyta_ogc_fid_seq'::regclass);


--
-- Name: kommunyta_sub ogc_fid; Type: DEFAULT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta_sub ALTER COLUMN ogc_fid SET DEFAULT nextval('lm_topo250.kommunyta_sub_ogc_fid_seq'::regclass);


--
-- Name: lansyta ogc_fid; Type: DEFAULT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta ALTER COLUMN ogc_fid SET DEFAULT nextval('lm_topo250.lansyta_ogc_fid_seq'::regclass);


--
-- Name: lansyta_sub ogc_fid; Type: DEFAULT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta_sub ALTER COLUMN ogc_fid SET DEFAULT nextval('lm_topo250.lansyta_sub_ogc_fid_seq'::regclass);


--
-- Name: pagaende_naturreservatsbildning ogc_fid; Type: DEFAULT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.pagaende_naturreservatsbildning ALTER COLUMN ogc_fid SET DEFAULT nextval('lst.pagaende_naturreservatsbildning_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_obruten_kust ogc_fid; Type: DEFAULT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_obruten_kust ALTER COLUMN ogc_fid SET DEFAULT nextval('lst.riksintresse_obruten_kust_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_obrutet_fjall ogc_fid; Type: DEFAULT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_obrutet_fjall ALTER COLUMN ogc_fid SET DEFAULT nextval('lst.riksintresse_obrutet_fjall_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_rorligt_friluftsliv ogc_fid; Type: DEFAULT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_rorligt_friluftsliv ALTER COLUMN ogc_fid SET DEFAULT nextval('lst.riksintresse_rorligt_friluftsliv_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_skyddade_vattendrag ogc_fid; Type: DEFAULT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_skyddade_vattendrag ALTER COLUMN ogc_fid SET DEFAULT nextval('lst.riksintresse_skyddade_vattendrag_ogc_fid_seq'::regclass);


--
-- Name: dammar ogc_fid; Type: DEFAULT; Schema: misc; Owner: geodata
--

ALTER TABLE ONLY misc.dammar ALTER COLUMN ogc_fid SET DEFAULT nextval('misc.dammar_ogc_fid_seq'::regclass);


--
-- Name: gigafactories ogc_fid; Type: DEFAULT; Schema: misc; Owner: geodata
--

ALTER TABLE ONLY misc.gigafactories ALTER COLUMN ogc_fid SET DEFAULT nextval('misc.gigafactories_ogc_fid_seq'::regclass);


--
-- Name: bearbetningskoncessioner_ansokta ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_ansokta ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.bearbetningskoncessioner_ansokta_ogc_fid_seq'::regclass);


--
-- Name: bearbetningskoncessioner_beviljade ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_beviljade ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.bearbetningskoncessioner_beviljade_ogc_fid_seq'::regclass);


--
-- Name: bearbetningskoncessioner_forfallna ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_forfallna ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.bearbetningskoncessioner_forfallna_ogc_fid_seq'::regclass);


--
-- Name: markanvisningar_bk_ansokta ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_ansokta ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.markanvisningar_bk_ansokta_ogc_fid_seq'::regclass);


--
-- Name: markanvisningar_bk_beviljade ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_beviljade ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.markanvisningar_bk_beviljade_ogc_fid_seq'::regclass);


--
-- Name: ut_diamant_ansokta ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_ansokta ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_diamant_ansokta_ogc_fid_seq'::regclass);


--
-- Name: ut_diamant_beviljade ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_beviljade ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_diamant_beviljade_ogc_fid_seq'::regclass);


--
-- Name: ut_diamant_forbud ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_forbud ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_diamant_forbud_ogc_fid_seq'::regclass);


--
-- Name: ut_metaller_industrimineral_ansokta ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_ansokta ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_metaller_industrimineral_ansokta_ogc_fid_seq'::regclass);


--
-- Name: ut_metaller_industrimineral_beviljade ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_beviljade ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_metaller_industrimineral_beviljade_ogc_fid_seq'::regclass);


--
-- Name: ut_metaller_industrimineral_forbud ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forbud ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_metaller_industrimineral_forbud_ogc_fid_seq'::regclass);


--
-- Name: ut_metaller_industrimineral_forfallna ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forfallna ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_metaller_industrimineral_forfallna_ogc_fid_seq'::regclass);


--
-- Name: ut_olja_gas_diamant_forfallna ogc_fid; Type: DEFAULT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_olja_gas_diamant_forfallna ALTER COLUMN ogc_fid SET DEFAULT nextval('mrr.ut_olja_gas_diamant_forfallna_ogc_fid_seq'::regclass);


--
-- Name: naturvardsavtal ogc_fid; Type: DEFAULT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.naturvardsavtal ALTER COLUMN ogc_fid SET DEFAULT nextval('nvk.naturvardsavtal_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_friluftsliv ogc_fid; Type: DEFAULT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.riksintresse_friluftsliv ALTER COLUMN ogc_fid SET DEFAULT nextval('nvk.riksintresse_friluftsliv_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_naturvard ogc_fid; Type: DEFAULT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.riksintresse_naturvard ALTER COLUMN ogc_fid SET DEFAULT nextval('nvk.riksintresse_naturvard_ogc_fid_seq'::regclass);


--
-- Name: skyddsvard_statlig_skog ogc_fid; Type: DEFAULT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.skyddsvard_statlig_skog ALTER COLUMN ogc_fid SET DEFAULT nextval('nvk.skyddsvard_statlig_skog_ogc_fid_seq'::regclass);


--
-- Name: Biosfarsomraden ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biosfarsomraden" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Biosfarsomraden_ogc_fid_seq"'::regclass);


--
-- Name: Biotopskydd ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biotopskydd" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Biotopskydd_ogc_fid_seq"'::regclass);


--
-- Name: Djur_och_vaxtskyddsomrade ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Djur_och_vaxtskyddsomrade" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Djur_och_vaxtskyddsomrade_ogc_fid_seq"'::regclass);


--
-- Name: HELCOM ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."HELCOM" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."HELCOM_ogc_fid_seq"'::regclass);


--
-- Name: Interimistiskt_forbud ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Interimistiskt_forbud" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Interimistiskt_forbud_ogc_fid_seq"'::regclass);


--
-- Name: Kultureservat ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Kultureservat" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Kultureservat_ogc_fid_seq"'::regclass);


--
-- Name: Landskapsbildsskyddsomrade ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Landskapsbildsskyddsomrade" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Landskapsbildsskyddsomrade_ogc_fid_seq"'::regclass);


--
-- Name: Nationalpark ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Nationalpark" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Nationalpark_ogc_fid_seq"'::regclass);


--
-- Name: Naturminne_punkt ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_punkt" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Naturminne_punkt_ogc_fid_seq"'::regclass);


--
-- Name: Naturminne_yta ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_yta" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Naturminne_yta_ogc_fid_seq"'::regclass);


--
-- Name: Naturreservat ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturreservat" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Naturreservat_ogc_fid_seq"'::regclass);


--
-- Name: Naturvardsomrade ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturvardsomrade" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Naturvardsomrade_ogc_fid_seq"'::regclass);


--
-- Name: OSPAR ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."OSPAR_ogc_fid_seq"'::regclass);


--
-- Name: Ovrigt_biotopskyddsomrade ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ovrigt_biotopskyddsomrade" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Ovrigt_biotopskyddsomrade_ogc_fid_seq"'::regclass);


--
-- Name: Ramsar ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ramsar" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Ramsar_ogc_fid_seq"'::regclass);


--
-- Name: SCI_Rikstackande ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SCI_Rikstackande" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."SCI_Rikstackande_ogc_fid_seq"'::regclass);


--
-- Name: SPA_Rikstackande ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SPA_Rikstackande" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."SPA_Rikstackande_ogc_fid_seq"'::regclass);


--
-- Name: Tilltradesforbud ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Tilltradesforbud" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Tilltradesforbud_ogc_fid_seq"'::regclass);


--
-- Name: Varldsarv ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Varldsarv" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Varldsarv_ogc_fid_seq"'::regclass);


--
-- Name: Vattenskyddsomrade ogc_fid; Type: DEFAULT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Vattenskyddsomrade" ALTER COLUMN ogc_fid SET DEFAULT nextval('nvr."Vattenskyddsomrade_ogc_fid_seq"'::regclass);


--
-- Name: metadata id; Type: DEFAULT; Schema: ogr_system_tables; Owner: geodata
--

ALTER TABLE ONLY ogr_system_tables.metadata ALTER COLUMN id SET DEFAULT nextval('ogr_system_tables.metadata_id_seq'::regclass);


--
-- Name: layercache ogc_fid; Type: DEFAULT; Schema: public; Owner: geodata
--

ALTER TABLE ONLY public.layercache ALTER COLUMN ogc_fid SET DEFAULT nextval('public.layercache_ogc_fid_seq'::regclass);


--
-- Name: betesomrade ogc_fid; Type: DEFAULT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.betesomrade ALTER COLUMN ogc_fid SET DEFAULT nextval('sametinget.betesomrade_ogc_fid_seq'::regclass);


--
-- Name: flyttled ogc_fid; Type: DEFAULT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.flyttled ALTER COLUMN ogc_fid SET DEFAULT nextval('sametinget.flyttled_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_rennaringen ogc_fid; Type: DEFAULT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen ALTER COLUMN ogc_fid SET DEFAULT nextval('sametinget.riksintresse_rennaringen_ogc_fid_seq'::regclass);


--
-- Name: riksintresse_rennaringen_karnomrade ogc_fid; Type: DEFAULT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen_karnomrade ALTER COLUMN ogc_fid SET DEFAULT nextval('sametinget.riksintresse_rennaringen_karnomrade_ogc_fid_seq'::regclass);


--
-- Name: atervatningsavtal ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.atervatningsavtal ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.atervatningsavtal_ogc_fid_seq'::regclass);


--
-- Name: avverk_anmald ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_anmald ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.avverk_anmald_ogc_fid_seq'::regclass);


--
-- Name: avverk_utford ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_utford ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.avverk_utford_ogc_fid_seq'::regclass);


--
-- Name: naturvarde ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvarde ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.naturvarde_ogc_fid_seq'::regclass);


--
-- Name: naturvardsavtal ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvardsavtal ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.naturvardsavtal_ogc_fid_seq'::regclass);


--
-- Name: nyckelbiotop ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.nyckelbiotop_ogc_fid_seq'::regclass);


--
-- Name: nyckelbiotop_storskogsbruk ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop_storskogsbruk ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.nyckelbiotop_storskogsbruk_ogc_fid_seq'::regclass);


--
-- Name: sumpskog ogc_fid; Type: DEFAULT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.sumpskog ALTER COLUMN ogc_fid SET DEFAULT nextval('sks.sumpskog_ogc_fid_seq'::regclass);


--
-- Name: ledningar ogc_fid; Type: DEFAULT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.ledningar ALTER COLUMN ogc_fid SET DEFAULT nextval('svk.ledningar_ogc_fid_seq'::regclass);


--
-- Name: stationsomraden ogc_fid; Type: DEFAULT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.stationsomraden ALTER COLUMN ogc_fid SET DEFAULT nextval('svk.stationsomraden_ogc_fid_seq'::regclass);


--
-- Name: stolpar ogc_fid; Type: DEFAULT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.stolpar ALTER COLUMN ogc_fid SET DEFAULT nextval('svk.stolpar_ogc_fid_seq'::regclass);


--
-- Name: transmissionsnatsprojekt ogc_fid; Type: DEFAULT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.transmissionsnatsprojekt ALTER COLUMN ogc_fid SET DEFAULT nextval('svk.transmissionsnatsprojekt_ogc_fid_seq'::regclass);


--
-- Name: havsbaserad_vindkraft ogc_fid; Type: DEFAULT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.havsbaserad_vindkraft ALTER COLUMN ogc_fid SET DEFAULT nextval('vbk.havsbaserad_vindkraft_ogc_fid_seq'::regclass);


--
-- Name: projekteringsomraden ogc_fid; Type: DEFAULT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.projekteringsomraden ALTER COLUMN ogc_fid SET DEFAULT nextval('vbk.projekteringsomraden_ogc_fid_seq'::regclass);


--
-- Name: vindkraftverk ogc_fid; Type: DEFAULT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.vindkraftverk ALTER COLUMN ogc_fid SET DEFAULT nextval('vbk.vindkraftverk_ogc_fid_seq'::regclass);


--
-- Name: kommunyta kommunyta_kommunkod_key; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta
    ADD CONSTRAINT kommunyta_kommunkod_key UNIQUE (kommunkod);


--
-- Name: kommunyta kommunyta_objektidentitet_key; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta
    ADD CONSTRAINT kommunyta_objektidentitet_key UNIQUE (objektidentitet);


--
-- Name: kommunyta kommunyta_pkey; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta
    ADD CONSTRAINT kommunyta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: lansyta lansyta_lanskod_key; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta
    ADD CONSTRAINT lansyta_lanskod_key UNIQUE (lanskod);


--
-- Name: lansyta lansyta_objektidentitet_key; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta
    ADD CONSTRAINT lansyta_objektidentitet_key UNIQUE (objektidentitet);


--
-- Name: lansyta lansyta_pkey; Type: CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta
    ADD CONSTRAINT lansyta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: pagaende_naturreservatsbildning pagaende_naturreservatsbildning_pkey; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.pagaende_naturreservatsbildning
    ADD CONSTRAINT pagaende_naturreservatsbildning_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_obruten_kust riksintresse_obruten_kust_pkey; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_obruten_kust
    ADD CONSTRAINT riksintresse_obruten_kust_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_obrutet_fjall riksintresse_obrutet_fjall_ORIGINALID_key; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_obrutet_fjall
    ADD CONSTRAINT "riksintresse_obrutet_fjall_ORIGINALID_key" UNIQUE ("ORIGINALID");


--
-- Name: riksintresse_obrutet_fjall riksintresse_obrutet_fjall_pkey; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_obrutet_fjall
    ADD CONSTRAINT riksintresse_obrutet_fjall_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_rorligt_friluftsliv riksintresse_rorligt_friluftsliv_pkey; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_rorligt_friluftsliv
    ADD CONSTRAINT riksintresse_rorligt_friluftsliv_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_skyddade_vattendrag riksintresse_skyddade_vattendrag_ORIGINALID_key; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_skyddade_vattendrag
    ADD CONSTRAINT "riksintresse_skyddade_vattendrag_ORIGINALID_key" UNIQUE ("ORIGINALID");


--
-- Name: riksintresse_skyddade_vattendrag riksintresse_skyddade_vattendrag_pkey; Type: CONSTRAINT; Schema: lst; Owner: geodata
--

ALTER TABLE ONLY lst.riksintresse_skyddade_vattendrag
    ADD CONSTRAINT riksintresse_skyddade_vattendrag_pkey PRIMARY KEY (ogc_fid);


--
-- Name: dammar dammar_DammID_key; Type: CONSTRAINT; Schema: misc; Owner: geodata
--

ALTER TABLE ONLY misc.dammar
    ADD CONSTRAINT "dammar_DammID_key" UNIQUE ("DammID");


--
-- Name: dammar dammar_pkey; Type: CONSTRAINT; Schema: misc; Owner: geodata
--

ALTER TABLE ONLY misc.dammar
    ADD CONSTRAINT dammar_pkey PRIMARY KEY (ogc_fid);


--
-- Name: gigafactories gigafactories_pkey; Type: CONSTRAINT; Schema: misc; Owner: geodata
--

ALTER TABLE ONLY misc.gigafactories
    ADD CONSTRAINT gigafactories_pkey PRIMARY KEY (ogc_fid);


--
-- Name: bearbetningskoncessioner_ansokta bearbetningskoncessioner_ansokta_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_ansokta
    ADD CONSTRAINT bearbetningskoncessioner_ansokta_diarynr_key UNIQUE (diarynr);


--
-- Name: bearbetningskoncessioner_ansokta bearbetningskoncessioner_ansokta_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_ansokta
    ADD CONSTRAINT bearbetningskoncessioner_ansokta_name_key UNIQUE (name);


--
-- Name: bearbetningskoncessioner_ansokta bearbetningskoncessioner_ansokta_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_ansokta
    ADD CONSTRAINT bearbetningskoncessioner_ansokta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: bearbetningskoncessioner_beviljade bearbetningskoncessioner_beviljade_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_beviljade
    ADD CONSTRAINT bearbetningskoncessioner_beviljade_licenceid_key UNIQUE (licenceid);


--
-- Name: bearbetningskoncessioner_beviljade bearbetningskoncessioner_beviljade_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_beviljade
    ADD CONSTRAINT bearbetningskoncessioner_beviljade_name_key UNIQUE (name);


--
-- Name: bearbetningskoncessioner_beviljade bearbetningskoncessioner_beviljade_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_beviljade
    ADD CONSTRAINT bearbetningskoncessioner_beviljade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: bearbetningskoncessioner_forfallna bearbetningskoncessioner_forfallna_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_forfallna
    ADD CONSTRAINT bearbetningskoncessioner_forfallna_name_key UNIQUE (name);


--
-- Name: bearbetningskoncessioner_forfallna bearbetningskoncessioner_forfallna_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.bearbetningskoncessioner_forfallna
    ADD CONSTRAINT bearbetningskoncessioner_forfallna_pkey PRIMARY KEY (ogc_fid);


--
-- Name: markanvisningar_bk_ansokta markanvisningar_bk_ansokta_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_ansokta
    ADD CONSTRAINT markanvisningar_bk_ansokta_diarynr_key UNIQUE (diarynr);


--
-- Name: markanvisningar_bk_ansokta markanvisningar_bk_ansokta_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_ansokta
    ADD CONSTRAINT markanvisningar_bk_ansokta_name_key UNIQUE (name);


--
-- Name: markanvisningar_bk_ansokta markanvisningar_bk_ansokta_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_ansokta
    ADD CONSTRAINT markanvisningar_bk_ansokta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: markanvisningar_bk_beviljade markanvisningar_bk_beviljade_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_beviljade
    ADD CONSTRAINT markanvisningar_bk_beviljade_licenceid_key UNIQUE (licenceid);


--
-- Name: markanvisningar_bk_beviljade markanvisningar_bk_beviljade_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.markanvisningar_bk_beviljade
    ADD CONSTRAINT markanvisningar_bk_beviljade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_diamant_ansokta ut_diamant_ansokta_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_ansokta
    ADD CONSTRAINT ut_diamant_ansokta_diarynr_key UNIQUE (diarynr);


--
-- Name: ut_diamant_ansokta ut_diamant_ansokta_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_ansokta
    ADD CONSTRAINT ut_diamant_ansokta_name_key UNIQUE (name);


--
-- Name: ut_diamant_ansokta ut_diamant_ansokta_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_ansokta
    ADD CONSTRAINT ut_diamant_ansokta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_diamant_beviljade ut_diamant_beviljade_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_beviljade
    ADD CONSTRAINT ut_diamant_beviljade_diarynr_key UNIQUE (diarynr);


--
-- Name: ut_diamant_beviljade ut_diamant_beviljade_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_beviljade
    ADD CONSTRAINT ut_diamant_beviljade_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_diamant_beviljade ut_diamant_beviljade_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_beviljade
    ADD CONSTRAINT ut_diamant_beviljade_name_key UNIQUE (name);


--
-- Name: ut_diamant_beviljade ut_diamant_beviljade_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_beviljade
    ADD CONSTRAINT ut_diamant_beviljade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_diamant_forbud ut_diamant_forbud_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_forbud
    ADD CONSTRAINT ut_diamant_forbud_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_diamant_forbud ut_diamant_forbud_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_forbud
    ADD CONSTRAINT ut_diamant_forbud_name_key UNIQUE (name);


--
-- Name: ut_diamant_forbud ut_diamant_forbud_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_diamant_forbud
    ADD CONSTRAINT ut_diamant_forbud_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_metaller_industrimineral_ansokta ut_metaller_industrimineral_ansokta_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_ansokta
    ADD CONSTRAINT ut_metaller_industrimineral_ansokta_diarynr_key UNIQUE (diarynr);


--
-- Name: ut_metaller_industrimineral_ansokta ut_metaller_industrimineral_ansokta_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_ansokta
    ADD CONSTRAINT ut_metaller_industrimineral_ansokta_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_metaller_industrimineral_beviljade ut_metaller_industrimineral_beviljade_diarynr_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_beviljade
    ADD CONSTRAINT ut_metaller_industrimineral_beviljade_diarynr_key UNIQUE (diarynr);


--
-- Name: ut_metaller_industrimineral_beviljade ut_metaller_industrimineral_beviljade_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_beviljade
    ADD CONSTRAINT ut_metaller_industrimineral_beviljade_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_metaller_industrimineral_beviljade ut_metaller_industrimineral_beviljade_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_beviljade
    ADD CONSTRAINT ut_metaller_industrimineral_beviljade_name_key UNIQUE (name);


--
-- Name: ut_metaller_industrimineral_beviljade ut_metaller_industrimineral_beviljade_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_beviljade
    ADD CONSTRAINT ut_metaller_industrimineral_beviljade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_metaller_industrimineral_forbud ut_metaller_industrimineral_forbud_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forbud
    ADD CONSTRAINT ut_metaller_industrimineral_forbud_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_metaller_industrimineral_forbud ut_metaller_industrimineral_forbud_name_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forbud
    ADD CONSTRAINT ut_metaller_industrimineral_forbud_name_key UNIQUE (name);


--
-- Name: ut_metaller_industrimineral_forbud ut_metaller_industrimineral_forbud_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forbud
    ADD CONSTRAINT ut_metaller_industrimineral_forbud_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_metaller_industrimineral_forfallna ut_metaller_industrimineral_forfallna_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forfallna
    ADD CONSTRAINT ut_metaller_industrimineral_forfallna_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_metaller_industrimineral_forfallna ut_metaller_industrimineral_forfallna_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_metaller_industrimineral_forfallna
    ADD CONSTRAINT ut_metaller_industrimineral_forfallna_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ut_olja_gas_diamant_forfallna ut_olja_gas_diamant_forfallna_licenceid_key; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_olja_gas_diamant_forfallna
    ADD CONSTRAINT ut_olja_gas_diamant_forfallna_licenceid_key UNIQUE (licenceid);


--
-- Name: ut_olja_gas_diamant_forfallna ut_olja_gas_diamant_forfallna_pkey; Type: CONSTRAINT; Schema: mrr; Owner: geodata
--

ALTER TABLE ONLY mrr.ut_olja_gas_diamant_forfallna
    ADD CONSTRAINT ut_olja_gas_diamant_forfallna_pkey PRIMARY KEY (ogc_fid);


--
-- Name: naturvardsavtal naturvardsavtal_pkey; Type: CONSTRAINT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.naturvardsavtal
    ADD CONSTRAINT naturvardsavtal_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_friluftsliv riksintresse_friluftsliv_OMRADESNR_key; Type: CONSTRAINT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.riksintresse_friluftsliv
    ADD CONSTRAINT "riksintresse_friluftsliv_OMRADESNR_key" UNIQUE ("OMRADESNR");


--
-- Name: riksintresse_friluftsliv riksintresse_friluftsliv_pkey; Type: CONSTRAINT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.riksintresse_friluftsliv
    ADD CONSTRAINT riksintresse_friluftsliv_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_naturvard riksintresse_naturvard_pkey; Type: CONSTRAINT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.riksintresse_naturvard
    ADD CONSTRAINT riksintresse_naturvard_pkey PRIMARY KEY (ogc_fid);


--
-- Name: skyddsvard_statlig_skog skyddsvard_statlig_skog_pkey; Type: CONSTRAINT; Schema: nvk; Owner: geodata
--

ALTER TABLE ONLY nvk.skyddsvard_statlig_skog
    ADD CONSTRAINT skyddsvard_statlig_skog_pkey PRIMARY KEY (ogc_fid);


--
-- Name: Biosfarsomraden Biosfarsomraden_NAMN_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biosfarsomraden"
    ADD CONSTRAINT "Biosfarsomraden_NAMN_key" UNIQUE ("NAMN");


--
-- Name: Biosfarsomraden Biosfarsomraden_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biosfarsomraden"
    ADD CONSTRAINT "Biosfarsomraden_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Biotopskydd Biotopskydd_Beteckn_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biotopskydd"
    ADD CONSTRAINT "Biotopskydd_Beteckn_key" UNIQUE ("Beteckn");


--
-- Name: Biotopskydd Biotopskydd_Uuid_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biotopskydd"
    ADD CONSTRAINT "Biotopskydd_Uuid_key" UNIQUE ("Uuid");


--
-- Name: Biotopskydd Biotopskydd_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Biotopskydd"
    ADD CONSTRAINT "Biotopskydd_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Djur_och_vaxtskyddsomrade Djur_och_vaxtskyddsomrade_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Djur_och_vaxtskyddsomrade"
    ADD CONSTRAINT "Djur_och_vaxtskyddsomrade_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: HELCOM HELCOM_BSPA_ID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."HELCOM"
    ADD CONSTRAINT "HELCOM_BSPA_ID_key" UNIQUE ("BSPA_ID");


--
-- Name: HELCOM HELCOM_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."HELCOM"
    ADD CONSTRAINT "HELCOM_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Interimistiskt_forbud Interimistiskt_forbud_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Interimistiskt_forbud"
    ADD CONSTRAINT "Interimistiskt_forbud_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Interimistiskt_forbud Interimistiskt_forbud_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Interimistiskt_forbud"
    ADD CONSTRAINT "Interimistiskt_forbud_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Kultureservat Kultureservat_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Kultureservat"
    ADD CONSTRAINT "Kultureservat_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Kultureservat Kultureservat_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Kultureservat"
    ADD CONSTRAINT "Kultureservat_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Landskapsbildsskyddsomrade Landskapsbildsskyddsomrade_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Landskapsbildsskyddsomrade"
    ADD CONSTRAINT "Landskapsbildsskyddsomrade_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Landskapsbildsskyddsomrade Landskapsbildsskyddsomrade_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Landskapsbildsskyddsomrade"
    ADD CONSTRAINT "Landskapsbildsskyddsomrade_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Nationalpark Nationalpark_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Nationalpark"
    ADD CONSTRAINT "Nationalpark_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Nationalpark Nationalpark_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Nationalpark"
    ADD CONSTRAINT "Nationalpark_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Naturminne_punkt Naturminne_punkt_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_punkt"
    ADD CONSTRAINT "Naturminne_punkt_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Naturminne_punkt Naturminne_punkt_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_punkt"
    ADD CONSTRAINT "Naturminne_punkt_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Naturminne_yta Naturminne_yta_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_yta"
    ADD CONSTRAINT "Naturminne_yta_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Naturminne_yta Naturminne_yta_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturminne_yta"
    ADD CONSTRAINT "Naturminne_yta_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Naturreservat Naturreservat_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturreservat"
    ADD CONSTRAINT "Naturreservat_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Naturvardsomrade Naturvardsomrade_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturvardsomrade"
    ADD CONSTRAINT "Naturvardsomrade_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Naturvardsomrade Naturvardsomrade_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Naturvardsomrade"
    ADD CONSTRAINT "Naturvardsomrade_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: OSPAR OSPAR_MPA_ID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR"
    ADD CONSTRAINT "OSPAR_MPA_ID_key" UNIQUE ("MPA_ID");


--
-- Name: OSPAR OSPAR_MPA_NAMN_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR"
    ADD CONSTRAINT "OSPAR_MPA_NAMN_key" UNIQUE ("MPA_NAMN");


--
-- Name: OSPAR OSPAR_N2000_SITE_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR"
    ADD CONSTRAINT "OSPAR_N2000_SITE_key" UNIQUE ("N2000_SITE");


--
-- Name: OSPAR OSPAR_NAMN_N2000_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR"
    ADD CONSTRAINT "OSPAR_NAMN_N2000_key" UNIQUE ("NAMN_N2000");


--
-- Name: OSPAR OSPAR_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."OSPAR"
    ADD CONSTRAINT "OSPAR_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Ovrigt_biotopskyddsomrade Ovrigt_biotopskyddsomrade_NVRID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ovrigt_biotopskyddsomrade"
    ADD CONSTRAINT "Ovrigt_biotopskyddsomrade_NVRID_key" UNIQUE ("NVRID");


--
-- Name: Ovrigt_biotopskyddsomrade Ovrigt_biotopskyddsomrade_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ovrigt_biotopskyddsomrade"
    ADD CONSTRAINT "Ovrigt_biotopskyddsomrade_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Ramsar Ramsar_NAMN_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ramsar"
    ADD CONSTRAINT "Ramsar_NAMN_key" UNIQUE ("NAMN");


--
-- Name: Ramsar Ramsar_RAMSAR_ID_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ramsar"
    ADD CONSTRAINT "Ramsar_RAMSAR_ID_key" UNIQUE ("RAMSAR_ID");


--
-- Name: Ramsar Ramsar_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Ramsar"
    ADD CONSTRAINT "Ramsar_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: SCI_Rikstackande SCI_Rikstackande_SITE_CODE_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SCI_Rikstackande"
    ADD CONSTRAINT "SCI_Rikstackande_SITE_CODE_key" UNIQUE ("SITE_CODE");


--
-- Name: SCI_Rikstackande SCI_Rikstackande_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SCI_Rikstackande"
    ADD CONSTRAINT "SCI_Rikstackande_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: SPA_Rikstackande SPA_Rikstackande_NAMN_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SPA_Rikstackande"
    ADD CONSTRAINT "SPA_Rikstackande_NAMN_key" UNIQUE ("NAMN");


--
-- Name: SPA_Rikstackande SPA_Rikstackande_SITE_CODE_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SPA_Rikstackande"
    ADD CONSTRAINT "SPA_Rikstackande_SITE_CODE_key" UNIQUE ("SITE_CODE");


--
-- Name: SPA_Rikstackande SPA_Rikstackande_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."SPA_Rikstackande"
    ADD CONSTRAINT "SPA_Rikstackande_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Tilltradesforbud Tilltradesforbud_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Tilltradesforbud"
    ADD CONSTRAINT "Tilltradesforbud_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Varldsarv Varldsarv_NAMN_key; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Varldsarv"
    ADD CONSTRAINT "Varldsarv_NAMN_key" UNIQUE ("NAMN");


--
-- Name: Varldsarv Varldsarv_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Varldsarv"
    ADD CONSTRAINT "Varldsarv_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: Vattenskyddsomrade Vattenskyddsomrade_pkey; Type: CONSTRAINT; Schema: nvr; Owner: geodata
--

ALTER TABLE ONLY nvr."Vattenskyddsomrade"
    ADD CONSTRAINT "Vattenskyddsomrade_pkey" PRIMARY KEY (ogc_fid);


--
-- Name: metadata metadata_schema_name_table_name_key; Type: CONSTRAINT; Schema: ogr_system_tables; Owner: geodata
--

ALTER TABLE ONLY ogr_system_tables.metadata
    ADD CONSTRAINT metadata_schema_name_table_name_key UNIQUE (schema_name, table_name);


--
-- Name: layercache layercache_layername_key; Type: CONSTRAINT; Schema: public; Owner: geodata
--

ALTER TABLE ONLY public.layercache
    ADD CONSTRAINT layercache_layername_key UNIQUE (layername);


--
-- Name: layercache layercache_pkey; Type: CONSTRAINT; Schema: public; Owner: geodata
--

ALTER TABLE ONLY public.layercache
    ADD CONSTRAINT layercache_pkey PRIMARY KEY (ogc_fid);


--
-- Name: betesomrade betesomrade_SAMEBY_ID_key; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.betesomrade
    ADD CONSTRAINT "betesomrade_SAMEBY_ID_key" UNIQUE ("SAMEBY_ID");


--
-- Name: betesomrade betesomrade_pkey; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.betesomrade
    ADD CONSTRAINT betesomrade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: flyttled flyttled_GlobalID_key; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.flyttled
    ADD CONSTRAINT "flyttled_GlobalID_key" UNIQUE ("GlobalID");


--
-- Name: flyttled flyttled_pkey; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.flyttled
    ADD CONSTRAINT flyttled_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_rennaringen riksintresse_rennaringen_GlobalID_key; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen
    ADD CONSTRAINT "riksintresse_rennaringen_GlobalID_key" UNIQUE ("GlobalID");


--
-- Name: riksintresse_rennaringen_karnomrade riksintresse_rennaringen_karnomrade_GlobalID_key; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen_karnomrade
    ADD CONSTRAINT "riksintresse_rennaringen_karnomrade_GlobalID_key" UNIQUE ("GlobalID");


--
-- Name: riksintresse_rennaringen_karnomrade riksintresse_rennaringen_karnomrade_pkey; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen_karnomrade
    ADD CONSTRAINT riksintresse_rennaringen_karnomrade_pkey PRIMARY KEY (ogc_fid);


--
-- Name: riksintresse_rennaringen riksintresse_rennaringen_pkey; Type: CONSTRAINT; Schema: sametinget; Owner: geodata
--

ALTER TABLE ONLY sametinget.riksintresse_rennaringen
    ADD CONSTRAINT riksintresse_rennaringen_pkey PRIMARY KEY (ogc_fid);


--
-- Name: atervatningsavtal atervatningsavtal_Uuid_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.atervatningsavtal
    ADD CONSTRAINT "atervatningsavtal_Uuid_key" UNIQUE ("Uuid");


--
-- Name: atervatningsavtal atervatningsavtal_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.atervatningsavtal
    ADD CONSTRAINT atervatningsavtal_pkey PRIMARY KEY (ogc_fid);


--
-- Name: avverk_anmald avverk_anmald_OBJECTID_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_anmald
    ADD CONSTRAINT "avverk_anmald_OBJECTID_key" UNIQUE ("OBJECTID");


--
-- Name: avverk_anmald avverk_anmald_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_anmald
    ADD CONSTRAINT avverk_anmald_pkey PRIMARY KEY (ogc_fid);


--
-- Name: avverk_utford avverk_utford_Beteckn_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_utford
    ADD CONSTRAINT "avverk_utford_Beteckn_key" UNIQUE ("Beteckn");


--
-- Name: avverk_utford avverk_utford_OBJECTID_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_utford
    ADD CONSTRAINT "avverk_utford_OBJECTID_key" UNIQUE ("OBJECTID");


--
-- Name: avverk_utford avverk_utford_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.avverk_utford
    ADD CONSTRAINT avverk_utford_pkey PRIMARY KEY (ogc_fid);


--
-- Name: naturvarde naturvarde_Beteckn_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvarde
    ADD CONSTRAINT "naturvarde_Beteckn_key" UNIQUE ("Beteckn");


--
-- Name: naturvarde naturvarde_ObjectId_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvarde
    ADD CONSTRAINT "naturvarde_ObjectId_key" UNIQUE ("ObjectId");


--
-- Name: naturvarde naturvarde_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvarde
    ADD CONSTRAINT naturvarde_pkey PRIMARY KEY (ogc_fid);


--
-- Name: naturvardsavtal naturvardsavtal_Beteckn_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvardsavtal
    ADD CONSTRAINT "naturvardsavtal_Beteckn_key" UNIQUE ("Beteckn");


--
-- Name: naturvardsavtal naturvardsavtal_Uuid_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvardsavtal
    ADD CONSTRAINT "naturvardsavtal_Uuid_key" UNIQUE ("Uuid");


--
-- Name: naturvardsavtal naturvardsavtal_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.naturvardsavtal
    ADD CONSTRAINT naturvardsavtal_pkey PRIMARY KEY (ogc_fid);


--
-- Name: nyckelbiotop nyckelbiotop_Beteckn_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop
    ADD CONSTRAINT "nyckelbiotop_Beteckn_key" UNIQUE ("Beteckn");


--
-- Name: nyckelbiotop nyckelbiotop_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop
    ADD CONSTRAINT nyckelbiotop_pkey PRIMARY KEY (ogc_fid);


--
-- Name: nyckelbiotop_storskogsbruk nyckelbiotop_storskogsbruk_objectid_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop_storskogsbruk
    ADD CONSTRAINT nyckelbiotop_storskogsbruk_objectid_key UNIQUE (objectid);


--
-- Name: nyckelbiotop_storskogsbruk nyckelbiotop_storskogsbruk_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.nyckelbiotop_storskogsbruk
    ADD CONSTRAINT nyckelbiotop_storskogsbruk_pkey PRIMARY KEY (ogc_fid);


--
-- Name: sumpskog sumpskog_OBJECTID_key; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.sumpskog
    ADD CONSTRAINT "sumpskog_OBJECTID_key" UNIQUE ("OBJECTID");


--
-- Name: sumpskog sumpskog_pkey; Type: CONSTRAINT; Schema: sks; Owner: geodata
--

ALTER TABLE ONLY sks.sumpskog
    ADD CONSTRAINT sumpskog_pkey PRIMARY KEY (ogc_fid);


--
-- Name: ledningar ledningar_pkey; Type: CONSTRAINT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.ledningar
    ADD CONSTRAINT ledningar_pkey PRIMARY KEY (ogc_fid);


--
-- Name: stationsomraden stationsomraden_pkey; Type: CONSTRAINT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.stationsomraden
    ADD CONSTRAINT stationsomraden_pkey PRIMARY KEY (ogc_fid);


--
-- Name: stolpar stolpar_pkey; Type: CONSTRAINT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.stolpar
    ADD CONSTRAINT stolpar_pkey PRIMARY KEY (ogc_fid);


--
-- Name: transmissionsnatsprojekt transmissionsnatsprojekt_pkey; Type: CONSTRAINT; Schema: svk; Owner: geodata
--

ALTER TABLE ONLY svk.transmissionsnatsprojekt
    ADD CONSTRAINT transmissionsnatsprojekt_pkey PRIMARY KEY (ogc_fid);


--
-- Name: havsbaserad_vindkraft havsbaserad_vindkraft_OmrID_key; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.havsbaserad_vindkraft
    ADD CONSTRAINT "havsbaserad_vindkraft_OmrID_key" UNIQUE ("OmrID");


--
-- Name: havsbaserad_vindkraft havsbaserad_vindkraft_pkey; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.havsbaserad_vindkraft
    ADD CONSTRAINT havsbaserad_vindkraft_pkey PRIMARY KEY (ogc_fid);


--
-- Name: projekteringsomraden projekteringsomraden_OmrID_key; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.projekteringsomraden
    ADD CONSTRAINT "projekteringsomraden_OmrID_key" UNIQUE ("OmrID");


--
-- Name: projekteringsomraden projekteringsomraden_pkey; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.projekteringsomraden
    ADD CONSTRAINT projekteringsomraden_pkey PRIMARY KEY (ogc_fid);


--
-- Name: vindkraftverk vindkraftverk_VerkID_key; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.vindkraftverk
    ADD CONSTRAINT "vindkraftverk_VerkID_key" UNIQUE ("VerkID");


--
-- Name: vindkraftverk vindkraftverk_pkey; Type: CONSTRAINT; Schema: vbk; Owner: geodata
--

ALTER TABLE ONLY vbk.vindkraftverk
    ADD CONSTRAINT vindkraftverk_pkey PRIMARY KEY (ogc_fid);


--
-- Name: kommunyta_sub_kommunkod_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX kommunyta_sub_kommunkod_idx ON lm_topo250.kommunyta_sub USING btree (kommunkod);


--
-- Name: kommunyta_sub_wkb_geometry_geom_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX kommunyta_sub_wkb_geometry_geom_idx ON lm_topo250.kommunyta_sub USING gist (wkb_geometry);


--
-- Name: kommunyta_wkb_geometry_geom_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX kommunyta_wkb_geometry_geom_idx ON lm_topo250.kommunyta USING gist (wkb_geometry);


--
-- Name: lansyta_sub_lanskod_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX lansyta_sub_lanskod_idx ON lm_topo250.lansyta_sub USING btree (lanskod);


--
-- Name: lansyta_sub_wkb_geometry_geom_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX lansyta_sub_wkb_geometry_geom_idx ON lm_topo250.lansyta_sub USING gist (wkb_geometry);


--
-- Name: lansyta_wkb_geometry_geom_idx; Type: INDEX; Schema: lm_topo250; Owner: geodata
--

CREATE INDEX lansyta_wkb_geometry_geom_idx ON lm_topo250.lansyta USING gist (wkb_geometry);


--
-- Name: pagaende_naturreservatsbildning_wkb_geometry_geom_idx; Type: INDEX; Schema: lst; Owner: geodata
--

CREATE INDEX pagaende_naturreservatsbildning_wkb_geometry_geom_idx ON lst.pagaende_naturreservatsbildning USING gist (wkb_geometry);


--
-- Name: riksintresse_obruten_kust_wkb_geometry_geom_idx; Type: INDEX; Schema: lst; Owner: geodata
--

CREATE INDEX riksintresse_obruten_kust_wkb_geometry_geom_idx ON lst.riksintresse_obruten_kust USING gist (wkb_geometry);


--
-- Name: riksintresse_obrutet_fjall_wkb_geometry_geom_idx; Type: INDEX; Schema: lst; Owner: geodata
--

CREATE INDEX riksintresse_obrutet_fjall_wkb_geometry_geom_idx ON lst.riksintresse_obrutet_fjall USING gist (wkb_geometry);


--
-- Name: riksintresse_rorligt_friluftsliv_wkb_geometry_geom_idx; Type: INDEX; Schema: lst; Owner: geodata
--

CREATE INDEX riksintresse_rorligt_friluftsliv_wkb_geometry_geom_idx ON lst.riksintresse_rorligt_friluftsliv USING gist (wkb_geometry);


--
-- Name: riksintresse_skyddade_vattendrag_wkb_geometry_geom_idx; Type: INDEX; Schema: lst; Owner: geodata
--

CREATE INDEX riksintresse_skyddade_vattendrag_wkb_geometry_geom_idx ON lst.riksintresse_skyddade_vattendrag USING gist (wkb_geometry);


--
-- Name: dammar_wkb_geometry_geom_idx; Type: INDEX; Schema: misc; Owner: geodata
--

CREATE INDEX dammar_wkb_geometry_geom_idx ON misc.dammar USING gist (wkb_geometry);


--
-- Name: gigafactories_wkb_geometry_geom_idx; Type: INDEX; Schema: misc; Owner: geodata
--

CREATE INDEX gigafactories_wkb_geometry_geom_idx ON misc.gigafactories USING gist (wkb_geometry);


--
-- Name: bearbetningskoncessioner_ansokta_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX bearbetningskoncessioner_ansokta_wkb_geometry_geom_idx ON mrr.bearbetningskoncessioner_ansokta USING gist (wkb_geometry);


--
-- Name: bearbetningskoncessioner_beviljade_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX bearbetningskoncessioner_beviljade_wkb_geometry_geom_idx ON mrr.bearbetningskoncessioner_beviljade USING gist (wkb_geometry);


--
-- Name: bearbetningskoncessioner_forfallna_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX bearbetningskoncessioner_forfallna_wkb_geometry_geom_idx ON mrr.bearbetningskoncessioner_forfallna USING gist (wkb_geometry);


--
-- Name: markanvisningar_bk_ansokta_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX markanvisningar_bk_ansokta_wkb_geometry_geom_idx ON mrr.markanvisningar_bk_ansokta USING gist (wkb_geometry);


--
-- Name: markanvisningar_bk_beviljade_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX markanvisningar_bk_beviljade_wkb_geometry_geom_idx ON mrr.markanvisningar_bk_beviljade USING gist (wkb_geometry);


--
-- Name: ut_diamant_ansokta_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_diamant_ansokta_wkb_geometry_geom_idx ON mrr.ut_diamant_ansokta USING gist (wkb_geometry);


--
-- Name: ut_diamant_beviljade_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_diamant_beviljade_wkb_geometry_geom_idx ON mrr.ut_diamant_beviljade USING gist (wkb_geometry);


--
-- Name: ut_diamant_forbud_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_diamant_forbud_wkb_geometry_geom_idx ON mrr.ut_diamant_forbud USING gist (wkb_geometry);


--
-- Name: ut_metaller_industrimineral_ansokta_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_metaller_industrimineral_ansokta_wkb_geometry_geom_idx ON mrr.ut_metaller_industrimineral_ansokta USING gist (wkb_geometry);


--
-- Name: ut_metaller_industrimineral_beviljade_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_metaller_industrimineral_beviljade_wkb_geometry_geom_idx ON mrr.ut_metaller_industrimineral_beviljade USING gist (wkb_geometry);


--
-- Name: ut_metaller_industrimineral_forbud_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_metaller_industrimineral_forbud_wkb_geometry_geom_idx ON mrr.ut_metaller_industrimineral_forbud USING gist (wkb_geometry);


--
-- Name: ut_metaller_industrimineral_forfallna_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_metaller_industrimineral_forfallna_wkb_geometry_geom_idx ON mrr.ut_metaller_industrimineral_forfallna USING gist (wkb_geometry);


--
-- Name: ut_olja_gas_diamant_forfallna_wkb_geometry_geom_idx; Type: INDEX; Schema: mrr; Owner: geodata
--

CREATE INDEX ut_olja_gas_diamant_forfallna_wkb_geometry_geom_idx ON mrr.ut_olja_gas_diamant_forfallna USING gist (wkb_geometry);


--
-- Name: naturvardsavtal_wkb_geometry_geom_idx; Type: INDEX; Schema: nvk; Owner: geodata
--

CREATE INDEX naturvardsavtal_wkb_geometry_geom_idx ON nvk.naturvardsavtal USING gist (wkb_geometry);


--
-- Name: riksintresse_friluftsliv_wkb_geometry_geom_idx; Type: INDEX; Schema: nvk; Owner: geodata
--

CREATE INDEX riksintresse_friluftsliv_wkb_geometry_geom_idx ON nvk.riksintresse_friluftsliv USING gist (wkb_geometry);


--
-- Name: riksintresse_naturvard_wkb_geometry_geom_idx; Type: INDEX; Schema: nvk; Owner: geodata
--

CREATE INDEX riksintresse_naturvard_wkb_geometry_geom_idx ON nvk.riksintresse_naturvard USING gist (wkb_geometry);


--
-- Name: skyddsvard_statlig_skog_wkb_geometry_geom_idx; Type: INDEX; Schema: nvk; Owner: geodata
--

CREATE INDEX skyddsvard_statlig_skog_wkb_geometry_geom_idx ON nvk.skyddsvard_statlig_skog USING gist (wkb_geometry);


--
-- Name: Biosfarsomraden_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Biosfarsomraden_wkb_geometry_geom_idx" ON nvr."Biosfarsomraden" USING gist (wkb_geometry);


--
-- Name: Biotopskydd_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Biotopskydd_wkb_geometry_geom_idx" ON nvr."Biotopskydd" USING gist (wkb_geometry);


--
-- Name: Djur_och_vaxtskyddsomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Djur_och_vaxtskyddsomrade_wkb_geometry_geom_idx" ON nvr."Djur_och_vaxtskyddsomrade" USING gist (wkb_geometry);


--
-- Name: HELCOM_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "HELCOM_wkb_geometry_geom_idx" ON nvr."HELCOM" USING gist (wkb_geometry);


--
-- Name: Interimistiskt_forbud_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Interimistiskt_forbud_wkb_geometry_geom_idx" ON nvr."Interimistiskt_forbud" USING gist (wkb_geometry);


--
-- Name: Kultureservat_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Kultureservat_wkb_geometry_geom_idx" ON nvr."Kultureservat" USING gist (wkb_geometry);


--
-- Name: Landskapsbildsskyddsomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Landskapsbildsskyddsomrade_wkb_geometry_geom_idx" ON nvr."Landskapsbildsskyddsomrade" USING gist (wkb_geometry);


--
-- Name: Nationalpark_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Nationalpark_wkb_geometry_geom_idx" ON nvr."Nationalpark" USING gist (wkb_geometry);


--
-- Name: Naturminne_punkt_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Naturminne_punkt_wkb_geometry_geom_idx" ON nvr."Naturminne_punkt" USING gist (wkb_geometry);


--
-- Name: Naturminne_yta_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Naturminne_yta_wkb_geometry_geom_idx" ON nvr."Naturminne_yta" USING gist (wkb_geometry);


--
-- Name: Naturreservat_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Naturreservat_wkb_geometry_geom_idx" ON nvr."Naturreservat" USING gist (wkb_geometry);


--
-- Name: Naturvardsomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Naturvardsomrade_wkb_geometry_geom_idx" ON nvr."Naturvardsomrade" USING gist (wkb_geometry);


--
-- Name: OSPAR_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "OSPAR_wkb_geometry_geom_idx" ON nvr."OSPAR" USING gist (wkb_geometry);


--
-- Name: Ovrigt_biotopskyddsomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Ovrigt_biotopskyddsomrade_wkb_geometry_geom_idx" ON nvr."Ovrigt_biotopskyddsomrade" USING gist (wkb_geometry);


--
-- Name: Ramsar_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Ramsar_wkb_geometry_geom_idx" ON nvr."Ramsar" USING gist (wkb_geometry);


--
-- Name: SCI_Rikstackande_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "SCI_Rikstackande_wkb_geometry_geom_idx" ON nvr."SCI_Rikstackande" USING gist (wkb_geometry);


--
-- Name: SPA_Rikstackande_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "SPA_Rikstackande_wkb_geometry_geom_idx" ON nvr."SPA_Rikstackande" USING gist (wkb_geometry);


--
-- Name: Tilltradesforbud_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Tilltradesforbud_wkb_geometry_geom_idx" ON nvr."Tilltradesforbud" USING gist (wkb_geometry);


--
-- Name: Varldsarv_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Varldsarv_wkb_geometry_geom_idx" ON nvr."Varldsarv" USING gist (wkb_geometry);


--
-- Name: Vattenskyddsomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: nvr; Owner: geodata
--

CREATE INDEX "Vattenskyddsomrade_wkb_geometry_geom_idx" ON nvr."Vattenskyddsomrade" USING gist (wkb_geometry);


--
-- Name: betesomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: sametinget; Owner: geodata
--

CREATE INDEX betesomrade_wkb_geometry_geom_idx ON sametinget.betesomrade USING gist (wkb_geometry);


--
-- Name: flyttled_wkb_geometry_geom_idx; Type: INDEX; Schema: sametinget; Owner: geodata
--

CREATE INDEX flyttled_wkb_geometry_geom_idx ON sametinget.flyttled USING gist (wkb_geometry);


--
-- Name: riksintresse_rennaringen_karnomrade_wkb_geometry_geom_idx; Type: INDEX; Schema: sametinget; Owner: geodata
--

CREATE INDEX riksintresse_rennaringen_karnomrade_wkb_geometry_geom_idx ON sametinget.riksintresse_rennaringen_karnomrade USING gist (wkb_geometry);


--
-- Name: riksintresse_rennaringen_wkb_geometry_geom_idx; Type: INDEX; Schema: sametinget; Owner: geodata
--

CREATE INDEX riksintresse_rennaringen_wkb_geometry_geom_idx ON sametinget.riksintresse_rennaringen USING gist (wkb_geometry);


--
-- Name: atervatningsavtal_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX atervatningsavtal_wkb_geometry_geom_idx ON sks.atervatningsavtal USING gist (wkb_geometry);


--
-- Name: avverk_anmald_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX avverk_anmald_wkb_geometry_geom_idx ON sks.avverk_anmald USING gist (wkb_geometry);


--
-- Name: avverk_utford_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX avverk_utford_wkb_geometry_geom_idx ON sks.avverk_utford USING gist (wkb_geometry);


--
-- Name: naturvarde_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX naturvarde_wkb_geometry_geom_idx ON sks.naturvarde USING gist (wkb_geometry);


--
-- Name: naturvardsavtal_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX naturvardsavtal_wkb_geometry_geom_idx ON sks.naturvardsavtal USING gist (wkb_geometry);


--
-- Name: nyckelbiotop_storskogsbruk_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX nyckelbiotop_storskogsbruk_wkb_geometry_geom_idx ON sks.nyckelbiotop_storskogsbruk USING gist (wkb_geometry);


--
-- Name: nyckelbiotop_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX nyckelbiotop_wkb_geometry_geom_idx ON sks.nyckelbiotop USING gist (wkb_geometry);


--
-- Name: sumpskog_wkb_geometry_geom_idx; Type: INDEX; Schema: sks; Owner: geodata
--

CREATE INDEX sumpskog_wkb_geometry_geom_idx ON sks.sumpskog USING gist (wkb_geometry);


--
-- Name: ledningar_wkb_geometry_geom_idx; Type: INDEX; Schema: svk; Owner: geodata
--

CREATE INDEX ledningar_wkb_geometry_geom_idx ON svk.ledningar USING gist (wkb_geometry);


--
-- Name: stationsomraden_wkb_geometry_geom_idx; Type: INDEX; Schema: svk; Owner: geodata
--

CREATE INDEX stationsomraden_wkb_geometry_geom_idx ON svk.stationsomraden USING gist (wkb_geometry);


--
-- Name: stolpar_wkb_geometry_geom_idx; Type: INDEX; Schema: svk; Owner: geodata
--

CREATE INDEX stolpar_wkb_geometry_geom_idx ON svk.stolpar USING gist (wkb_geometry);


--
-- Name: transmissionsnatsprojekt_wkb_geometry_geom_idx; Type: INDEX; Schema: svk; Owner: geodata
--

CREATE INDEX transmissionsnatsprojekt_wkb_geometry_geom_idx ON svk.transmissionsnatsprojekt USING gist (wkb_geometry);


--
-- Name: havsbaserad_vindkraft_wkb_geometry_geom_idx; Type: INDEX; Schema: vbk; Owner: geodata
--

CREATE INDEX havsbaserad_vindkraft_wkb_geometry_geom_idx ON vbk.havsbaserad_vindkraft USING gist (wkb_geometry);


--
-- Name: projekteringsomraden_wkb_geometry_geom_idx; Type: INDEX; Schema: vbk; Owner: geodata
--

CREATE INDEX projekteringsomraden_wkb_geometry_geom_idx ON vbk.projekteringsomraden USING gist (wkb_geometry);


--
-- Name: vindkraftverk_wkb_geometry_geom_idx; Type: INDEX; Schema: vbk; Owner: geodata
--

CREATE INDEX vindkraftverk_wkb_geometry_geom_idx ON vbk.vindkraftverk USING gist (wkb_geometry);


--
-- Name: kommunyta kommunyta_subdivide_trigger; Type: TRIGGER; Schema: lm_topo250; Owner: geodata
--

CREATE TRIGGER kommunyta_subdivide_trigger AFTER INSERT OR DELETE OR UPDATE ON lm_topo250.kommunyta FOR EACH ROW EXECUTE FUNCTION lm_topo250.kommunyta_subdivide_func();


--
-- Name: lansyta lansyta_subdivide_trigger; Type: TRIGGER; Schema: lm_topo250; Owner: geodata
--

CREATE TRIGGER lansyta_subdivide_trigger AFTER INSERT OR DELETE OR UPDATE ON lm_topo250.lansyta FOR EACH ROW EXECUTE FUNCTION lm_topo250.lansyta_subdivide_func();


--
-- Name: kommunyta_sub kommunyta_sub_kommunkod_fkey; Type: FK CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.kommunyta_sub
    ADD CONSTRAINT kommunyta_sub_kommunkod_fkey FOREIGN KEY (kommunkod) REFERENCES lm_topo250.kommunyta(kommunkod) ON DELETE CASCADE;


--
-- Name: lansyta_sub lansyta_sub_lanskod_fkey; Type: FK CONSTRAINT; Schema: lm_topo250; Owner: geodata
--

ALTER TABLE ONLY lm_topo250.lansyta_sub
    ADD CONSTRAINT lansyta_sub_lanskod_fkey FOREIGN KEY (lanskod) REFERENCES lm_topo250.lansyta(lanskod) ON DELETE CASCADE;


--
-- Name: DATABASE geodata; Type: ACL; Schema: -; Owner: postgres
--

GRANT CONNECT ON DATABASE geodata TO geodata;
GRANT CONNECT ON DATABASE geodata TO guest;


--
-- Name: SCHEMA lm_topo250; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA lm_topo250 TO geodata;
GRANT USAGE ON SCHEMA lm_topo250 TO guest;


--
-- Name: SCHEMA lst; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA lst TO geodata;
GRANT USAGE ON SCHEMA lst TO guest;


--
-- Name: SCHEMA misc; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA misc TO geodata;
GRANT USAGE ON SCHEMA misc TO guest;


--
-- Name: SCHEMA mrr; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA mrr TO geodata;
GRANT USAGE ON SCHEMA mrr TO guest;


--
-- Name: SCHEMA nvk; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA nvk TO geodata;
GRANT USAGE ON SCHEMA nvk TO guest;


--
-- Name: SCHEMA nvr; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA nvr TO geodata;
GRANT USAGE ON SCHEMA nvr TO guest;


--
-- Name: SCHEMA ogr_system_tables; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA ogr_system_tables TO geodata;
GRANT USAGE ON SCHEMA ogr_system_tables TO guest;


--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: pg_database_owner
--

GRANT USAGE ON SCHEMA public TO geodata;
GRANT USAGE ON SCHEMA public TO guest;


--
-- Name: SCHEMA sametinget; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA sametinget TO geodata;
GRANT USAGE ON SCHEMA sametinget TO guest;


--
-- Name: SCHEMA sks; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA sks TO geodata;
GRANT USAGE ON SCHEMA sks TO guest;


--
-- Name: SCHEMA svk; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA svk TO geodata;
GRANT USAGE ON SCHEMA svk TO guest;


--
-- Name: SCHEMA vbk; Type: ACL; Schema: -; Owner: postgres
--

GRANT USAGE ON SCHEMA vbk TO geodata;
GRANT USAGE ON SCHEMA vbk TO guest;


--
-- Name: FUNCTION get_counties(public.geometry); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.get_counties(public.geometry) TO geodata;
GRANT ALL ON FUNCTION public.get_counties(public.geometry) TO guest;


--
-- Name: FUNCTION get_municipalities(public.geometry); Type: ACL; Schema: public; Owner: postgres
--

GRANT ALL ON FUNCTION public.get_municipalities(public.geometry) TO geodata;
GRANT ALL ON FUNCTION public.get_municipalities(public.geometry) TO guest;


--
-- Name: TABLE kommunyta; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT ON TABLE lm_topo250.kommunyta TO guest;


--
-- Name: SEQUENCE kommunyta_ogc_fid_seq; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lm_topo250.kommunyta_ogc_fid_seq TO guest;


--
-- Name: TABLE kommunyta_sub; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT ON TABLE lm_topo250.kommunyta_sub TO guest;


--
-- Name: SEQUENCE kommunyta_sub_ogc_fid_seq; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lm_topo250.kommunyta_sub_ogc_fid_seq TO guest;


--
-- Name: TABLE lansyta; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT ON TABLE lm_topo250.lansyta TO guest;


--
-- Name: SEQUENCE lansyta_ogc_fid_seq; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lm_topo250.lansyta_ogc_fid_seq TO guest;


--
-- Name: TABLE lansyta_sub; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT ON TABLE lm_topo250.lansyta_sub TO guest;


--
-- Name: SEQUENCE lansyta_sub_ogc_fid_seq; Type: ACL; Schema: lm_topo250; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lm_topo250.lansyta_sub_ogc_fid_seq TO guest;


--
-- Name: TABLE pagaende_naturreservatsbildning; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT ON TABLE lst.pagaende_naturreservatsbildning TO guest;


--
-- Name: SEQUENCE pagaende_naturreservatsbildning_ogc_fid_seq; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lst.pagaende_naturreservatsbildning_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_obruten_kust; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT ON TABLE lst.riksintresse_obruten_kust TO guest;


--
-- Name: SEQUENCE riksintresse_obruten_kust_ogc_fid_seq; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lst.riksintresse_obruten_kust_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_obrutet_fjall; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT ON TABLE lst.riksintresse_obrutet_fjall TO guest;


--
-- Name: SEQUENCE riksintresse_obrutet_fjall_ogc_fid_seq; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lst.riksintresse_obrutet_fjall_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_rorligt_friluftsliv; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT ON TABLE lst.riksintresse_rorligt_friluftsliv TO guest;


--
-- Name: SEQUENCE riksintresse_rorligt_friluftsliv_ogc_fid_seq; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lst.riksintresse_rorligt_friluftsliv_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_skyddade_vattendrag; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT ON TABLE lst.riksintresse_skyddade_vattendrag TO guest;


--
-- Name: SEQUENCE riksintresse_skyddade_vattendrag_ogc_fid_seq; Type: ACL; Schema: lst; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE lst.riksintresse_skyddade_vattendrag_ogc_fid_seq TO guest;


--
-- Name: TABLE dammar; Type: ACL; Schema: misc; Owner: geodata
--

GRANT SELECT ON TABLE misc.dammar TO guest;


--
-- Name: SEQUENCE dammar_ogc_fid_seq; Type: ACL; Schema: misc; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE misc.dammar_ogc_fid_seq TO guest;


--
-- Name: TABLE gigafactories; Type: ACL; Schema: misc; Owner: geodata
--

GRANT SELECT ON TABLE misc.gigafactories TO guest;


--
-- Name: SEQUENCE gigafactories_ogc_fid_seq; Type: ACL; Schema: misc; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE misc.gigafactories_ogc_fid_seq TO guest;


--
-- Name: TABLE bearbetningskoncessioner_ansokta; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.bearbetningskoncessioner_ansokta TO guest;


--
-- Name: SEQUENCE bearbetningskoncessioner_ansokta_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.bearbetningskoncessioner_ansokta_ogc_fid_seq TO guest;


--
-- Name: TABLE bearbetningskoncessioner_beviljade; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.bearbetningskoncessioner_beviljade TO guest;


--
-- Name: SEQUENCE bearbetningskoncessioner_beviljade_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.bearbetningskoncessioner_beviljade_ogc_fid_seq TO guest;


--
-- Name: TABLE bearbetningskoncessioner_forfallna; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.bearbetningskoncessioner_forfallna TO guest;


--
-- Name: SEQUENCE bearbetningskoncessioner_forfallna_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.bearbetningskoncessioner_forfallna_ogc_fid_seq TO guest;


--
-- Name: TABLE markanvisningar_bk_ansokta; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.markanvisningar_bk_ansokta TO guest;


--
-- Name: SEQUENCE markanvisningar_bk_ansokta_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.markanvisningar_bk_ansokta_ogc_fid_seq TO guest;


--
-- Name: TABLE markanvisningar_bk_beviljade; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.markanvisningar_bk_beviljade TO guest;


--
-- Name: SEQUENCE markanvisningar_bk_beviljade_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.markanvisningar_bk_beviljade_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_diamant_ansokta; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_diamant_ansokta TO guest;


--
-- Name: SEQUENCE ut_diamant_ansokta_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_diamant_ansokta_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_diamant_beviljade; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_diamant_beviljade TO guest;


--
-- Name: SEQUENCE ut_diamant_beviljade_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_diamant_beviljade_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_diamant_forbud; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_diamant_forbud TO guest;


--
-- Name: SEQUENCE ut_diamant_forbud_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_diamant_forbud_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_metaller_industrimineral_ansokta; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_metaller_industrimineral_ansokta TO guest;


--
-- Name: SEQUENCE ut_metaller_industrimineral_ansokta_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_metaller_industrimineral_ansokta_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_metaller_industrimineral_beviljade; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_metaller_industrimineral_beviljade TO guest;


--
-- Name: SEQUENCE ut_metaller_industrimineral_beviljade_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_metaller_industrimineral_beviljade_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_metaller_industrimineral_forbud; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_metaller_industrimineral_forbud TO guest;


--
-- Name: SEQUENCE ut_metaller_industrimineral_forbud_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_metaller_industrimineral_forbud_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_metaller_industrimineral_forfallna; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_metaller_industrimineral_forfallna TO guest;


--
-- Name: SEQUENCE ut_metaller_industrimineral_forfallna_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_metaller_industrimineral_forfallna_ogc_fid_seq TO guest;


--
-- Name: TABLE ut_olja_gas_diamant_forfallna; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT ON TABLE mrr.ut_olja_gas_diamant_forfallna TO guest;


--
-- Name: SEQUENCE ut_olja_gas_diamant_forfallna_ogc_fid_seq; Type: ACL; Schema: mrr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE mrr.ut_olja_gas_diamant_forfallna_ogc_fid_seq TO guest;


--
-- Name: TABLE naturvardsavtal; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT ON TABLE nvk.naturvardsavtal TO guest;


--
-- Name: SEQUENCE naturvardsavtal_ogc_fid_seq; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvk.naturvardsavtal_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_friluftsliv; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT ON TABLE nvk.riksintresse_friluftsliv TO guest;


--
-- Name: SEQUENCE riksintresse_friluftsliv_ogc_fid_seq; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvk.riksintresse_friluftsliv_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_naturvard; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT ON TABLE nvk.riksintresse_naturvard TO guest;


--
-- Name: SEQUENCE riksintresse_naturvard_ogc_fid_seq; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvk.riksintresse_naturvard_ogc_fid_seq TO guest;


--
-- Name: TABLE skyddsvard_statlig_skog; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT ON TABLE nvk.skyddsvard_statlig_skog TO guest;


--
-- Name: SEQUENCE skyddsvard_statlig_skog_ogc_fid_seq; Type: ACL; Schema: nvk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvk.skyddsvard_statlig_skog_ogc_fid_seq TO guest;


--
-- Name: TABLE "Biosfarsomraden"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Biosfarsomraden" TO guest;


--
-- Name: SEQUENCE "Biosfarsomraden_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Biosfarsomraden_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Biotopskydd"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Biotopskydd" TO guest;


--
-- Name: SEQUENCE "Biotopskydd_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Biotopskydd_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Djur_och_vaxtskyddsomrade"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Djur_och_vaxtskyddsomrade" TO guest;


--
-- Name: SEQUENCE "Djur_och_vaxtskyddsomrade_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Djur_och_vaxtskyddsomrade_ogc_fid_seq" TO guest;


--
-- Name: TABLE "HELCOM"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."HELCOM" TO guest;


--
-- Name: SEQUENCE "HELCOM_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."HELCOM_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Interimistiskt_forbud"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Interimistiskt_forbud" TO guest;


--
-- Name: SEQUENCE "Interimistiskt_forbud_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Interimistiskt_forbud_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Kultureservat"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Kultureservat" TO guest;


--
-- Name: SEQUENCE "Kultureservat_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Kultureservat_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Landskapsbildsskyddsomrade"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Landskapsbildsskyddsomrade" TO guest;


--
-- Name: SEQUENCE "Landskapsbildsskyddsomrade_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Landskapsbildsskyddsomrade_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Nationalpark"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Nationalpark" TO guest;


--
-- Name: SEQUENCE "Nationalpark_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Nationalpark_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Naturminne_punkt"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Naturminne_punkt" TO guest;


--
-- Name: SEQUENCE "Naturminne_punkt_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Naturminne_punkt_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Naturminne_yta"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Naturminne_yta" TO guest;


--
-- Name: SEQUENCE "Naturminne_yta_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Naturminne_yta_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Naturreservat"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Naturreservat" TO guest;


--
-- Name: SEQUENCE "Naturreservat_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Naturreservat_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Naturvardsomrade"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Naturvardsomrade" TO guest;


--
-- Name: SEQUENCE "Naturvardsomrade_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Naturvardsomrade_ogc_fid_seq" TO guest;


--
-- Name: TABLE "OSPAR"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."OSPAR" TO guest;


--
-- Name: SEQUENCE "OSPAR_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."OSPAR_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Ovrigt_biotopskyddsomrade"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Ovrigt_biotopskyddsomrade" TO guest;


--
-- Name: SEQUENCE "Ovrigt_biotopskyddsomrade_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Ovrigt_biotopskyddsomrade_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Ramsar"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Ramsar" TO guest;


--
-- Name: SEQUENCE "Ramsar_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Ramsar_ogc_fid_seq" TO guest;


--
-- Name: TABLE "SCI_Rikstackande"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."SCI_Rikstackande" TO guest;


--
-- Name: SEQUENCE "SCI_Rikstackande_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."SCI_Rikstackande_ogc_fid_seq" TO guest;


--
-- Name: TABLE "SPA_Rikstackande"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."SPA_Rikstackande" TO guest;


--
-- Name: SEQUENCE "SPA_Rikstackande_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."SPA_Rikstackande_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Tilltradesforbud"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Tilltradesforbud" TO guest;


--
-- Name: SEQUENCE "Tilltradesforbud_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Tilltradesforbud_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Varldsarv"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Varldsarv" TO guest;


--
-- Name: SEQUENCE "Varldsarv_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Varldsarv_ogc_fid_seq" TO guest;


--
-- Name: TABLE "Vattenskyddsomrade"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT ON TABLE nvr."Vattenskyddsomrade" TO guest;


--
-- Name: SEQUENCE "Vattenskyddsomrade_ogc_fid_seq"; Type: ACL; Schema: nvr; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE nvr."Vattenskyddsomrade_ogc_fid_seq" TO guest;


--
-- Name: TABLE metadata; Type: ACL; Schema: ogr_system_tables; Owner: geodata
--

GRANT SELECT ON TABLE ogr_system_tables.metadata TO guest;


--
-- Name: SEQUENCE metadata_id_seq; Type: ACL; Schema: ogr_system_tables; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE ogr_system_tables.metadata_id_seq TO guest;


--
-- Name: TABLE geography_columns; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.geography_columns TO guest;


--
-- Name: TABLE geometry_columns; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.geometry_columns TO guest;


--
-- Name: TABLE layercache; Type: ACL; Schema: public; Owner: geodata
--

GRANT SELECT ON TABLE public.layercache TO guest;


--
-- Name: SEQUENCE layercache_ogc_fid_seq; Type: ACL; Schema: public; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE public.layercache_ogc_fid_seq TO guest;


--
-- Name: TABLE spatial_ref_sys; Type: ACL; Schema: public; Owner: postgres
--

GRANT SELECT ON TABLE public.spatial_ref_sys TO guest;


--
-- Name: TABLE betesomrade; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT ON TABLE sametinget.betesomrade TO guest;


--
-- Name: SEQUENCE betesomrade_ogc_fid_seq; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sametinget.betesomrade_ogc_fid_seq TO guest;


--
-- Name: TABLE flyttled; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT ON TABLE sametinget.flyttled TO guest;


--
-- Name: SEQUENCE flyttled_ogc_fid_seq; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sametinget.flyttled_ogc_fid_seq TO guest;


--
-- Name: TABLE riksintresse_rennaringen; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT ON TABLE sametinget.riksintresse_rennaringen TO guest;


--
-- Name: TABLE riksintresse_rennaringen_karnomrade; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT ON TABLE sametinget.riksintresse_rennaringen_karnomrade TO guest;


--
-- Name: SEQUENCE riksintresse_rennaringen_karnomrade_ogc_fid_seq; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sametinget.riksintresse_rennaringen_karnomrade_ogc_fid_seq TO guest;


--
-- Name: SEQUENCE riksintresse_rennaringen_ogc_fid_seq; Type: ACL; Schema: sametinget; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sametinget.riksintresse_rennaringen_ogc_fid_seq TO guest;


--
-- Name: TABLE atervatningsavtal; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.atervatningsavtal TO guest;


--
-- Name: SEQUENCE atervatningsavtal_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.atervatningsavtal_ogc_fid_seq TO guest;


--
-- Name: TABLE avverk_anmald; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.avverk_anmald TO guest;


--
-- Name: SEQUENCE avverk_anmald_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.avverk_anmald_ogc_fid_seq TO guest;


--
-- Name: TABLE avverk_utford; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.avverk_utford TO guest;


--
-- Name: SEQUENCE avverk_utford_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.avverk_utford_ogc_fid_seq TO guest;


--
-- Name: TABLE naturvarde; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.naturvarde TO guest;


--
-- Name: SEQUENCE naturvarde_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.naturvarde_ogc_fid_seq TO guest;


--
-- Name: TABLE naturvardsavtal; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.naturvardsavtal TO guest;


--
-- Name: SEQUENCE naturvardsavtal_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.naturvardsavtal_ogc_fid_seq TO guest;


--
-- Name: TABLE nyckelbiotop; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.nyckelbiotop TO guest;


--
-- Name: SEQUENCE nyckelbiotop_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.nyckelbiotop_ogc_fid_seq TO guest;


--
-- Name: TABLE nyckelbiotop_storskogsbruk; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.nyckelbiotop_storskogsbruk TO guest;


--
-- Name: SEQUENCE nyckelbiotop_storskogsbruk_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.nyckelbiotop_storskogsbruk_ogc_fid_seq TO guest;


--
-- Name: TABLE sumpskog; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT ON TABLE sks.sumpskog TO guest;


--
-- Name: SEQUENCE sumpskog_ogc_fid_seq; Type: ACL; Schema: sks; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE sks.sumpskog_ogc_fid_seq TO guest;


--
-- Name: TABLE ledningar; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT ON TABLE svk.ledningar TO guest;


--
-- Name: SEQUENCE ledningar_ogc_fid_seq; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE svk.ledningar_ogc_fid_seq TO guest;


--
-- Name: TABLE stationsomraden; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT ON TABLE svk.stationsomraden TO guest;


--
-- Name: SEQUENCE stationsomraden_ogc_fid_seq; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE svk.stationsomraden_ogc_fid_seq TO guest;


--
-- Name: TABLE stolpar; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT ON TABLE svk.stolpar TO guest;


--
-- Name: SEQUENCE stolpar_ogc_fid_seq; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE svk.stolpar_ogc_fid_seq TO guest;


--
-- Name: TABLE transmissionsnatsprojekt; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT ON TABLE svk.transmissionsnatsprojekt TO guest;


--
-- Name: SEQUENCE transmissionsnatsprojekt_ogc_fid_seq; Type: ACL; Schema: svk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE svk.transmissionsnatsprojekt_ogc_fid_seq TO guest;


--
-- Name: TABLE havsbaserad_vindkraft; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT ON TABLE vbk.havsbaserad_vindkraft TO guest;


--
-- Name: SEQUENCE havsbaserad_vindkraft_ogc_fid_seq; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE vbk.havsbaserad_vindkraft_ogc_fid_seq TO guest;


--
-- Name: TABLE projekteringsomraden; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT ON TABLE vbk.projekteringsomraden TO guest;


--
-- Name: SEQUENCE projekteringsomraden_ogc_fid_seq; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE vbk.projekteringsomraden_ogc_fid_seq TO guest;


--
-- Name: TABLE vindkraftverk; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT ON TABLE vbk.vindkraftverk TO guest;


--
-- Name: SEQUENCE vindkraftverk_ogc_fid_seq; Type: ACL; Schema: vbk; Owner: geodata
--

GRANT SELECT,USAGE ON SEQUENCE vbk.vindkraftverk_ogc_fid_seq TO guest;


--
-- Name: ogr_system_tables_event_trigger_for_metadata; Type: EVENT TRIGGER; Schema: -; Owner: postgres
--

CREATE EVENT TRIGGER ogr_system_tables_event_trigger_for_metadata ON sql_drop
   EXECUTE FUNCTION ogr_system_tables.event_trigger_function_for_metadata();


ALTER EVENT TRIGGER ogr_system_tables_event_trigger_for_metadata OWNER TO postgres;

--
-- PostgreSQL database dump complete
--

\unrestrict XTQKLfyJjEgwGyWj4y8ogFznWaICeqXkLOw7GUT2TnBjUqJHf8BrjygbLvfZun2

