Průvodce: JavaScript, HTML, CSS.
2 -- PostgreSQL database dump
5 -- Started on 2009-05-31 22:35:00 CEST
7 SET client_encoding = 'UTF8';
8 SET standard_conforming_strings = off;
9 SET check_function_bodies = false;
10 SET client_min_messages = warning;
11 SET escape_string_warning = off;
14 -- TOC entry 10 (class 2615 OID 16788)
15 -- Name: sqlvyukaaplikace; Type: SCHEMA; Schema: -; Owner: -
18 CREATE SCHEMA sqlvyukaaplikace;
21 SET search_path = sqlvyukaaplikace, pg_catalog;
24 -- TOC entry 1579 (class 1259 OID 16797)
26 -- Name: historie_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: -
29 CREATE SEQUENCE historie_seq
36 SET default_tablespace = '';
38 SET default_with_oids = false;
41 -- TOC entry 1578 (class 1259 OID 16789)
42 -- Dependencies: 1848 1849 10
43 -- Name: historie; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace:
46 CREATE TABLE historie (
47 id numeric DEFAULT nextval('historie_seq'::regclass) NOT NULL,
48 datum timestamp with time zone DEFAULT now(),
50 id_sezeni character varying(255),
51 ip_adresa character varying(255)
56 -- TOC entry 1580 (class 1259 OID 16813)
58 -- Name: tip_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: -
61 CREATE SEQUENCE tip_seq
69 -- TOC entry 1581 (class 1259 OID 16815)
70 -- Dependencies: 1850 10
71 -- Name: tip; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace:
75 id numeric DEFAULT nextval('tip_seq'::regclass) NOT NULL,
76 text character varying(512) NOT NULL
81 -- TOC entry 1859 (class 0 OID 0)
83 -- Name: TABLE tip; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: -
86 COMMENT ON TABLE tip IS 'Rady, tipy, odkazy a citáty… které budeme zobrazovat uživateli v náhodném pořadí.';
90 -- TOC entry 1860 (class 0 OID 0)
92 -- Name: COLUMN tip.text; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: -
95 COMMENT ON COLUMN tip.text IS 'HTML text. Bude vložen do <p>odstavce</p>. → Pozor na validitu.';
99 -- TOC entry 1852 (class 2606 OID 16796)
100 -- Dependencies: 1578 1578
101 -- Name: historie_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace:
104 ALTER TABLE ONLY historie
105 ADD CONSTRAINT historie_pk PRIMARY KEY (id);
109 -- TOC entry 1854 (class 2606 OID 16823)
110 -- Dependencies: 1581 1581
111 -- Name: tip_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace:
115 ADD CONSTRAINT tip_pk PRIMARY KEY (id);
119 -- TOC entry 1856 (class 2606 OID 16825)
120 -- Dependencies: 1581 1581
121 -- Name: tip_uq; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace:
125 ADD CONSTRAINT tip_uq UNIQUE (text);
128 -- Completed on 2009-05-31 22:35:01 CEST
131 -- PostgreSQL database dump complete