-- Deploy gaia:bdtransfer_2020_01_09_assist_create to mysql

BEGIN;

CREATE TABLE `api_bdtransfer_assist` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `status` TINYINT(1) NULL DEFAULT 0,
  `assistor_id` INT NULL DEFAULT 0,
  `bdtransfer_id` INT NULL,
  `create_time` DATETIME NULL,
  `update_time` DATETIME NULL,
  `is_delete` BOOLEAN NOT NULL,
  PRIMARY KEY (`id`),
  KEY `user_id_refs_id_9f244f94` (`assistor_id`),
  KEY `bdtransfer_id_refs_id_9f244f94` (`bdtransfer_id`),
  CONSTRAINT `bdtransfer_id_refs_id_9f244f94` FOREIGN KEY (`bdtransfer_id`) REFERENCES `api_bdtransfer` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION,
  CONSTRAINT `user_id_refs_id_9f244f94` FOREIGN KEY (`assistor_id`) REFERENCES `auth_user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
)ENGINE=InnoDB AUTO_INCREMENT=1000 DEFAULT CHARSET=utf8;

COMMIT;
