<?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 precisio1n" 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="2897" y="1805" 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="2343" y="1899" name="AtomoFatturabile">
<row name="offerta_riferimento" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></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>
<row name="flusso_di_ricavi" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="4218" y="460" 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,2)</datatype>
<default>NULL</default></row>
<row name="arrotondamento" null="1" autoincrement="0">
<datatype>DECIMAL(15,2)</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="1492" y="480" 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="3401" y="964" 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="3115" y="1056" 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="4616" y="658" 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="3763" y="1320" 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="3718" y="706" 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="3121" y="537" 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(128)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2809" y="640" 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="DatoDiContatto" 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="1981" y="845" name="SoggettoFiscale">
<row name="indirizzo_pec" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Pec" row="email_ptr" />
</row>
<row name="regime_fiscale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="RegimeFiscale" row="id" />
</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="sede_legale" null="0" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="stabile_organizzazione" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="cod_eori" null="1" autoincrement="0">
<datatype>VARCHAR(17)</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="numero_licenza_guida" null="1" autoincrement="0">
<datatype>VARCHAR(20)</datatype>
<default>NULL</default></row>
<row name="iscrizione_rea" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="IscrizioneREA" row="id" />
</row>
<row name="id" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default></row>
<row name="revisione_principale" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="rimosso" null="1" autoincrement="0">
<datatype>bit</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1397" y="598" 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="357" y="726" 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="3105" y="710" 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="1335" y="716" 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="2433" y="652" name="DatoDiContatto">
<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>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="2507" y="346" name="Telefono">
<row name="datodicontatto_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatoDiContatto" row="id" />
</row>
<row name="numero" null="0" 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>datodicontatto_ptr</part>
</key>
</table>
<table x="2145" y="669" name="Email">
<row name="datodicontatto_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatoDiContatto" row="id" />
</row>
<row name="indirizzo" 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>datodicontatto_ptr</part>
</key>
</table>
<table x="1748" y="1400" 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="soggetto_fiscale_ptr" />
</row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="1304" y="1075" 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,2)</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="1495" y="1199" 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="1233" y="1259" 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="2437" y="1079" 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="2843" y="943" 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="2492" y="1705" name="PersonaFisica">
<row name="soggetto_fiscale_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="titolo" null="1" autoincrement="0">
<datatype>VARCHAR(10)</datatype>
<default>NULL</default></row>
<row name="nome" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<row name="cognome" null="1" autoincrement="0">
<datatype>VARCHAR(60)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>soggetto_fiscale_ptr</part>
</key>
</table>
<table x="1952" y="1243" name="PersonaGiuridica">
<row name="soggetto_fiscale_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="denominazione" null="1" autoincrement="0">
<datatype>VARCHAR(80)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>soggetto_fiscale_ptr</part>
</key>
</table>
<table x="1241" y="1421" 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="4510" y="39" 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="3088" y="1192" 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,2)</datatype>
<default>NULL</default></row>
<row name="sconto_pagamento_anticipato" null="1" autoincrement="0">
<datatype>DECIMAL(15,2)</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,2)</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="4198" y="884" 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="5053" y="592" 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="4662" y="376" 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="4792" y="209" 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="5500" y="489" 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="3078" y="0" 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="id" />
</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,3)</datatype>
<default>NULL</default></row>
<row name="peso_netto" null="1" autoincrement="0">
<datatype>DECIMAL(7,3)</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="4626" y="768" 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="3932" y="614" 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,2)</datatype>
<default>NULL</default></row>
<row name="aliquota_ritenuta" null="0" autoincrement="0">
<datatype>DECIMAL(6,2)</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="3670" y="814" 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="4337" y="910" 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,2)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3573" y="951" 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,2)</datatype>
<default>NULL</default></row>
<row name="importo_contributo_cassa" null="1" autoincrement="0">
<datatype>DECIMAL(15,2)</datatype>
<default>NULL</default></row>
<row name="imponibile_cassa" null="1" autoincrement="0">
<datatype>DECIMAL(15,2)</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="3909" y="972" 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,2)</datatype>
<default>NULL</default></row>
<row name="importo" null="1" autoincrement="0">
<datatype>DECIMAL(6,2)</datatype>
<default>NULL</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="3900" y="1118" 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="3936" y="1276" 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,2)</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="2633" y="1257" 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="2847" y="1332" 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="2839" y="1195" 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="3007" y="1610" 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="4377" y="1259" 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="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="5083" y="1233" 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,4)</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="4989" y="1553" 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="5100" y="1422" 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="5280" y="1455" 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="4928" y="1393" 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="3543" y="1443" 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="3286" y="182" 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="5736" y="688" 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="4688" y="925" 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="4949" y="360" 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="5321" y="640" 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="4012" y="1635" 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,4)</datatype>
<default>NULL</default></row>
<row name="prezzo_unitario" null="1" autoincrement="0">
<datatype>DECIMAL(21,2)</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="1186" y="1663" name="Sede">
<row name="inquilino" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="SoggettoFiscale" row="id" />
</row>
<row name="indirizzo_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Indirizzo" 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="2235" y="493" name="Fax">
<row name="datodicontatto_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="DatoDiContatto" 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>datodicontatto_ptr</part>
</key>
</table>
<table x="1993" y="606" name="Pec">
<row name="email_ptr" null="1" autoincrement="1">
<datatype>INTEGER</datatype>
<default>NULL</default><relation table="Email" row="datodicontatto_ptr" />
</row>
<key type="PRIMARY" name="">
<part>email_ptr</part>
</key>
</table>
<table x="123" y="1001" name="Indirizzo">
<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></row>
<row name="comune_id" null="1" autoincrement="0">
<datatype>INTEGER</datatype>
<default>None</default></row>
<row name="dug_id" null="1" autoincrement="0">
<datatype>VARCHAR(40)</datatype>
<default>'None'</default></row>
<key type="PRIMARY" name="">
<part>id</part>
</key>
</table>
<table x="486" y="1280" 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></row>
<key type="PRIMARY" name="">
<part>sigla</part>
</key>
</table>
</sql>
