-- 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';
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: -
--
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: -
--
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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- 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:
--
--
--- TOC entry 1836 (class 0 OID 0)
+-- TOC entry 1845 (class 0 OID 0)
-- Dependencies: 3
-- Name: public; Type: ACL; Schema: -; Owner: -
--
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