# ---------------------------------------------------------------------- #
# Script generated with: DeZign for Databases v6.1.3                     #
# Target DBMS:           MySQL 5                                         #
# Project file:          abliaDbComuni3.dez                              #
# Project name:          DB COMUNI - ABLIA                               #
# Author:                Andrea Colzi                                    #
# Script type:           Database creation script                        #
# Created on:            2010-05-06 11:53                                #
# ---------------------------------------------------------------------- #


ALTER TABLE `REGISTRO_IVA` DROP PRIMARY KEY;

# Drop table #

DROP TABLE `REGISTRO_IVA`;

# ---------------------------------------------------------------------- #
# Tables                                                                 #
# ---------------------------------------------------------------------- #
# ---------------------------------------------------------------------- #
# Tables                                                                 #
# ---------------------------------------------------------------------- #

# ---------------------------------------------------------------------- #
# Add table "REGISTRO_IVA"                                               #
# ---------------------------------------------------------------------- #

CREATE TABLE `REGISTRO_IVA` (
    `id_registroIva` INTEGER NOT NULL,
    `anno` INTEGER,
    `dataUltimaStampa` DATE,
    `ultimaPagina` INTEGER,
    `ultimaRiga` INTEGER,
    `dataDa` DATE,
    `dataA` DATE,
    `flgPeriodo` CHAR(2),
    `flgTipoLiquidazione` INTEGER COMMENT '0:mensile 1:trimestrale',
    `flgMeseStampato` INTEGER,
    `flgAnnoStampato` INTEGER,
    `flgTrimestreStampato` INTEGER,
    `lastUpdTmst` TIMESTAMP,
    `lastUpdId_user` INTEGER,
    CONSTRAINT `PK_REGISTRO_IVA` PRIMARY KEY (`id_registroIva`)
) COMMENT = 'ci sono solo 2 righe 1: iva  vendite 2:: iva acquisti';
