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/13125.up

15 lines
682 B

USE billing;
CREATE TABLE `contract_fraud_preferences` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`contract_id` int(11) unsigned NOT NULL,
`fraud_interval_limit` int(11) unsigned DEFAULT NULL,
`fraud_interval_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_interval_notify` varchar(255) DEFAULT NULL,
`fraud_daily_limit` int(11) unsigned DEFAULT NULL,
`fraud_daily_lock` tinyint(3) unsigned DEFAULT NULL,
`fraud_daily_notify` varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `contract_id` (`contract_id`),
CONSTRAINT `contract_id_ref` FOREIGN KEY (`contract_id`) REFERENCES `contracts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
) ENGINE=InnoDB;