From: Andrea Zagli Date: Mon, 16 Aug 2010 10:51:45 +0000 (+0200) Subject: Aggiornato schema db. X-Git-Tag: 0.0.3~53 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=bf7df6322435fb27e127e7cc4b6feb003564eab3;p=solipa%2Forganigramma Aggiornato schema db. --- diff --git a/docs/organigramma.sql b/docs/organigramma.sql index 37aaadc..a21a52b 100644 --- a/docs/organigramma.sql +++ b/docs/organigramma.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- --- Started on 2010-08-16 11:28:39 +-- Started on 2010-08-16 12:51:15 SET statement_timeout = 0; SET client_encoding = 'UTF8'; @@ -12,7 +12,7 @@ SET client_min_messages = warning; SET escape_string_warning = off; -- --- TOC entry 1834 (class 1262 OID 59278) +-- TOC entry 1843 (class 1262 OID 59278) -- Name: organigramma; Type: DATABASE; Schema: -; Owner: - -- @@ -29,7 +29,7 @@ SET client_min_messages = warning; SET escape_string_warning = off; -- --- TOC entry 323 (class 2612 OID 16386) +-- TOC entry 326 (class 2612 OID 16386) -- Name: plpgsql; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: - -- @@ -43,8 +43,8 @@ SET default_tablespace = ''; SET default_with_oids = false; -- --- TOC entry 1510 (class 1259 OID 59279) --- Dependencies: 1795 1796 1797 3 +-- TOC entry 1513 (class 1259 OID 59279) +-- Dependencies: 1799 1800 1801 3 -- Name: nodi; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -59,8 +59,8 @@ CREATE TABLE nodi ( -- --- TOC entry 1516 (class 1259 OID 59346) --- Dependencies: 1811 1812 1813 3 +-- TOC entry 1519 (class 1259 OID 59346) +-- Dependencies: 1815 1816 1817 3 -- Name: struttura_indirizzi; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -75,8 +75,8 @@ CREATE TABLE struttura_indirizzi ( -- --- TOC entry 1514 (class 1259 OID 59327) --- Dependencies: 1805 1806 1807 1808 1809 3 +-- TOC entry 1517 (class 1259 OID 59327) +-- Dependencies: 1809 1810 1811 1812 1813 3 -- Name: strutture; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -91,8 +91,8 @@ CREATE TABLE strutture ( -- --- TOC entry 1511 (class 1259 OID 59290) --- Dependencies: 1798 1799 3 +-- TOC entry 1514 (class 1259 OID 59290) +-- Dependencies: 1802 1803 3 -- Name: tipi_nodo; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -104,8 +104,8 @@ CREATE TABLE tipi_nodo ( -- --- TOC entry 1512 (class 1259 OID 59297) --- Dependencies: 1800 1801 3 +-- TOC entry 1515 (class 1259 OID 59297) +-- Dependencies: 1804 1805 3 -- Name: tipi_recapito; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -117,8 +117,8 @@ CREATE TABLE tipi_recapito ( -- --- TOC entry 1513 (class 1259 OID 59311) --- Dependencies: 1802 1803 1804 3 +-- TOC entry 1516 (class 1259 OID 59311) +-- Dependencies: 1806 1807 1808 3 -- Name: uffici; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -132,8 +132,8 @@ CREATE TABLE uffici ( -- --- TOC entry 1517 (class 1259 OID 59357) --- Dependencies: 1814 1815 3 +-- TOC entry 1520 (class 1259 OID 59357) +-- Dependencies: 1818 1819 3 -- Name: ufficio_nodi; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -147,8 +147,24 @@ CREATE TABLE ufficio_nodi ( -- --- TOC entry 1515 (class 1259 OID 59340) --- Dependencies: 1810 3 +-- TOC entry 1521 (class 1259 OID 59367) +-- Dependencies: 1820 1821 1822 3 +-- Name: ufficio_recapiti; Type: TABLE; Schema: public; Owner: -; Tablespace: +-- + +CREATE TABLE ufficio_recapiti ( + id integer NOT NULL, + id_uffici integer, + id_tipi_recapito integer, + recapito character varying(100) DEFAULT ''::character varying, + note text DEFAULT ''::text, + status character varying(1) DEFAULT ''::character varying +); + + +-- +-- TOC entry 1518 (class 1259 OID 59340) +-- Dependencies: 1814 3 -- Name: vie; Type: TABLE; Schema: public; Owner: -; Tablespace: -- @@ -159,8 +175,8 @@ CREATE TABLE vie ( -- --- TOC entry 1817 (class 2606 OID 59289) --- Dependencies: 1510 1510 +-- TOC entry 1824 (class 2606 OID 59289) +-- Dependencies: 1513 1513 -- Name: nodi_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -169,8 +185,8 @@ ALTER TABLE ONLY nodi -- --- TOC entry 1829 (class 2606 OID 59356) --- Dependencies: 1516 1516 +-- TOC entry 1836 (class 2606 OID 59356) +-- Dependencies: 1519 1519 -- Name: struttura_indirizzi_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -179,8 +195,8 @@ ALTER TABLE ONLY struttura_indirizzi -- --- TOC entry 1825 (class 2606 OID 59339) --- Dependencies: 1514 1514 +-- TOC entry 1832 (class 2606 OID 59339) +-- Dependencies: 1517 1517 -- Name: strutture_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -189,8 +205,8 @@ ALTER TABLE ONLY strutture -- --- TOC entry 1819 (class 2606 OID 59296) --- Dependencies: 1511 1511 +-- TOC entry 1826 (class 2606 OID 59296) +-- Dependencies: 1514 1514 -- Name: tipi_nodo_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -199,8 +215,8 @@ ALTER TABLE ONLY tipi_nodo -- --- TOC entry 1821 (class 2606 OID 59303) --- Dependencies: 1512 1512 +-- TOC entry 1828 (class 2606 OID 59303) +-- Dependencies: 1515 1515 -- Name: tipi_recapito_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -209,8 +225,8 @@ ALTER TABLE ONLY tipi_recapito -- --- TOC entry 1823 (class 2606 OID 59321) --- Dependencies: 1513 1513 +-- TOC entry 1830 (class 2606 OID 59321) +-- Dependencies: 1516 1516 -- Name: uffici_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -219,8 +235,8 @@ ALTER TABLE ONLY uffici -- --- TOC entry 1831 (class 2606 OID 59366) --- Dependencies: 1517 1517 +-- TOC entry 1838 (class 2606 OID 59366) +-- Dependencies: 1520 1520 -- Name: ufficio_nodi_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -229,8 +245,18 @@ ALTER TABLE ONLY ufficio_nodi -- --- TOC entry 1827 (class 2606 OID 59345) --- Dependencies: 1515 1515 +-- TOC entry 1840 (class 2606 OID 59377) +-- Dependencies: 1521 1521 +-- Name: ufficio_recapiti_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: +-- + +ALTER TABLE ONLY ufficio_recapiti + ADD CONSTRAINT ufficio_recapiti_pkey PRIMARY KEY (id); + + +-- +-- TOC entry 1834 (class 2606 OID 59345) +-- Dependencies: 1518 1518 -- Name: vie_pkey; Type: CONSTRAINT; Schema: public; Owner: -; Tablespace: -- @@ -239,7 +265,7 @@ ALTER TABLE ONLY vie -- --- TOC entry 1836 (class 0 OID 0) +-- TOC entry 1845 (class 0 OID 0) -- Dependencies: 3 -- Name: public; Type: ACL; Schema: -; Owner: - -- @@ -250,7 +276,7 @@ GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO PUBLIC; --- Completed on 2010-08-16 11:28:40 +-- Completed on 2010-08-16 12:51:15 -- -- PostgreSQL database dump complete