31 lines
1.4 KiB
SQL
31 lines
1.4 KiB
SQL
--
|
|
-- Structure de la table `prestations`
|
|
--
|
|
|
|
CREATE TABLE IF NOT EXISTS `prestations` (
|
|
`id` int(11) NOT NULL,
|
|
`typeprestation` varchar(50) NOT NULL,
|
|
`source` varchar(50) NOT NULL,
|
|
`datemiseenplace` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`datepremierefactu` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`freqfacturation` enum('Unitaire','Quotidien','Hebdo','Mensuel','Trimestriel','Annuel','Semestriel') NOT NULL,
|
|
`datefinprestation` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`prestatest` tinyint(1) NOT NULL,
|
|
`identifiantPrestation` varchar(100) NOT NULL,
|
|
`passwordprestation` varchar(100) NOT NULL,
|
|
`supportprestation` enum('FTP','Email','CD/DVD','CFT') NOT NULL,
|
|
`identifiantCFT` varchar(100) NOT NULL,
|
|
`dureecontrat` int(2) NOT NULL,
|
|
`montantannuelfactu` varchar(10) NOT NULL,
|
|
`freqenvois` enum('Unitaire','Quotidien','Hebdo','Mensuel','Trimestriel','Annuel','Semestriel') NOT NULL,
|
|
`formatdesenvois` varchar(100) NOT NULL,
|
|
`trtnumerotour` int(11) NOT NULL,
|
|
`trtdatedeniereexec` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
|
`optionsprestation` text NOT NULL,
|
|
`prestationactive` enum('oui','non') NOT NULL,
|
|
`optionsupport` text NOT NULL,
|
|
`mailIN` varchar(100) NOT NULL,
|
|
`mailOUT` varchar(100) NOT NULL,
|
|
`osClient` int(11) NOT NULL,
|
|
`compression` enum('none','zip','gzip','bzip2') NOT NULL
|
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Prestations Surveillance / Diffusion'; |