Changeset 43:8d1a92f64110
- Timestamp:
- 06/06/09 23:40:52 (15 years ago)
- Branch:
- default
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
sql/schéma.sql
r29 r43 3 3 -- 4 4 5 -- Started on 2009-0 5-31 22:35:00CEST5 -- Started on 2009-06-06 23:39:14 CEST 6 6 7 7 SET client_encoding = 'UTF8'; … … 22 22 23 23 -- 24 -- TOC entry 15 79(class 1259 OID 16797)24 -- TOC entry 1583 (class 1259 OID 16797) 25 25 -- Dependencies: 10 26 26 -- Name: historie_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: - … … 39 39 40 40 -- 41 -- TOC entry 15 78(class 1259 OID 16789)42 -- Dependencies: 18 48 18491041 -- TOC entry 1582 (class 1259 OID 16789) 42 -- Dependencies: 1854 1855 10 43 43 -- Name: historie; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 44 44 -- … … 54 54 55 55 -- 56 -- TOC entry 1580 (class 1259 OID 16813) 56 -- TOC entry 1586 (class 1259 OID 16826) 57 -- Dependencies: 10 58 -- Name: pruvodce_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: - 59 -- 60 61 CREATE SEQUENCE pruvodce_seq 62 INCREMENT BY 10 63 NO MAXVALUE 64 NO MINVALUE 65 CACHE 1; 66 67 68 -- 69 -- TOC entry 1587 (class 1259 OID 16828) 70 -- Dependencies: 1857 10 71 -- Name: pruvodce; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 72 -- 73 74 CREATE TABLE pruvodce ( 75 id numeric DEFAULT nextval('pruvodce_seq'::regclass) NOT NULL, 76 kod character varying(32), 77 nadpis character varying(255) NOT NULL, 78 obsah text NOT NULL 79 ); 80 81 82 -- 83 -- TOC entry 1870 (class 0 OID 0) 84 -- Dependencies: 1587 85 -- Name: TABLE pruvodce; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 86 -- 87 88 COMMENT ON TABLE pruvodce IS 'Nápověda, průvodce'; 89 90 91 -- 92 -- TOC entry 1871 (class 0 OID 0) 93 -- Dependencies: 1587 94 -- Name: COLUMN pruvodce.id; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 95 -- 96 97 COMMENT ON COLUMN pruvodce.id IS 'Pořadí kapitoly/lekce'; 98 99 100 -- 101 -- TOC entry 1872 (class 0 OID 0) 102 -- Dependencies: 1587 103 -- Name: COLUMN pruvodce.kod; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 104 -- 105 106 COMMENT ON COLUMN pruvodce.kod IS 'kód, na který se můžeme odkazovat'; 107 108 109 -- 110 -- TOC entry 1873 (class 0 OID 0) 111 -- Dependencies: 1587 112 -- Name: COLUMN pruvodce.nadpis; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 113 -- 114 115 COMMENT ON COLUMN pruvodce.nadpis IS 'Název kapitoly'; 116 117 118 -- 119 -- TOC entry 1874 (class 0 OID 0) 120 -- Dependencies: 1587 121 -- Name: COLUMN pruvodce.obsah; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 122 -- 123 124 COMMENT ON COLUMN pruvodce.obsah IS 'Vlastní text kapitoly'; 125 126 127 -- 128 -- TOC entry 1584 (class 1259 OID 16813) 57 129 -- Dependencies: 10 58 130 -- Name: tip_seq; Type: SEQUENCE; Schema: sqlvyukaaplikace; Owner: - … … 67 139 68 140 -- 69 -- TOC entry 158 1(class 1259 OID 16815)70 -- Dependencies: 185 010141 -- TOC entry 1585 (class 1259 OID 16815) 142 -- Dependencies: 1856 10 71 143 -- Name: tip; Type: TABLE; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 72 144 -- … … 79 151 80 152 -- 81 -- TOC entry 18 59(class 0 OID 0)82 -- Dependencies: 158 1153 -- TOC entry 1875 (class 0 OID 0) 154 -- Dependencies: 1585 83 155 -- Name: TABLE tip; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 84 156 -- … … 88 160 89 161 -- 90 -- TOC entry 18 60(class 0 OID 0)91 -- Dependencies: 158 1162 -- TOC entry 1876 (class 0 OID 0) 163 -- Dependencies: 1585 92 164 -- Name: COLUMN tip.text; Type: COMMENT; Schema: sqlvyukaaplikace; Owner: - 93 165 -- … … 97 169 98 170 -- 99 -- TOC entry 185 2(class 2606 OID 16796)100 -- Dependencies: 15 78 1578171 -- TOC entry 1859 (class 2606 OID 16796) 172 -- Dependencies: 1582 1582 101 173 -- Name: historie_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 102 174 -- … … 107 179 108 180 -- 109 -- TOC entry 1854 (class 2606 OID 16823) 110 -- Dependencies: 1581 1581 181 -- TOC entry 1865 (class 2606 OID 16838) 182 -- Dependencies: 1587 1587 183 -- Name: pruvodce_kod_uq; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 184 -- 185 186 ALTER TABLE ONLY pruvodce 187 ADD CONSTRAINT pruvodce_kod_uq UNIQUE (kod); 188 189 190 -- 191 -- TOC entry 1867 (class 2606 OID 16836) 192 -- Dependencies: 1587 1587 193 -- Name: pruvodce_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 194 -- 195 196 ALTER TABLE ONLY pruvodce 197 ADD CONSTRAINT pruvodce_pk PRIMARY KEY (id); 198 199 200 -- 201 -- TOC entry 1861 (class 2606 OID 16823) 202 -- Dependencies: 1585 1585 111 203 -- Name: tip_pk; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 112 204 -- … … 117 209 118 210 -- 119 -- TOC entry 18 56(class 2606 OID 16825)120 -- Dependencies: 158 1 1581211 -- TOC entry 1863 (class 2606 OID 16825) 212 -- Dependencies: 1585 1585 121 213 -- Name: tip_uq; Type: CONSTRAINT; Schema: sqlvyukaaplikace; Owner: -; Tablespace: 122 214 -- … … 126 218 127 219 128 -- Completed on 2009-0 5-31 22:35:01CEST220 -- Completed on 2009-06-06 23:39:14 CEST 129 221 130 222 --