# ---------------------------------------------------------------------- #
# Script generated with: DeZign for Databases V7.1.0                     #
# Target DBMS:           MySQL 5                                         #
# Project file:          abliaDbComuni3.dez                              #
# Project name:          DB COMUNI - ABLIA                               #
# Author:                Andrea Colzi                                    #
# Script type:           Database creation script                        #
# Created on:            2012-05-29 13:01                                #
# ---------------------------------------------------------------------- #


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

# ---------------------------------------------------------------------- #
# Add table "CONSEL_TABFIN"                                              #
# ---------------------------------------------------------------------- #

CREATE TABLE `CONSEL_TABFIN` (
    `id_conselTabfin` INTEGER NOT NULL AUTO_INCREMENT,
    `flgTipo` CHAR(3),
    `valoreBene` DECIMAL(18,4),
    `durata` INTEGER,
    `importoRata` DECIMAL(18,4),
    `tan` DECIMAL(5,2),
    `taeg` DECIMAL(5,2),
    `interessi` DECIMAL(18,4),
    `speseGestSingolaRata` DECIMAL(18,4),
    `speseGestTotaleRata` DECIMAL(18,4),
    `impostaBollo` DECIMAL(18,4),
    `importoTotaleDovuto` DECIMAL(18,4),
    `lastUpdId_user` INTEGER,
    `lastUpdTmst` TIMESTAMP,
    CONSTRAINT `PK_CONSEL_TABFIN` PRIMARY KEY (`id_conselTabfin`)
);


CREATE INDEX `IDX_CONSEL_TABFIN_1` ON `CONSEL_TABFIN` (`flgTipo`);

CREATE INDEX `IDX_CONSEL_TABFIN_2` ON `CONSEL_TABFIN` (`importoRata` ASC);

CREATE INDEX `IDX_CONSEL_TABFIN_3` ON `CONSEL_TABFIN` (`durata` ASC);

