sql/schéma.sql
author František Kučera <franta-hg@frantovo.cz>
Sat Jun 19 14:00:11 2010 +0200 (2010-06-19)
changeset 143 91c4282ea15f
parent 118 1c52b1a4a18a
child 154 bf21a4abea9b
permissions -rw-r--r--
doladění CSS pro lidi bez JS
franta-hg@18
     1
--
franta-hg@18
     2
-- PostgreSQL database dump
franta-hg@18
     3
--
franta-hg@18
     4
franta-hg@137
     5
-- Started on 2010-06-09 15:52:26 CEST
franta-hg@18
     6
franta-hg@18
     7
SET statement_timeout = 0;
franta-hg@18
     8
SET client_encoding = 'UTF8';
franta-hg@18
     9
SET standard_conforming_strings = off;
franta-hg@18
    10
SET check_function_bodies = false;
franta-hg@18
    11
SET client_min_messages = warning;
franta-hg@18
    12
SET escape_string_warning = off;
franta-hg@18
    13
franta-hg@18
    14
--
franta-hg@18
    15
-- TOC entry 10 (class 2615 OID 35015)
franta-hg@18
    16
-- Name: nekurak; Type: SCHEMA; Schema: -; Owner: nekurak
franta-hg@18
    17
--
franta-hg@18
    18
franta-hg@18
    19
CREATE SCHEMA nekurak;
franta-hg@18
    20
franta-hg@18
    21
franta-hg@18
    22
ALTER SCHEMA nekurak OWNER TO nekurak;
franta-hg@18
    23
franta-hg@18
    24
SET search_path = nekurak, pg_catalog;
franta-hg@18
    25
franta-hg@18
    26
--
franta-hg@115
    27
-- TOC entry 366 (class 1247 OID 35086)
franta-hg@115
    28
-- Dependencies: 367 10
franta-hg@62
    29
-- Name: email; Type: DOMAIN; Schema: nekurak; Owner: nekurak
franta-hg@62
    30
--
franta-hg@62
    31
franta-hg@62
    32
CREATE DOMAIN email AS character varying(255)
franta-hg@62
    33
	CONSTRAINT email_regexp CHECK (((VALUE)::text ~ '^[_a-zA-Z0-9\\.\\-]+@[_a-zA-Z0-9\\.\\-]+\\.[a-zA-Z]{2,4}$'::text));
franta-hg@62
    34
franta-hg@62
    35
franta-hg@62
    36
ALTER DOMAIN nekurak.email OWNER TO nekurak;
franta-hg@62
    37
franta-hg@62
    38
--
franta-hg@137
    39
-- TOC entry 1926 (class 0 OID 0)
franta-hg@115
    40
-- Dependencies: 366
franta-hg@62
    41
-- Name: DOMAIN email; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
    42
--
franta-hg@62
    43
franta-hg@62
    44
COMMENT ON DOMAIN email IS 'e-mailová adresa';
franta-hg@62
    45
franta-hg@62
    46
franta-hg@62
    47
--
franta-hg@62
    48
-- TOC entry 65 (class 1255 OID 35124)
franta-hg@137
    49
-- Dependencies: 10 406
franta-hg@62
    50
-- Name: bezny_uzivatel(); Type: FUNCTION; Schema: nekurak; Owner: nekurak
franta-hg@62
    51
--
franta-hg@62
    52
franta-hg@62
    53
CREATE FUNCTION bezny_uzivatel() RETURNS trigger
franta-hg@62
    54
    LANGUAGE plpgsql
franta-hg@62
    55
    AS $$BEGIN
franta-hg@62
    56
INSERT INTO uzivatel_role 
franta-hg@62
    57
(role, prezdivka) 
franta-hg@62
    58
VALUES
franta-hg@62
    59
('bezny', new.prezdivka);
franta-hg@62
    60
RETURN new;
franta-hg@62
    61
END;$$;
franta-hg@62
    62
franta-hg@62
    63
franta-hg@62
    64
ALTER FUNCTION nekurak.bezny_uzivatel() OWNER TO nekurak;
franta-hg@62
    65
franta-hg@62
    66
--
franta-hg@137
    67
-- TOC entry 1927 (class 0 OID 0)
franta-hg@62
    68
-- Dependencies: 65
franta-hg@62
    69
-- Name: FUNCTION bezny_uzivatel(); Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
    70
--
franta-hg@62
    71
franta-hg@62
    72
COMMENT ON FUNCTION bezny_uzivatel() IS 'Každému novému uživateli dáme automaticky roli „bezny“.';
franta-hg@62
    73
franta-hg@62
    74
franta-hg@71
    75
--
franta-hg@137
    76
-- TOC entry 1605 (class 1259 OID 35223)
franta-hg@115
    77
-- Dependencies: 10
franta-hg@115
    78
-- Name: clanek_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@115
    79
--
franta-hg@115
    80
franta-hg@115
    81
CREATE SEQUENCE clanek_seq
franta-hg@115
    82
    INCREMENT BY 1
franta-hg@115
    83
    NO MAXVALUE
franta-hg@115
    84
    NO MINVALUE
franta-hg@115
    85
    CACHE 1;
franta-hg@115
    86
franta-hg@115
    87
franta-hg@115
    88
ALTER TABLE nekurak.clanek_seq OWNER TO nekurak;
franta-hg@115
    89
franta-hg@115
    90
SET default_tablespace = '';
franta-hg@115
    91
franta-hg@115
    92
SET default_with_oids = false;
franta-hg@115
    93
franta-hg@115
    94
--
franta-hg@137
    95
-- TOC entry 1604 (class 1259 OID 35205)
franta-hg@137
    96
-- Dependencies: 1888 10
franta-hg@115
    97
-- Name: clanek; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@115
    98
--
franta-hg@115
    99
franta-hg@115
   100
CREATE TABLE clanek (
franta-hg@115
   101
    id integer DEFAULT nextval('clanek_seq'::regclass) NOT NULL,
franta-hg@115
   102
    nadpis character varying(255) NOT NULL,
franta-hg@115
   103
    text text
franta-hg@115
   104
);
franta-hg@115
   105
franta-hg@115
   106
franta-hg@115
   107
ALTER TABLE nekurak.clanek OWNER TO nekurak;
franta-hg@115
   108
franta-hg@115
   109
--
franta-hg@137
   110
-- TOC entry 1929 (class 0 OID 0)
franta-hg@137
   111
-- Dependencies: 1604
franta-hg@115
   112
-- Name: TABLE clanek; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@115
   113
--
franta-hg@115
   114
franta-hg@115
   115
COMMENT ON TABLE clanek IS 'Článek potažmo stránka – nějaký textový obsah, (XúHTML.';
franta-hg@115
   116
franta-hg@115
   117
franta-hg@115
   118
--
franta-hg@137
   119
-- TOC entry 1602 (class 1259 OID 35183)
franta-hg@71
   120
-- Dependencies: 10
franta-hg@71
   121
-- Name: fotka_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@71
   122
--
franta-hg@71
   123
franta-hg@71
   124
CREATE SEQUENCE fotka_seq
franta-hg@71
   125
    START WITH 1
franta-hg@71
   126
    INCREMENT BY 1
franta-hg@71
   127
    NO MAXVALUE
franta-hg@71
   128
    NO MINVALUE
franta-hg@71
   129
    CACHE 1;
franta-hg@71
   130
franta-hg@71
   131
franta-hg@71
   132
ALTER TABLE nekurak.fotka_seq OWNER TO nekurak;
franta-hg@71
   133
franta-hg@71
   134
--
franta-hg@137
   135
-- TOC entry 1603 (class 1259 OID 35185)
franta-hg@137
   136
-- Dependencies: 1886 1887 10
franta-hg@71
   137
-- Name: fotka; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@71
   138
--
franta-hg@71
   139
franta-hg@71
   140
CREATE TABLE fotka (
franta-hg@71
   141
    id integer DEFAULT nextval('fotka_seq'::regclass) NOT NULL,
franta-hg@71
   142
    podnik integer NOT NULL,
franta-hg@71
   143
    popis character varying(255),
franta-hg@71
   144
    poradi integer DEFAULT 0 NOT NULL
franta-hg@71
   145
);
franta-hg@71
   146
franta-hg@71
   147
franta-hg@71
   148
ALTER TABLE nekurak.fotka OWNER TO nekurak;
franta-hg@71
   149
franta-hg@71
   150
--
franta-hg@137
   151
-- TOC entry 1932 (class 0 OID 0)
franta-hg@137
   152
-- Dependencies: 1603
franta-hg@71
   153
-- Name: TABLE fotka; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@71
   154
--
franta-hg@71
   155
franta-hg@71
   156
COMMENT ON TABLE fotka IS 'Fotka podniku.';
franta-hg@71
   157
franta-hg@71
   158
franta-hg@71
   159
--
franta-hg@137
   160
-- TOC entry 1933 (class 0 OID 0)
franta-hg@137
   161
-- Dependencies: 1603
franta-hg@71
   162
-- Name: COLUMN fotka.poradi; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@71
   163
--
franta-hg@71
   164
franta-hg@71
   165
COMMENT ON COLUMN fotka.poradi IS 'Pořadí fotky v rámci daného podniku.';
franta-hg@71
   166
franta-hg@71
   167
franta-hg@115
   168
--
franta-hg@137
   169
-- TOC entry 1607 (class 1259 OID 35250)
franta-hg@115
   170
-- Dependencies: 10
franta-hg@115
   171
-- Name: hlasovani_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@115
   172
--
franta-hg@115
   173
franta-hg@115
   174
CREATE SEQUENCE hlasovani_seq
franta-hg@115
   175
    INCREMENT BY 1
franta-hg@115
   176
    NO MAXVALUE
franta-hg@115
   177
    NO MINVALUE
franta-hg@115
   178
    CACHE 1;
franta-hg@115
   179
franta-hg@115
   180
franta-hg@115
   181
ALTER TABLE nekurak.hlasovani_seq OWNER TO nekurak;
franta-hg@62
   182
franta-hg@62
   183
--
franta-hg@137
   184
-- TOC entry 1608 (class 1259 OID 35278)
franta-hg@137
   185
-- Dependencies: 1889 1890 10
franta-hg@62
   186
-- Name: hlasovani; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   187
--
franta-hg@62
   188
franta-hg@62
   189
CREATE TABLE hlasovani (
franta-hg@115
   190
    id integer DEFAULT nextval('hlasovani_seq'::regclass) NOT NULL,
franta-hg@62
   191
    podnik integer NOT NULL,
franta-hg@62
   192
    hlas boolean NOT NULL,
franta-hg@118
   193
    datum timestamp without time zone DEFAULT now() NOT NULL,
franta-hg@115
   194
    ip_adresa character varying(255) NOT NULL
franta-hg@62
   195
);
franta-hg@62
   196
franta-hg@62
   197
franta-hg@62
   198
ALTER TABLE nekurak.hlasovani OWNER TO nekurak;
franta-hg@62
   199
franta-hg@62
   200
--
franta-hg@137
   201
-- TOC entry 1936 (class 0 OID 0)
franta-hg@137
   202
-- Dependencies: 1608
franta-hg@115
   203
-- Name: COLUMN hlasovani.id; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@115
   204
--
franta-hg@115
   205
franta-hg@115
   206
COMMENT ON COLUMN hlasovani.id IS 'V této tabulce v princupu ID nepotřebujeme,
franta-hg@115
   207
protože nebudeme adresovat konkrétní záznamy (a i kdyby, můžeme použít OID).
franta-hg@115
   208
Ale číselné ID se nám bude hodit pro rychlejší nalezení posledního hlasu od dané IP adresy.';
franta-hg@115
   209
franta-hg@115
   210
franta-hg@115
   211
--
franta-hg@137
   212
-- TOC entry 1937 (class 0 OID 0)
franta-hg@137
   213
-- Dependencies: 1608
franta-hg@62
   214
-- Name: COLUMN hlasovani.hlas; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
   215
--
franta-hg@62
   216
franta-hg@62
   217
COMMENT ON COLUMN hlasovani.hlas IS 'Má být tento podnik nekuřácký?
franta-hg@62
   218
true = nekuřácký
franta-hg@62
   219
false = kouření povoleno';
franta-hg@62
   220
franta-hg@62
   221
franta-hg@62
   222
--
franta-hg@137
   223
-- TOC entry 1609 (class 1259 OID 35333)
franta-hg@137
   224
-- Dependencies: 10
franta-hg@137
   225
-- Name: komentar_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@137
   226
--
franta-hg@137
   227
franta-hg@137
   228
CREATE SEQUENCE komentar_seq
franta-hg@137
   229
    INCREMENT BY 1
franta-hg@137
   230
    NO MAXVALUE
franta-hg@137
   231
    NO MINVALUE
franta-hg@137
   232
    CACHE 1;
franta-hg@137
   233
franta-hg@137
   234
franta-hg@137
   235
ALTER TABLE nekurak.komentar_seq OWNER TO nekurak;
franta-hg@137
   236
franta-hg@137
   237
--
franta-hg@137
   238
-- TOC entry 1610 (class 1259 OID 35376)
franta-hg@137
   239
-- Dependencies: 1891 1892 10
franta-hg@137
   240
-- Name: komentar; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@137
   241
--
franta-hg@137
   242
franta-hg@137
   243
CREATE TABLE komentar (
franta-hg@137
   244
    id integer DEFAULT nextval('komentar_seq'::regclass) NOT NULL,
franta-hg@137
   245
    podnik integer NOT NULL,
franta-hg@137
   246
    uzivatel character varying(64) NOT NULL,
franta-hg@137
   247
    datum timestamp with time zone DEFAULT now() NOT NULL,
franta-hg@137
   248
    nadpis character varying(255),
franta-hg@137
   249
    komentar text NOT NULL
franta-hg@137
   250
);
franta-hg@137
   251
franta-hg@137
   252
franta-hg@137
   253
ALTER TABLE nekurak.komentar OWNER TO nekurak;
franta-hg@137
   254
franta-hg@137
   255
--
franta-hg@137
   256
-- TOC entry 1940 (class 0 OID 0)
franta-hg@137
   257
-- Dependencies: 1610
franta-hg@137
   258
-- Name: TABLE komentar; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@137
   259
--
franta-hg@137
   260
franta-hg@137
   261
COMMENT ON TABLE komentar IS 'Komentář k podniku';
franta-hg@137
   262
franta-hg@137
   263
franta-hg@137
   264
--
franta-hg@137
   265
-- TOC entry 1941 (class 0 OID 0)
franta-hg@137
   266
-- Dependencies: 1610
franta-hg@137
   267
-- Name: COLUMN komentar.nadpis; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@137
   268
--
franta-hg@137
   269
franta-hg@137
   270
COMMENT ON COLUMN komentar.nadpis IS 'vždy jen prostý text';
franta-hg@137
   271
franta-hg@137
   272
franta-hg@137
   273
--
franta-hg@137
   274
-- TOC entry 1942 (class 0 OID 0)
franta-hg@137
   275
-- Dependencies: 1610
franta-hg@137
   276
-- Name: COLUMN komentar.komentar; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@137
   277
--
franta-hg@137
   278
franta-hg@137
   279
COMMENT ON COLUMN komentar.komentar IS 'Vlastní komentář. Vždy jen XHTML – převádíme na něj jak prostý text, tak Texy nebo cokoli jiného.
franta-hg@137
   280
Jedná se o kus validního XML – má kořenový element <div/>';
franta-hg@137
   281
franta-hg@137
   282
franta-hg@137
   283
--
franta-hg@137
   284
-- TOC entry 1596 (class 1259 OID 35019)
franta-hg@18
   285
-- Dependencies: 10
franta-hg@18
   286
-- Name: podnik_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@18
   287
--
franta-hg@18
   288
franta-hg@18
   289
CREATE SEQUENCE podnik_seq
franta-hg@18
   290
    INCREMENT BY 1
franta-hg@18
   291
    NO MAXVALUE
franta-hg@18
   292
    NO MINVALUE
franta-hg@18
   293
    CACHE 1;
franta-hg@18
   294
franta-hg@18
   295
franta-hg@18
   296
ALTER TABLE nekurak.podnik_seq OWNER TO nekurak;
franta-hg@18
   297
franta-hg@18
   298
--
franta-hg@137
   299
-- TOC entry 1597 (class 1259 OID 35049)
franta-hg@137
   300
-- Dependencies: 1882 1883 10
franta-hg@18
   301
-- Name: podnik; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@18
   302
--
franta-hg@18
   303
franta-hg@18
   304
CREATE TABLE podnik (
franta-hg@18
   305
    id integer DEFAULT nextval('podnik_seq'::regclass) NOT NULL,
franta-hg@18
   306
    nazev character varying(255) NOT NULL,
franta-hg@62
   307
    popis character varying(255),
franta-hg@62
   308
    url character varying(255),
franta-hg@62
   309
    datum timestamp with time zone DEFAULT now(),
franta-hg@62
   310
    ulice character varying(64),
franta-hg@62
   311
    cislo_popisne integer,
franta-hg@71
   312
    mesto character varying(64),
franta-hg@115
   313
    spravce character varying(64),
franta-hg@115
   314
    sirka double precision,
franta-hg@115
   315
    delka double precision
franta-hg@18
   316
);
franta-hg@18
   317
franta-hg@18
   318
franta-hg@18
   319
ALTER TABLE nekurak.podnik OWNER TO nekurak;
franta-hg@18
   320
franta-hg@18
   321
--
franta-hg@137
   322
-- TOC entry 1945 (class 0 OID 0)
franta-hg@137
   323
-- Dependencies: 1597
franta-hg@71
   324
-- Name: COLUMN podnik.spravce; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@71
   325
--
franta-hg@71
   326
franta-hg@71
   327
COMMENT ON COLUMN podnik.spravce IS 'Přezdívka uživatele, který je správcem tohoto podniku (zadal ho do systému nebo správcovství později dostal)';
franta-hg@71
   328
franta-hg@71
   329
franta-hg@71
   330
--
franta-hg@137
   331
-- TOC entry 1600 (class 1259 OID 35101)
franta-hg@62
   332
-- Dependencies: 10
franta-hg@62
   333
-- Name: role; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@18
   334
--
franta-hg@18
   335
franta-hg@62
   336
CREATE TABLE role (
franta-hg@62
   337
    kod character varying(16) NOT NULL,
franta-hg@62
   338
    popis character varying(255)
franta-hg@62
   339
);
franta-hg@18
   340
franta-hg@18
   341
franta-hg@62
   342
ALTER TABLE nekurak.role OWNER TO nekurak;
franta-hg@62
   343
franta-hg@18
   344
--
franta-hg@137
   345
-- TOC entry 1947 (class 0 OID 0)
franta-hg@137
   346
-- Dependencies: 1600
franta-hg@62
   347
-- Name: TABLE role; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
   348
--
franta-hg@62
   349
franta-hg@62
   350
COMMENT ON TABLE role IS 'Role (skupiny) uživatelů ~ oprávnění';
franta-hg@62
   351
franta-hg@62
   352
franta-hg@62
   353
--
franta-hg@137
   354
-- TOC entry 1598 (class 1259 OID 35080)
franta-hg@62
   355
-- Dependencies: 10
franta-hg@62
   356
-- Name: uzivatel_seq; Type: SEQUENCE; Schema: nekurak; Owner: nekurak
franta-hg@62
   357
--
franta-hg@62
   358
franta-hg@62
   359
CREATE SEQUENCE uzivatel_seq
franta-hg@62
   360
    INCREMENT BY 1
franta-hg@62
   361
    NO MAXVALUE
franta-hg@62
   362
    NO MINVALUE
franta-hg@62
   363
    CACHE 1;
franta-hg@62
   364
franta-hg@62
   365
franta-hg@62
   366
ALTER TABLE nekurak.uzivatel_seq OWNER TO nekurak;
franta-hg@62
   367
franta-hg@62
   368
--
franta-hg@137
   369
-- TOC entry 1599 (class 1259 OID 35091)
franta-hg@137
   370
-- Dependencies: 1884 1885 10
franta-hg@62
   371
-- Name: uzivatel; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   372
--
franta-hg@62
   373
franta-hg@62
   374
CREATE TABLE uzivatel (
franta-hg@62
   375
    id integer DEFAULT nextval('uzivatel_seq'::regclass) NOT NULL,
franta-hg@62
   376
    prezdivka character varying(64) NOT NULL,
franta-hg@62
   377
    heslo character varying(512) NOT NULL,
franta-hg@62
   378
    jmeno character varying(64),
franta-hg@62
   379
    prijmeni character varying(64),
franta-hg@62
   380
    email character varying(255),
franta-hg@62
   381
    datum timestamp with time zone DEFAULT now() NOT NULL
franta-hg@62
   382
);
franta-hg@62
   383
franta-hg@62
   384
franta-hg@62
   385
ALTER TABLE nekurak.uzivatel OWNER TO nekurak;
franta-hg@62
   386
franta-hg@62
   387
--
franta-hg@137
   388
-- TOC entry 1950 (class 0 OID 0)
franta-hg@137
   389
-- Dependencies: 1599
franta-hg@62
   390
-- Name: COLUMN uzivatel.prezdivka; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
   391
--
franta-hg@62
   392
franta-hg@62
   393
COMMENT ON COLUMN uzivatel.prezdivka IS 'Uživatelské jméno';
franta-hg@62
   394
franta-hg@62
   395
franta-hg@62
   396
--
franta-hg@137
   397
-- TOC entry 1601 (class 1259 OID 35106)
franta-hg@62
   398
-- Dependencies: 10
franta-hg@62
   399
-- Name: uzivatel_role; Type: TABLE; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   400
--
franta-hg@62
   401
franta-hg@62
   402
CREATE TABLE uzivatel_role (
franta-hg@62
   403
    role character varying(16) NOT NULL,
franta-hg@62
   404
    prezdivka character varying(64) NOT NULL
franta-hg@62
   405
);
franta-hg@62
   406
franta-hg@62
   407
franta-hg@62
   408
ALTER TABLE nekurak.uzivatel_role OWNER TO nekurak;
franta-hg@62
   409
franta-hg@62
   410
--
franta-hg@137
   411
-- TOC entry 1952 (class 0 OID 0)
franta-hg@137
   412
-- Dependencies: 1601
franta-hg@62
   413
-- Name: TABLE uzivatel_role; Type: COMMENT; Schema: nekurak; Owner: nekurak
franta-hg@62
   414
--
franta-hg@62
   415
franta-hg@62
   416
COMMENT ON TABLE uzivatel_role IS 'Přiřazení uživatelských rolí (skupin).';
franta-hg@62
   417
franta-hg@62
   418
franta-hg@62
   419
--
franta-hg@137
   420
-- TOC entry 1908 (class 2606 OID 35227)
franta-hg@137
   421
-- Dependencies: 1604 1604
franta-hg@115
   422
-- Name: clanek_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@115
   423
--
franta-hg@115
   424
franta-hg@115
   425
ALTER TABLE ONLY clanek
franta-hg@115
   426
    ADD CONSTRAINT clanek_pk PRIMARY KEY (id);
franta-hg@115
   427
franta-hg@115
   428
franta-hg@115
   429
--
franta-hg@137
   430
-- TOC entry 1904 (class 2606 OID 35190)
franta-hg@137
   431
-- Dependencies: 1603 1603
franta-hg@71
   432
-- Name: fotka_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@71
   433
--
franta-hg@71
   434
franta-hg@71
   435
ALTER TABLE ONLY fotka
franta-hg@71
   436
    ADD CONSTRAINT fotka_pk PRIMARY KEY (id);
franta-hg@71
   437
franta-hg@71
   438
franta-hg@71
   439
--
franta-hg@137
   440
-- TOC entry 1906 (class 2606 OID 35204)
franta-hg@137
   441
-- Dependencies: 1603 1603 1603
franta-hg@72
   442
-- Name: fotka_poradi_uq; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@72
   443
--
franta-hg@72
   444
franta-hg@72
   445
ALTER TABLE ONLY fotka
franta-hg@72
   446
    ADD CONSTRAINT fotka_poradi_uq UNIQUE (popis, poradi);
franta-hg@72
   447
franta-hg@72
   448
franta-hg@72
   449
--
franta-hg@137
   450
-- TOC entry 1911 (class 2606 OID 35284)
franta-hg@137
   451
-- Dependencies: 1608 1608
franta-hg@115
   452
-- Name: hlasovani_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@115
   453
--
franta-hg@115
   454
franta-hg@115
   455
ALTER TABLE ONLY hlasovani
franta-hg@115
   456
    ADD CONSTRAINT hlasovani_pk PRIMARY KEY (id);
franta-hg@115
   457
franta-hg@115
   458
franta-hg@115
   459
--
franta-hg@137
   460
-- TOC entry 1914 (class 2606 OID 35385)
franta-hg@137
   461
-- Dependencies: 1610 1610
franta-hg@137
   462
-- Name: komentar_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@137
   463
--
franta-hg@137
   464
franta-hg@137
   465
ALTER TABLE ONLY komentar
franta-hg@137
   466
    ADD CONSTRAINT komentar_pk PRIMARY KEY (id);
franta-hg@137
   467
franta-hg@137
   468
franta-hg@137
   469
--
franta-hg@137
   470
-- TOC entry 1894 (class 2606 OID 35058)
franta-hg@137
   471
-- Dependencies: 1597 1597
franta-hg@18
   472
-- Name: podnik_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@18
   473
--
franta-hg@18
   474
franta-hg@18
   475
ALTER TABLE ONLY podnik
franta-hg@18
   476
    ADD CONSTRAINT podnik_pk PRIMARY KEY (id);
franta-hg@18
   477
franta-hg@18
   478
franta-hg@19
   479
--
franta-hg@137
   480
-- TOC entry 1900 (class 2606 OID 35105)
franta-hg@137
   481
-- Dependencies: 1600 1600
franta-hg@62
   482
-- Name: skupina_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   483
--
franta-hg@62
   484
franta-hg@62
   485
ALTER TABLE ONLY role
franta-hg@62
   486
    ADD CONSTRAINT skupina_pk PRIMARY KEY (kod);
franta-hg@62
   487
franta-hg@62
   488
franta-hg@62
   489
--
franta-hg@137
   490
-- TOC entry 1896 (class 2606 OID 35098)
franta-hg@137
   491
-- Dependencies: 1599 1599
franta-hg@62
   492
-- Name: uzivatel_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   493
--
franta-hg@62
   494
franta-hg@62
   495
ALTER TABLE ONLY uzivatel
franta-hg@62
   496
    ADD CONSTRAINT uzivatel_pk PRIMARY KEY (id);
franta-hg@62
   497
franta-hg@62
   498
franta-hg@62
   499
--
franta-hg@137
   500
-- TOC entry 1898 (class 2606 OID 35100)
franta-hg@137
   501
-- Dependencies: 1599 1599
franta-hg@62
   502
-- Name: uzivatel_prezdivka_uq; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   503
--
franta-hg@62
   504
franta-hg@62
   505
ALTER TABLE ONLY uzivatel
franta-hg@62
   506
    ADD CONSTRAINT uzivatel_prezdivka_uq UNIQUE (prezdivka);
franta-hg@62
   507
franta-hg@62
   508
franta-hg@62
   509
--
franta-hg@137
   510
-- TOC entry 1902 (class 2606 OID 35137)
franta-hg@137
   511
-- Dependencies: 1601 1601 1601
franta-hg@62
   512
-- Name: uzivatel_role_pk; Type: CONSTRAINT; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@62
   513
--
franta-hg@62
   514
franta-hg@62
   515
ALTER TABLE ONLY uzivatel_role
franta-hg@62
   516
    ADD CONSTRAINT uzivatel_role_pk PRIMARY KEY (role, prezdivka);
franta-hg@62
   517
franta-hg@62
   518
franta-hg@62
   519
--
franta-hg@137
   520
-- TOC entry 1909 (class 1259 OID 35291)
franta-hg@137
   521
-- Dependencies: 1608
franta-hg@115
   522
-- Name: hlasovani_ip_idx; Type: INDEX; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@115
   523
--
franta-hg@115
   524
franta-hg@115
   525
CREATE INDEX hlasovani_ip_idx ON hlasovani USING btree (ip_adresa);
franta-hg@115
   526
franta-hg@115
   527
franta-hg@115
   528
--
franta-hg@137
   529
-- TOC entry 1912 (class 1259 OID 35309)
franta-hg@137
   530
-- Dependencies: 1608
franta-hg@118
   531
-- Name: hlsovani_datum_idx; Type: INDEX; Schema: nekurak; Owner: nekurak; Tablespace: 
franta-hg@118
   532
--
franta-hg@118
   533
franta-hg@118
   534
CREATE INDEX hlsovani_datum_idx ON hlasovani USING btree (date(datum));
franta-hg@118
   535
franta-hg@118
   536
franta-hg@118
   537
--
franta-hg@137
   538
-- TOC entry 1922 (class 2620 OID 35125)
franta-hg@137
   539
-- Dependencies: 1599 65
franta-hg@62
   540
-- Name: uzivatel_insert; Type: TRIGGER; Schema: nekurak; Owner: nekurak
franta-hg@62
   541
--
franta-hg@62
   542
franta-hg@62
   543
CREATE TRIGGER uzivatel_insert
franta-hg@62
   544
    AFTER INSERT ON uzivatel
franta-hg@62
   545
    FOR EACH ROW
franta-hg@62
   546
    EXECUTE PROCEDURE bezny_uzivatel();
franta-hg@62
   547
franta-hg@62
   548
franta-hg@62
   549
--
franta-hg@137
   550
-- TOC entry 1918 (class 2606 OID 35191)
franta-hg@137
   551
-- Dependencies: 1893 1597 1603
franta-hg@71
   552
-- Name: fotka_podnik_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@71
   553
--
franta-hg@71
   554
franta-hg@71
   555
ALTER TABLE ONLY fotka
franta-hg@71
   556
    ADD CONSTRAINT fotka_podnik_fk FOREIGN KEY (podnik) REFERENCES podnik(id) ON DELETE CASCADE;
franta-hg@71
   557
franta-hg@71
   558
franta-hg@71
   559
--
franta-hg@137
   560
-- TOC entry 1919 (class 2606 OID 35285)
franta-hg@137
   561
-- Dependencies: 1597 1608 1893
franta-hg@62
   562
-- Name: hlasovani_podnik_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@62
   563
--
franta-hg@62
   564
franta-hg@62
   565
ALTER TABLE ONLY hlasovani
franta-hg@62
   566
    ADD CONSTRAINT hlasovani_podnik_fk FOREIGN KEY (podnik) REFERENCES podnik(id) ON DELETE CASCADE;
franta-hg@62
   567
franta-hg@62
   568
franta-hg@62
   569
--
franta-hg@137
   570
-- TOC entry 1920 (class 2606 OID 35386)
franta-hg@137
   571
-- Dependencies: 1610 1893 1597
franta-hg@137
   572
-- Name: komentar_podnik_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@137
   573
--
franta-hg@137
   574
franta-hg@137
   575
ALTER TABLE ONLY komentar
franta-hg@137
   576
    ADD CONSTRAINT komentar_podnik_fk FOREIGN KEY (podnik) REFERENCES podnik(id);
franta-hg@137
   577
franta-hg@137
   578
franta-hg@137
   579
--
franta-hg@137
   580
-- TOC entry 1921 (class 2606 OID 35391)
franta-hg@137
   581
-- Dependencies: 1599 1897 1610
franta-hg@137
   582
-- Name: komentar_uzivatel_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@137
   583
--
franta-hg@137
   584
franta-hg@137
   585
ALTER TABLE ONLY komentar
franta-hg@137
   586
    ADD CONSTRAINT komentar_uzivatel_fk FOREIGN KEY (uzivatel) REFERENCES uzivatel(prezdivka);
franta-hg@137
   587
franta-hg@137
   588
franta-hg@137
   589
--
franta-hg@137
   590
-- TOC entry 1915 (class 2606 OID 35178)
franta-hg@137
   591
-- Dependencies: 1599 1897 1597
franta-hg@71
   592
-- Name: podnik_uzivatel_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@71
   593
--
franta-hg@71
   594
franta-hg@71
   595
ALTER TABLE ONLY podnik
franta-hg@71
   596
    ADD CONSTRAINT podnik_uzivatel_fk FOREIGN KEY (spravce) REFERENCES uzivatel(prezdivka) ON DELETE SET NULL;
franta-hg@71
   597
franta-hg@71
   598
franta-hg@71
   599
--
franta-hg@137
   600
-- TOC entry 1916 (class 2606 OID 35138)
franta-hg@137
   601
-- Dependencies: 1600 1601 1899
franta-hg@62
   602
-- Name: uzivatel_role_role_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@62
   603
--
franta-hg@62
   604
franta-hg@62
   605
ALTER TABLE ONLY uzivatel_role
franta-hg@62
   606
    ADD CONSTRAINT uzivatel_role_role_fk FOREIGN KEY (role) REFERENCES role(kod) ON UPDATE CASCADE ON DELETE CASCADE;
franta-hg@62
   607
franta-hg@62
   608
franta-hg@62
   609
--
franta-hg@137
   610
-- TOC entry 1917 (class 2606 OID 35143)
franta-hg@137
   611
-- Dependencies: 1599 1897 1601
franta-hg@62
   612
-- Name: uzivatel_role_uzivatel_fk; Type: FK CONSTRAINT; Schema: nekurak; Owner: nekurak
franta-hg@62
   613
--
franta-hg@62
   614
franta-hg@62
   615
ALTER TABLE ONLY uzivatel_role
franta-hg@62
   616
    ADD CONSTRAINT uzivatel_role_uzivatel_fk FOREIGN KEY (prezdivka) REFERENCES uzivatel(prezdivka) ON UPDATE CASCADE ON DELETE CASCADE;
franta-hg@62
   617
franta-hg@62
   618
franta-hg@62
   619
--
franta-hg@137
   620
-- TOC entry 1925 (class 0 OID 0)
franta-hg@19
   621
-- Dependencies: 10
franta-hg@19
   622
-- Name: nekurak; Type: ACL; Schema: -; Owner: nekurak
franta-hg@19
   623
--
franta-hg@19
   624
franta-hg@19
   625
REVOKE ALL ON SCHEMA nekurak FROM PUBLIC;
franta-hg@19
   626
REVOKE ALL ON SCHEMA nekurak FROM nekurak;
franta-hg@19
   627
GRANT ALL ON SCHEMA nekurak TO nekurak;
franta-hg@19
   628
GRANT USAGE ON SCHEMA nekurak TO nekurak_web;
franta-hg@19
   629
franta-hg@19
   630
franta-hg@19
   631
--
franta-hg@137
   632
-- TOC entry 1928 (class 0 OID 0)
franta-hg@137
   633
-- Dependencies: 1605
franta-hg@115
   634
-- Name: clanek_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@115
   635
--
franta-hg@115
   636
franta-hg@115
   637
REVOKE ALL ON SEQUENCE clanek_seq FROM PUBLIC;
franta-hg@115
   638
REVOKE ALL ON SEQUENCE clanek_seq FROM nekurak;
franta-hg@115
   639
GRANT ALL ON SEQUENCE clanek_seq TO nekurak;
franta-hg@115
   640
GRANT USAGE ON SEQUENCE clanek_seq TO nekurak_web;
franta-hg@115
   641
franta-hg@115
   642
franta-hg@115
   643
--
franta-hg@137
   644
-- TOC entry 1930 (class 0 OID 0)
franta-hg@137
   645
-- Dependencies: 1604
franta-hg@115
   646
-- Name: clanek; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@115
   647
--
franta-hg@115
   648
franta-hg@115
   649
REVOKE ALL ON TABLE clanek FROM PUBLIC;
franta-hg@115
   650
REVOKE ALL ON TABLE clanek FROM nekurak;
franta-hg@115
   651
GRANT ALL ON TABLE clanek TO nekurak;
franta-hg@115
   652
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE clanek TO nekurak_web;
franta-hg@115
   653
franta-hg@115
   654
franta-hg@115
   655
--
franta-hg@137
   656
-- TOC entry 1931 (class 0 OID 0)
franta-hg@137
   657
-- Dependencies: 1602
franta-hg@71
   658
-- Name: fotka_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@71
   659
--
franta-hg@71
   660
franta-hg@71
   661
REVOKE ALL ON SEQUENCE fotka_seq FROM PUBLIC;
franta-hg@71
   662
REVOKE ALL ON SEQUENCE fotka_seq FROM nekurak;
franta-hg@71
   663
GRANT ALL ON SEQUENCE fotka_seq TO nekurak;
franta-hg@71
   664
GRANT USAGE ON SEQUENCE fotka_seq TO nekurak_web;
franta-hg@71
   665
franta-hg@71
   666
franta-hg@71
   667
--
franta-hg@137
   668
-- TOC entry 1934 (class 0 OID 0)
franta-hg@137
   669
-- Dependencies: 1603
franta-hg@71
   670
-- Name: fotka; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@71
   671
--
franta-hg@71
   672
franta-hg@71
   673
REVOKE ALL ON TABLE fotka FROM PUBLIC;
franta-hg@71
   674
REVOKE ALL ON TABLE fotka FROM nekurak;
franta-hg@71
   675
GRANT ALL ON TABLE fotka TO nekurak;
franta-hg@71
   676
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE fotka TO nekurak_web;
franta-hg@71
   677
franta-hg@71
   678
franta-hg@71
   679
--
franta-hg@137
   680
-- TOC entry 1935 (class 0 OID 0)
franta-hg@137
   681
-- Dependencies: 1607
franta-hg@115
   682
-- Name: hlasovani_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@115
   683
--
franta-hg@115
   684
franta-hg@115
   685
REVOKE ALL ON SEQUENCE hlasovani_seq FROM PUBLIC;
franta-hg@115
   686
REVOKE ALL ON SEQUENCE hlasovani_seq FROM nekurak;
franta-hg@115
   687
GRANT ALL ON SEQUENCE hlasovani_seq TO nekurak;
franta-hg@115
   688
GRANT USAGE ON SEQUENCE hlasovani_seq TO nekurak_web;
franta-hg@115
   689
franta-hg@115
   690
franta-hg@115
   691
--
franta-hg@137
   692
-- TOC entry 1938 (class 0 OID 0)
franta-hg@137
   693
-- Dependencies: 1608
franta-hg@62
   694
-- Name: hlasovani; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@62
   695
--
franta-hg@62
   696
franta-hg@62
   697
REVOKE ALL ON TABLE hlasovani FROM PUBLIC;
franta-hg@62
   698
REVOKE ALL ON TABLE hlasovani FROM nekurak;
franta-hg@62
   699
GRANT ALL ON TABLE hlasovani TO nekurak;
franta-hg@137
   700
GRANT SELECT,INSERT ON TABLE hlasovani TO nekurak_web;
franta-hg@62
   701
franta-hg@62
   702
franta-hg@62
   703
--
franta-hg@137
   704
-- TOC entry 1939 (class 0 OID 0)
franta-hg@137
   705
-- Dependencies: 1609
franta-hg@137
   706
-- Name: komentar_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@137
   707
--
franta-hg@137
   708
franta-hg@137
   709
REVOKE ALL ON SEQUENCE komentar_seq FROM PUBLIC;
franta-hg@137
   710
REVOKE ALL ON SEQUENCE komentar_seq FROM nekurak;
franta-hg@137
   711
GRANT ALL ON SEQUENCE komentar_seq TO nekurak;
franta-hg@137
   712
GRANT USAGE ON SEQUENCE komentar_seq TO nekurak_web;
franta-hg@137
   713
franta-hg@137
   714
franta-hg@137
   715
--
franta-hg@137
   716
-- TOC entry 1943 (class 0 OID 0)
franta-hg@137
   717
-- Dependencies: 1610
franta-hg@137
   718
-- Name: komentar; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@137
   719
--
franta-hg@137
   720
franta-hg@137
   721
REVOKE ALL ON TABLE komentar FROM PUBLIC;
franta-hg@137
   722
REVOKE ALL ON TABLE komentar FROM nekurak;
franta-hg@137
   723
GRANT ALL ON TABLE komentar TO nekurak;
franta-hg@137
   724
GRANT SELECT,INSERT ON TABLE komentar TO nekurak_web;
franta-hg@137
   725
franta-hg@137
   726
franta-hg@137
   727
--
franta-hg@137
   728
-- TOC entry 1944 (class 0 OID 0)
franta-hg@137
   729
-- Dependencies: 1596
franta-hg@19
   730
-- Name: podnik_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@19
   731
--
franta-hg@19
   732
franta-hg@19
   733
REVOKE ALL ON SEQUENCE podnik_seq FROM PUBLIC;
franta-hg@19
   734
REVOKE ALL ON SEQUENCE podnik_seq FROM nekurak;
franta-hg@19
   735
GRANT ALL ON SEQUENCE podnik_seq TO nekurak;
franta-hg@19
   736
GRANT USAGE ON SEQUENCE podnik_seq TO nekurak_web;
franta-hg@19
   737
franta-hg@19
   738
franta-hg@19
   739
--
franta-hg@137
   740
-- TOC entry 1946 (class 0 OID 0)
franta-hg@137
   741
-- Dependencies: 1597
franta-hg@19
   742
-- Name: podnik; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@19
   743
--
franta-hg@19
   744
franta-hg@19
   745
REVOKE ALL ON TABLE podnik FROM PUBLIC;
franta-hg@19
   746
REVOKE ALL ON TABLE podnik FROM nekurak;
franta-hg@19
   747
GRANT ALL ON TABLE podnik TO nekurak;
franta-hg@19
   748
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE podnik TO nekurak_web;
franta-hg@19
   749
franta-hg@19
   750
franta-hg@62
   751
--
franta-hg@137
   752
-- TOC entry 1948 (class 0 OID 0)
franta-hg@137
   753
-- Dependencies: 1600
franta-hg@62
   754
-- Name: role; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@62
   755
--
franta-hg@62
   756
franta-hg@62
   757
REVOKE ALL ON TABLE role FROM PUBLIC;
franta-hg@62
   758
REVOKE ALL ON TABLE role FROM nekurak;
franta-hg@62
   759
GRANT ALL ON TABLE role TO nekurak;
franta-hg@62
   760
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE role TO nekurak_web;
franta-hg@62
   761
franta-hg@62
   762
franta-hg@62
   763
--
franta-hg@137
   764
-- TOC entry 1949 (class 0 OID 0)
franta-hg@137
   765
-- Dependencies: 1598
franta-hg@62
   766
-- Name: uzivatel_seq; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@62
   767
--
franta-hg@62
   768
franta-hg@62
   769
REVOKE ALL ON SEQUENCE uzivatel_seq FROM PUBLIC;
franta-hg@62
   770
REVOKE ALL ON SEQUENCE uzivatel_seq FROM nekurak;
franta-hg@62
   771
GRANT ALL ON SEQUENCE uzivatel_seq TO nekurak;
franta-hg@62
   772
GRANT USAGE ON SEQUENCE uzivatel_seq TO nekurak_web;
franta-hg@62
   773
franta-hg@62
   774
franta-hg@62
   775
--
franta-hg@137
   776
-- TOC entry 1951 (class 0 OID 0)
franta-hg@137
   777
-- Dependencies: 1599
franta-hg@62
   778
-- Name: uzivatel; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@62
   779
--
franta-hg@62
   780
franta-hg@62
   781
REVOKE ALL ON TABLE uzivatel FROM PUBLIC;
franta-hg@62
   782
REVOKE ALL ON TABLE uzivatel FROM nekurak;
franta-hg@62
   783
GRANT ALL ON TABLE uzivatel TO nekurak;
franta-hg@62
   784
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE uzivatel TO nekurak_web;
franta-hg@62
   785
franta-hg@62
   786
franta-hg@62
   787
--
franta-hg@137
   788
-- TOC entry 1953 (class 0 OID 0)
franta-hg@137
   789
-- Dependencies: 1601
franta-hg@62
   790
-- Name: uzivatel_role; Type: ACL; Schema: nekurak; Owner: nekurak
franta-hg@62
   791
--
franta-hg@62
   792
franta-hg@62
   793
REVOKE ALL ON TABLE uzivatel_role FROM PUBLIC;
franta-hg@62
   794
REVOKE ALL ON TABLE uzivatel_role FROM nekurak;
franta-hg@62
   795
GRANT ALL ON TABLE uzivatel_role TO nekurak;
franta-hg@62
   796
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE uzivatel_role TO nekurak_web;
franta-hg@62
   797
franta-hg@62
   798
franta-hg@137
   799
-- Completed on 2010-06-09 15:52:28 CEST
franta-hg@18
   800
franta-hg@18
   801
--
franta-hg@18
   802
-- PostgreSQL database dump complete
franta-hg@18
   803
--
franta-hg@18
   804