← Back
Editing: fatturazione.sql
-- phpMyAdmin SQL Dump -- version 2.11.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 20, 2008 at 11:54 AM -- Server version: 5.0.45 -- PHP Version: 5.2.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `fatturazione` -- -- -------------------------------------------------------- -- -- Table structure for table `clienti` -- CREATE TABLE `clienti` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `denominazione` varchar(200) NOT NULL, `indirizzo` varchar(200) NOT NULL default '', `codfisc` varchar(16) character set latin1 collate latin1_general_ci NOT NULL, `partiva` varchar(11) NOT NULL default '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `esenzioni` -- CREATE TABLE `esenzioni` ( `id` tinyint(3) unsigned NOT NULL auto_increment, `testo` varchar(255) character set latin1 collate latin1_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; INSERT INTO `esenzioni` VALUES (1, 'Fattura esente IVA secondo Articolo 10 comma 1 n. 20'), (2, 'Fattura esente iva ai sensi dell\''Art. 1, Comma 100, Legge 244/07 (Finanziaria 2008)'); -- -------------------------------------------------------- -- -- Table structure for table `fatture` -- CREATE TABLE `fatture` ( `id` smallint(5) unsigned NOT NULL auto_increment, `id_cliente` tinyint(3) unsigned NOT NULL default '0', `numero` varchar(6) NOT NULL default '', `data` date NOT NULL default '0000-00-00', `imponibile` float(7,2) NOT NULL default '0.00', `tipo` tinyint(3) unsigned NOT NULL default '0', `pagata` char(1) NOT NULL default 'n', PRIMARY KEY (`id`), KEY `id_cliente` (`id_cliente`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; -- -------------------------------------------------------- -- -- Table structure for table `prestazioni` -- CREATE TABLE `prestazioni` ( `id` smallint(5) unsigned NOT NULL auto_increment, `id_fattura` smallint(5) unsigned NOT NULL default '0', `descrizione` varchar(255) NOT NULL default '', `importo` float(7,2) unsigned NOT NULL default '0.00', PRIMARY KEY (`id`), KEY `id_fattura` (`id_fattura`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Save File
Cancel