<?xml version="1.0" encoding="utf-8" ?>
<!-- SQL XML created by WWW SQL Designer, https://github.com/ondras/wwwsqldesigner/ -->
<!-- Active URL: http://127.0.0.1:8080/ -->
<sql>
<datatypes db="mysql">
	<group label="Numeric" color="rgb(238,238,170)">
		<type label="Integer" length="0" sql="INTEGER" quote=""/>
	 	<type label="TINYINT" length="0" sql="TINYINT" quote=""/>
	 	<type label="SMALLINT" length="0" sql="SMALLINT" quote=""/>
	 	<type label="MEDIUMINT" length="0" sql="MEDIUMINT" quote=""/>
	 	<type label="INT" length="0" sql="INT" quote=""/>
		<type label="BIGINT" length="0" sql="BIGINT" quote=""/>
		<type label="Decimal" length="1" sql="DECIMAL" re="DEC" quote=""/>
		<type label="Single precision" length="0" sql="FLOAT" quote=""/>
		<type label="Double precision" length="0" sql="DOUBLE" re="DOUBLE" quote=""/>
	</group>

	<group label="Character" color="rgb(255,200,200)">
		<type label="Char" length="1" sql="CHAR" quote="'"/>
		<type label="Varchar" length="1" sql="VARCHAR" quote="'"/>
		<type label="Text" length="0" sql="MEDIUMTEXT" re="TEXT" quote="'"/>
		<type label="Binary" length="1" sql="BINARY" quote="'"/>
		<type label="Varbinary" length="1" sql="VARBINARY" quote="'"/>
		<type label="BLOB" length="0" sql="BLOB" re="BLOB" quote="'"/>
	</group>

	<group label="Date &amp; Time" color="rgb(200,255,200)">
		<type label="Date" length="0" sql="DATE" quote="'"/>
		<type label="Time" length="0" sql="TIME" quote="'"/>
		<type label="Datetime" length="0" sql="DATETIME" quote="'"/>
		<type label="Year" length="0" sql="YEAR" quote=""/>
		<type label="Timestamp" length="0" sql="TIMESTAMP" quote="'"/>
	</group>
	
	<group label="Miscellaneous" color="rgb(200,200,255)">
		<type label="ENUM" length="1" sql="ENUM" quote=""/>
		<type label="SET" length="1" sql="SET" quote=""/>
		<type label="Bit" length="0" sql="bit" quote=""/>
	</group>
</datatypes><table x="0" y="1803" name="DestinatarioOfferta">
<row name="destinazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Sede" row="indirizzo_ptr" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="intestatario" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ContattoAziendale" row="personafisica_ptr" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="499" y="1835" name="GruppoOfferte">
<row name="destinatario" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DestinatarioOfferta" row="id" />
</row>
<row name="agente" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AgenteOfferta" row="persona_ptr" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="tipo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipologiaOfferta" row="id" />
</row>
<row name="anno_1a_rev" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="numero" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="792" y="1994" name="Offerta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="gruppo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="GruppoOfferte" row="id" />
</row>
<row name="data" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="revisione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="documento" null="1" autoincrement="0">
<datatype>VARCHAR</datatype>
<default>NULL</default></row>
<row name="codice_offerta" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="accettazione" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1120" y="1861" name="AgenteOfferta">
<row name="persona_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>persona_ptr</part>
</key>
</table>
<table x="972" y="2113" name="ParteEconomicaOfferta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="revisione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Offerta" row="id" />
</row>
<row name="dettaglio_economico_offerto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AtomoFatturabile" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>Serve solo per fatturazioni trasversali</comment>
</table>
<table x="1692" y="2016" name="ModalitaLavoro">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="unita_misura_std" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="UnitaMisura" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1337" y="2120" name="AtomoFatturabile">
<row name="offerta_riferimento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Offerta" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="modalita_lavoro" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ModalitaLavoro" row="id" />
</row>
<row name="riferimento_oggetto_fattura" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="OggettoDaFatturare" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1269" y="3202" name="Progetto">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progetto_padre" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Progetto" row="id" />
</row>
<row name="stato" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="nome" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1571" y="2655" name="ValorizzazioneEconomicaProgetto">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progetto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Progetto" row="id" />
</row>
<row name="dato_economico" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AtomoFatturabile" row="id" />
</row>
<row name="fase_target" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1241" y="636" name="ContattoAziendale">
<row name="personafisica_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PersonaFisica" row="soggettocontattabile_ptr" />
</row>
<row name="azienda" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="is_personale" null="0" autoincrement="0">
<datatype>bit</datatype>
<default>True</default></row>
<key type="PRIMARY" name="">
<part>personafisica_ptr</part>
</key>
</table>
<table x="273" y="1936" name="TipologiaOfferta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(1024)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3033" y="2994" name="Repository">
<row name="risorsachiave_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="url" null="1" autoincrement="0">
<datatype>VARCHAR(1024)</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>risorsachiave_ptr</part>
</key>
</table>
<table x="3393" y="2873" name="TipoRelazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2819" y="3367" name="Attivita">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="attivita_generica" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Attivita" row="id" />
</row>
<row name="tipo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoAttivita" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3658" y="3226" name="RisorsaChiave">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaPersonale" row="risorsachiave_ptr" />
</row>
<row name="risorsa_generica" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3681" y="3526" name="PropostaDiValore">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="proposta_valore_generica" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PropostaDiValore" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3925" y="3113" name="CanaleDiDistribuzione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3454" y="2640" name="SettoreDiMercato">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3758" y="2424" name="FlussoDiRicavi">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="flusso_ricavi_generico" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FlussoDiRicavi" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4246" y="2385" name="StrutturaDeiCosti">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3851" y="2573" name="SettoreAzienda">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="settore_generico" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SettoreAzienda" row="id" />
</row>
<row name="azienda" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="settore_di_mercato" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SettoreDiMercato" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5052" y="2991" name="BMCModelloDiBusiness">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4376" y="2864" name="BMCPartnerChiave">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="partnership_azienda" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RelazioneConAzienda" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3591" y="2752" name="RelazioneConAzienda">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="relazione_generica" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RelazioneConAzienda" row="id" />
</row>
<row name="azienda" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="tipo_relazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoRelazione" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4360" y="2741" name="BMCSegmentiDiClientela">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="settore_cliente" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SettoreAzienda" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4453" y="2982" name="BMCRelazioneConCliente">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="relazione_cliente" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RelazioneConAzienda" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2586" y="3432" name="TipoAttivita">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>produttive, di problem solving, di manutenzione o sviluppo</comment>
</table>
<table x="4537" y="3374" name="BMCAttivitaChiave">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="attivita_chiave" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Attivita" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2769" y="3546" name="ValoreDelProgetto">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progetto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Progetto" row="id" />
</row>
<row name="proposta_di_valore" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PropostaDiValore" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>Ricchezza che viene al cliente dal progetto</comment>
</table>
<table x="4546" y="3508" name="BMCPropostaDiValore">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="proposta_di_valore" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PropostaDiValore" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2185" y="3254" name="AttivitaDelProgetto">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progetto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Progetto" row="id" />
</row>
<row name="attivita" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Attivita" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>Il M2M serve solo per attività trasversali, sennò qui trovi solo link 1:1</comment>
</table>
<table x="2554" y="3116" name="AssetDelProgetto">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progetto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Progetto" row="id" />
</row>
<row name="asset" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>Ricchezza che viene a noi dal progetto</comment>
</table>
<table x="2963" y="2683" name="RisorsaPersonale">
<row name="persona" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="risorsachiave_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<key type="PRIMARY" name="">
<part>risorsachiave_ptr</part>
</key>
</table>
<table x="2976" y="2892" name="RisorsaFisica">
<row name="risorsachiave_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>risorsachiave_ptr</part>
</key>
</table>
<table x="2966" y="2786" name="RisorsaFinanziaria">
<row name="risorsachiave_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>risorsachiave_ptr</part>
</key>
</table>
<table x="4534" y="3230" name="BMCRisorsaChiave">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="risorsa_chiave" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3229" y="3447" name="ValoreDellAttivita">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="attivita" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Attivita" row="id" />
</row>
<row name="proposta_di_valore" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PropostaDiValore" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>Ricchezza che viene al cliente dall'attività</comment>
</table>
<table x="1624" y="2849" name="ValorizzazioneEconomicaAttivita">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="attivita_del_progetto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AttivitaDelProgetto" row="id" />
</row>
<row name="dato_economico" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AtomoFatturabile" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3220" y="3282" name="AssetDaAttivita">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="attivita" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Attivita" row="id" />
</row>
<row name="asset" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2870" y="3088" name="ArchivioFiles">
<row name="risorsachiave_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RisorsaChiave" row="id" />
</row>
<row name="url" null="1" autoincrement="0">
<datatype>VARCHAR(1024)</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(4096)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>risorsachiave_ptr</part>
</key>
<comment>Seafile</comment>
</table>
<table x="4389" y="2619" name="BMCFlussoDiRicavi">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="flusso_di_ricavi" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FlussoDiRicavi" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4483" y="3109" name="BMCCanaleDiDistribuzione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="canale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CanaleDiDistribuzione" row="id" />
</row>
<row name="modello_di_business" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="BMCModelloDiBusiness" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3890" y="2999" name="CanaleDistribuzioneIndiretto">
<row name="partnership_distribuzione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RelazioneConAzienda" row="id" />
</row>
<row name="canaledidistribuzione_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CanaleDiDistribuzione" row="id" />
</row>
<key type="PRIMARY" name="">
<part>canaledidistribuzione_ptr</part>
</key>
</table>
<table x="4798" y="443" name="FatturaElettronica">
<row name="xml_fattura" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="XmlFatturaElettronica" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="fattura_principale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="data" null="0" autoincrement="0">
<datatype>DATE</datatype>
<default>'NULL'</default></row>
<row name="numero" null="0" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>'NULL'</default></row>
<row name="dati_ritenuta" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiRitenuta" row="id" />
</row>
<row name="importo_totale_documento" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="arrotondamento" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="causale" null="1" autoincrement="0">
<datatype>VARCHAR(200)</datatype>
<default>NULL</default></row>
<row name="tipo_documento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoDocumento" row="id" />
</row>
<row name="art73" null="1" autoincrement="0">
<datatype>bit</datatype>
<default>NULL</default></row>
<row name="divisa" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Valuta" row="id" />
</row>
<row name="dati_cassa_previdenziale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiCassaPrevidenziale" row="id" />
</row>
<row name="sconto_maggiorazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ScontoMaggiorazione" row="id" />
</row>
<row name="dati_bollo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiBollo" row="id" />
</row>
<row name="dati_veicoli" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiVeicoli" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2398" y="974" name="RegimeFiscale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3981" y="947" name="TipoCassa">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3695" y="1039" name="ModalitaPagamento">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5196" y="641" name="TipoDocumento">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4343" y="1303" name="Natura">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4298" y="689" name="TipoRitenuta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice" null="1" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3701" y="520" name="XmlFatturaElettronica">
<row name="soggetti_fattura_elettronica" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettiFatturaElettronica" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="progressivo_invio" null="0" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>'NULL'</default></row>
<row name="path" null="1" autoincrement="0">
<datatype>VARCHAR</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3289" y="553" name="SoggettiFatturaElettronica">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="formato_trasmissione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FormatoTrasmissione" row="id" />
</row>
<row name="contatto_cedente_prestatore" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Recapito" row="id" />
</row>
<row name="riferimento_amministrazione" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="trasmittente" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="destinatario" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="cedente_prestatore" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="rappresentante_fiscale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="cessionariocommittente" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="terzo_intermediario_o_soggetto_emittente" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TerzoIntermediarioOSoggettoEmittente" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2646" y="606" name="SoggettoFiscale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice_fiscale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PartitaIvaCF" row="id" />
</row>
<row name="partita_iva" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PartitaIvaCF" row="id" />
</row>
<row name="codice_sdi" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CodiceDestinatario" row="id" />
</row>
<row name="dati_di_contatto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoContattabile" row="id" />
<comment>one2one</comment>
</row>
<row name="indirizzo_pec" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Pec" row="email_ptr" />
</row>
<row name="iscrizione_rea" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="IscrizioneREA" row="id" />
</row>
<row name="nazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Nazione" row="id" />
</row>
<row name="regime_fiscale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RegimeFiscale" row="id" />
</row>
<row name="stabile_organizzazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Indirizzo" row="contattorubrica_ptr" />
</row>
<row name="cod_eori" null="1" autoincrement="0">
<datatype>VARCHAR(17)</datatype>
<default>NULL</default></row>
<row name="numero_licenza_guida" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="rimosso" null="1" autoincrement="0">
<datatype>bit</datatype>
<default>NULL</default></row>
<row name="sede" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Indirizzo" row="contattorubrica_ptr" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2914" y="482" name="PartitaIvaCF">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice" null="0" autoincrement="0">
<datatype>VARCHAR(28)</datatype>
<default>'NULL'</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="559" y="767" name="Nazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3685" y="693" name="FormatoTrasmissione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(5)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2948" y="993" name="CodiceDestinatario">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>VARCHAR(7)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2048" y="345" name="Recapito">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="soggetto" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoContattabile" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1820" y="205" name="Telefono">
<row name="contattorubrica_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Recapito" row="id" />
</row>
<row name="numero" null="0" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>'NULL'</default></row>
<row name="interno" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="note" null="1" autoincrement="0">
<datatype>VARCHAR(64)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>contattorubrica_ptr</part>
</key>
</table>
<table x="2050" y="220" name="Email">
<row name="contattorubrica_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Recapito" row="id" />
</row>
<row name="indirizzo_email" null="0" autoincrement="0">
<datatype>VARCHAR(30)</datatype>
<default>'NULL'</default></row>
<row name="note" null="1" autoincrement="0">
<datatype>VARCHAR(64)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>contattorubrica_ptr</part>
</key>
</table>
<table x="2253" y="1296" name="IscrizioneAlboProfessionale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="albo_professionale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AlboProfessionale" row="id" />
</row>
<row name="numero_iscrizione_albo" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="data_iscrizione_albo" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="persona_fisica" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="PersonaFisica" row="soggettocontattabile_ptr" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2706" y="1072" name="IscrizioneREA">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="ufficio" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Provincia" row="sigla" />
</row>
<row name="numero_r_e_a" null="0" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>'NULL'</default></row>
<row name="capitale_sociale" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="socio_unico" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SocioUnico" row="id" />
</row>
<row name="stato_liquidazione" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="StatoLiquidazione" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2526" y="1186" name="SocioUnico">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(30)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2729" y="1276" name="StatoLiquidazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(30)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3257" y="852" name="TerzoIntermediarioOSoggettoEmittente">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="terzo_intermediario_o_soggetto_emittente" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="soggetto_emittente" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoEmittente" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3386" y="986" name="SoggettoEmittente">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(30)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1525" y="605" name="PersonaFisica">
<row name="soggettocontattabile_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoContattabile" row="id" />
</row>
<row name="titolo" null="1" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>NULL</default></row>
<row name="nome" null="0" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>'NULL'</default></row>
<row name="cognome" null="0" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>'NULL'</default></row>
<row name="is_privato" null="0" autoincrement="0">
<datatype>bit</datatype>
<default>True</default></row>
<key type="PRIMARY" name="">
<part>soggettocontattabile_ptr</part>
</key>
</table>
<table x="1861" y="590" name="PersonaGiuridica">
<row name="soggettocontattabile_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoContattabile" row="id" />
</row>
<row name="denominazione" null="0" autoincrement="0">
<datatype>VARCHAR(80)</datatype>
<default>'NULL'</default></row>
<key type="PRIMARY" name="">
<part>soggettocontattabile_ptr</part>
</key>
</table>
<table x="2626" y="1452" name="AlboProfessionale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="albo_professionale" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="provincia_albo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Provincia" row="sigla" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5090" y="22" name="Allegato">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="fattura_elettronica_body" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="nome_attachment" null="0" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>'NULL'</default></row>
<row name="algoritmo_compressione" null="1" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>NULL</default></row>
<row name="formato_attachment" null="1" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>NULL</default></row>
<row name="descrizione_attachment" null="0" autoincrement="0">
<datatype>VARCHAR(100)</datatype>
<default>'NULL'</default></row>
<row name="attachment" null="0" autoincrement="0">
<datatype>MEDIUMTEXT</datatype>
<default>'NULL'</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3668" y="1175" name="DatoPagamento">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="fattura_body" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="dettaglio_bancario" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DettaglioBancario" row="id" />
</row>
<row name="data_riferimento_termini_pagamento" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="giorni_termini_pagamento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="data_scadenza_pagamento" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="importo_pagamento" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="sconto_pagamento_anticipato" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="data_limite_pagamento_anticipato" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="penalita_pagamenti_ritardati" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="data_decorrenza_penale" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="codice_pagamento" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="quietanzante" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="condizione_pagamento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CondizionePagamento" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4778" y="867" name="DatiVeicoli">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="data" null="0" autoincrement="0">
<datatype>DATE</datatype>
<default>'NULL'</default></row>
<row name="totale_percorso" null="0" autoincrement="0">
<datatype>VARCHAR(15)</datatype>
<default>'NULL'</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5633" y="575" name="DatiDocumentali">
<row name="codici_documentali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CodiciDocumentali" row="id" />
</row>
<row name="dati_generali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="id_documento" null="0" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>'NULL'</default></row>
<row name="data" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="num_item" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="tipologia_documentale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipologiaDocumentale" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
<comment>DatiOrdineAcquisto, DatiContratto, DatiConvenzione, DatiRicezione</comment>
</table>
<table x="5242" y="359" name="DatiFattureCollegate">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="dati_generali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="codici_documentali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CodiciDocumentali" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5372" y="192" name="DatiSAL">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="dati_generali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="riferimento_fase" null="0" autoincrement="0">
<datatype>INTEGER(3)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="6080" y="472" name="DatiDDT">
<row name="dati_generali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="numero" null="0" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>'NULL'</default></row>
<row name="data" null="0" autoincrement="0">
<datatype>DATE</datatype>
<default>'NULL'</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3572" y="36" name="DatiTrasporto">
<row name="dati_generali" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="indirizzo_resa" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Indirizzo" row="contattorubrica_ptr" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="mezzo_trasporto" null="1" autoincrement="0">
<datatype>VARCHAR(80)</datatype>
<default>NULL</default></row>
<row name="numero_colli" null="1" autoincrement="0">
<datatype>INTEGER(4)</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(100)</datatype>
<default>NULL</default></row>
<row name="peso_lordo" null="1" autoincrement="0">
<datatype>DECIMAL(7)</datatype>
<default>NULL</default></row>
<row name="peso_netto" null="1" autoincrement="0">
<datatype>DECIMAL(7)</datatype>
<default>NULL</default></row>
<row name="data_ora_rititro" null="1" autoincrement="0">
<datatype>DATETIME</datatype>
<default>NULL</default></row>
<row name="data_inizio_trasporto" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="tipo_resa" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoResa" row="id" />
</row>
<row name="data_ora_consegna" null="1" autoincrement="0">
<datatype>DATETIME</datatype>
<default>NULL</default></row>
<row name="dati_vettore" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="unita_misura_peso" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="UnitaMisura" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5206" y="751" name="Valuta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(3)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4512" y="597" name="DatiRitenuta">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="tipo_ritenuta" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoRitenuta" row="id" />
</row>
<row name="importo_ritenuta" null="0" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="aliquota_ritenuta" null="0" autoincrement="0">
<datatype>DECIMAL(6)</datatype>
<default>NULL</default></row>
<row name="causale_pagamento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CausalePagamento" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4250" y="797" name="CausalePagamento">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4917" y="893" name="DatiBollo">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="importo_bollo" null="0" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4153" y="934" name="DatiCassaPrevidenziale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="tipo_cassa" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoCassa" row="id" />
</row>
<row name="al_cassa" null="1" autoincrement="0">
<datatype>DECIMAL(6)</datatype>
<default>NULL</default></row>
<row name="importo_contributo_cassa" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="imponibile_cassa" null="1" autoincrement="0">
<datatype>DECIMAL(15)</datatype>
<default>NULL</default></row>
<row name="ritenuta" null="0" autoincrement="0">
<datatype>bit</datatype>
<default>NULL</default></row>
<row name="riferimento_amministrazione" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="aliquota_iva" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AliquotaIva" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4489" y="955" name="ScontoMaggiorazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="tipo" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoScontoMaggiorazione" row="id" />
</row>
<row name="percentuale" null="1" autoincrement="0">
<datatype>DECIMAL(6)</datatype>
<default>NULL</default></row>
<row name="importo" null="1" autoincrement="0">
<datatype>DECIMAL(6)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4480" y="1101" name="TipoScontoMaggiorazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="tipo" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4516" y="1259" name="AliquotaIva">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="aliquota_i_v_a" null="0" autoincrement="0">
<datatype>DECIMAL(6)</datatype>
<default>NULL</default></row>
<row name="natura" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Natura" row="id" />
</row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3209" y="1123" name="ContoBancario">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="soggetto_fiscale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="beneficiario" null="1" autoincrement="0">
<datatype>VARCHAR(200)</datatype>
<default>NULL</default></row>
<row name="istituto_finanziario" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="IstitutoFinanziario" row="id" />
</row>
<row name="iban" null="1" autoincrement="0">
<datatype>VARCHAR(34)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3427" y="1315" name="IstitutoFinanziario">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="nome" null="0" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>'NULL'</default></row>
<row name="abi" null="1" autoincrement="0">
<datatype>CHAR(5)</datatype>
<default>NULL</default></row>
<row name="cab" null="1" autoincrement="0">
<datatype>CHAR(5)</datatype>
<default>NULL</default></row>
<row name="bic" null="1" autoincrement="0">
<datatype>VARCHAR(11)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3419" y="1178" name="DettaglioBancario">
<row name="conto_bancario" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ContoBancario" row="id" />
</row>
<row name="modalita_pagamento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ModalitaPagamento" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3587" y="1593" name="CondizionePagamento">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(4)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4957" y="1242" name="DettaglioLinee">
<row name="fattura_elettronica_body" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FatturaElettronica" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="numero_linea" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="sconto_maggiorazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="ScontoMaggiorazione" row="id" />
</row>
<row name="aliquota_iva" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AliquotaIva" row="id" />
</row>
<row name="riferimento_amministrazione" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="tipo_cessione_prestazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoCessionePrestazione" row="id" />
</row>
<row name="dati_oggetto_fattura" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="OggettoDaFatturare" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5663" y="1216" name="altroDatoGestionale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="linea_fattura" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DettaglioLinee" row="id" />
</row>
<row name="tipo_dato" null="0" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>'NULL'</default></row>
<row name="riferimento_testo" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="riferimento_numero" null="1" autoincrement="0">
<datatype>DECIMAL(21)</datatype>
<default>NULL</default></row>
<row name="riferimento_data" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5569" y="1536" name="TipoCessionePrestazione">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(2)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5680" y="1405" name="CodiceArticolo">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice_tipo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="TipoCodiceArticolo" row="id" />
</row>
<row name="codice_valore" null="1" autoincrement="0">
<datatype>VARCHAR(35)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5860" y="1438" name="TipoCodiceArticolo">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>VARCHAR(35)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(250)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5508" y="1376" name="ArticoloLinea">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice_articolo" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="CodiceArticolo" row="id" />
</row>
<row name="dettaglio_linee" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DettaglioLinee" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4152" y="1754" name="UnitaMisura">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(40)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3866" y="165" name="TipoResa">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>CHAR(3)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="6316" y="671" name="RiferimentoDDTNumeroLinea">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="dati_d_d_t" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiDDT" row="id" />
</row>
<row name="dettaglio_linee" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DettaglioLinee" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5268" y="908" name="RiferimentoOrdineAcquistoNumeroLinea">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="dati_ordine_acquisto" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatiDocumentali" row="id" />
</row>
<row name="dettaglio_linee" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DettaglioLinee" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5529" y="343" name="CodiciDocumentali">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codice_commessa_convenzione" null="1" autoincrement="0">
<datatype>VARCHAR(100)</datatype>
<default>NULL</default></row>
<row name="codice_c_u_p" null="1" autoincrement="0">
<datatype>VARCHAR(15)</datatype>
<default>NULL</default></row>
<row name="codice_c_i_g" null="1" autoincrement="0">
<datatype>VARCHAR(15)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="5901" y="623" name="TipologiaDocumentale">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="codifica" null="0" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>'NULL'</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(100)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4416" y="1881" name="OggettoDaFatturare">
<row name="unita_misura" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="UnitaMisura" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="descrizione" null="1" autoincrement="0">
<datatype>VARCHAR(1000)</datatype>
<default>NULL</default></row>
<row name="quantita" null="1" autoincrement="0">
<datatype>DECIMAL(21)</datatype>
<default>NULL</default></row>
<row name="prezzo_unitario" null="1" autoincrement="0">
<datatype>DECIMAL(21)</datatype>
<default>NULL</default></row>
<row name="data_inizio" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<row name="data_fine" null="1" autoincrement="0">
<datatype>DATE</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1434" y="259" name="Sede">
<row name="indirizzo_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Indirizzo" row="contattorubrica_ptr" />
</row>
<row name="societa" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Societa" row="id" />
</row>
<row name="is_legale" null="1" autoincrement="0">
<datatype>bit</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>indirizzo_ptr</part>
</key>
</table>
<table x="1823" y="349" name="Fax">
<row name="contattorubrica_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Recapito" row="id" />
</row>
<row name="numero" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="note" null="1" autoincrement="0">
<datatype>VARCHAR(64)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>contattorubrica_ptr</part>
</key>
</table>
<table x="2098" y="148" name="Pec">
<row name="email_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Email" row="contattorubrica_ptr" />
</row>
<key type="PRIMARY" name="">
<part>email_ptr</part>
</key>
</table>
<table x="51" y="494" name="Cap">
<row name="codice" null="1" autoincrement="0">
<datatype>VARCHAR(5)</datatype>
<default>'None'</default></row>
<key type="PRIMARY" name="">
<part>codice</part>
</key>
</table>
<table x="87" y="678" name="Comune">
<row name="id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default></row>
<row name="nome" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>'None'</default></row>
<row name="codice_istat" null="1" autoincrement="0">
<datatype>VARCHAR(6)</datatype>
<default>'None'</default></row>
<row name="codice_nazionale" null="1" autoincrement="0">
<datatype>VARCHAR(4)</datatype>
<default>'None'</default></row>
<row name="provincia_id" null="1" autoincrement="0">
<datatype>VARCHAR(2)</datatype>
<default>'None'</default><relation table="Provincia" row="sigla" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="61" y="564" name="ComuneCap">
<row name="id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default></row>
<row name="comune_id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default><relation table="Comune" row="id" />
</row>
<row name="cap_id" null="1" autoincrement="0">
<datatype>VARCHAR(5)</datatype>
<default>'None'</default><relation table="Cap" row="codice" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="293" y="735" name="Dug">
<row name="nome" null="1" autoincrement="0">
<datatype>VARCHAR(40)</datatype>
<default>'None'</default></row>
<key type="PRIMARY" name="">
<part>nome</part>
</key>
</table>
<table x="301" y="470" name="AbstractIndirizzo">
<row name="id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default></row>
<row name="duf" null="1" autoincrement="0">
<datatype>VARCHAR(256)</datatype>
<default>'None'</default></row>
<row name="civico" null="1" autoincrement="0">
<datatype>VARCHAR(256)</datatype>
<default>'None'</default></row>
<row name="altro" null="1" autoincrement="0">
<datatype>VARCHAR(2048)</datatype>
<default>'None'</default></row>
<row name="cap_id" null="1" autoincrement="0">
<datatype>VARCHAR(5)</datatype>
<default>'None'</default><relation table="Cap" row="codice" />
</row>
<row name="comune_id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default><relation table="Comune" row="id" />
</row>
<row name="dug_id" null="1" autoincrement="0">
<datatype>VARCHAR(40)</datatype>
<default>'None'</default><relation table="Dug" row="nome" />
</row>
<row name="nazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Nazione" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="271" y="953" name="Provincia">
<row name="sigla" null="1" autoincrement="0">
<datatype>VARCHAR(2)</datatype>
<default>'None'</default></row>
<row name="nome_esteso" null="1" autoincrement="0">
<datatype>VARCHAR(50)</datatype>
<default>'None'</default></row>
<row name="regione_id" null="1" autoincrement="0">
<datatype>VARCHAR(32)</datatype>
<default>'None'</default><relation table="Regione" row="nome" />
</row>
<key type="PRIMARY" name="">
<part>sigla</part>
</key>
</table>
<table x="75" y="894" name="Regione">
<row name="nome" null="1" autoincrement="0">
<datatype>VARCHAR(32)</datatype>
<default>'None'</default></row>
<key type="PRIMARY" name="">
<part>nome</part>
</key>
</table>
<table x="3507" y="2087" name="RicaviDaFattura">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="oggetto_fatturato" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="OggettoDaFatturare" row="id" />
</row>
<row name="flusso_di_ricavi" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="FlussoDiRicavi" row="id" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1795" y="486" name="SoggettoContattabile">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2033" y="81" name="Indirizzo">
<row name="contattorubrica_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="AbstractIndirizzo" row="id" />
<relation table="Recapito" row="id" />
</row>
<key type="PRIMARY" name="">
<part>contattorubrica_ptr</part>
</key>
<comment>&lt;AbstractIndirizzo&gt;</comment>
</table>
<table x="1288" y="415" name="Societa">
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="nazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Nazione" row="id" />
</row>
<row name="soggetto" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoContattabile" row="id" />
</row>
<row name="ragione_sociale" null="1" autoincrement="0">
<datatype>VARCHAR(1024)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
</sql>
