You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/15041.up

13 lines
524 B

USE billing;
CREATE TABLE `invoice_template` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`reseller_id` int(11) unsigned NOT NULL,
`type` enum('svg','html') NOT NULL DEFAULT 'svg',
`is_active` int(1) unsigned NOT NULL DEFAULT '1',
`base64_saved` mediumblob,
`base64_previewed` mediumblob,
PRIMARY KEY (`id`),
KEY `reseller_contract_ind` (`reseller_id`),
CONSTRAINT `invoice_template_ibfk_1` FOREIGN KEY (`reseller_id`) REFERENCES `contacts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB;