-- Deploy gaia:hippo_20190916_add_budanbill to mysql

BEGIN;

CREATE TABLE `hippo_billtotransferbudan` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `billapplyrecord_id` integer NOT NULL,
    `budan_id` varchar(12) NOT NULL,
    `created_time` datetime(6) NOT NULL
);
ALTER TABLE `hippo_billtotransferbudan` ADD CONSTRAINT `billapplyrecord_id_refs_id_ab6b475e` FOREIGN KEY (`billapplyrecord_id`) REFERENCES `hippo_billapplyrecord` (`id`);
ALTER TABLE `hippo_billtotransferbudan` ADD CONSTRAINT `budan_id_refs_id_f6308126` FOREIGN KEY (`budan_id`) REFERENCES `api_budan` (`id`);

COMMIT;
