databases/Metier/schema/facturation.contrat_detail.sql
2016-07-01 13:58:43 +02:00

12 lines
544 B
SQL

CREATE TABLE `contrat_detail` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`contratId` int(11) NOT NULL,
`code` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL,
`label` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
`type` enum('forfait','conso') COLLATE utf8mb4_unicode_ci NOT NULL,
`terme` enum('debut','fin') COLLATE utf8mb4_unicode_ci NOT NULL,
`taxe` decimal(4,2) NOT NULL,
`itemOrder` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Détail d''un contrat';