mirror of https://github.com/sipwise/db-schema.git
Hook it up to a device model. Change-Id: Id89d6b639bbd16b486a3b33f02de5c02707e77e3ipeshinskaya/9177
parent
0532f33076
commit
6c51a53b57
@ -0,0 +1,14 @@
|
|||||||
|
USE provisioning;
|
||||||
|
|
||||||
|
DROP TABLE billing.contract_vendor_credentials;
|
||||||
|
|
||||||
|
CREATE TABLE `autoprov_redirect_credentials` (
|
||||||
|
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
|
`device_id` int(11) unsigned NOT NULL,
|
||||||
|
`user` varchar(255) DEFAULT NULL,
|
||||||
|
`password` varchar(255) DEFAULT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
KEY `ap_devid_fk` (`device_id`),
|
||||||
|
KEY `vendor_idx` (`vendor`),
|
||||||
|
CONSTRAINT `autoprov_redirect_credentials_ibfk_1` FOREIGN KEY (`device_id`) REFERENCES `autoprov_devices` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
) ENGINE=InnoDB;
|
||||||
Loading…
Reference in new issue