added batch_action table
This commit is contained in:
parent
3562b56c8a
commit
debc876da7
1 changed files with 21 additions and 0 deletions
21
src/main/resources/config/sql/base/V12__batchAction_v1_3.sql
Normal file
21
src/main/resources/config/sql/base/V12__batchAction_v1_3.sql
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
-- Table `batch_action`
|
||||||
|
-- -----------------------------------------------------
|
||||||
|
CREATE TABLE IF NOT EXISTS `batch_action` (
|
||||||
|
`id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||||
|
`institution_id` BIGINT UNSIGNED NOT NULL,
|
||||||
|
`action_type` VARCHAR(45) NOT NULL,
|
||||||
|
`entity_type` VARCHAR(45) NOT NULL,
|
||||||
|
`source_ids` VARCHAR(4000) NULL,
|
||||||
|
`successful_ids` VARCHAR(4000) NULL,
|
||||||
|
`failed_ids` VARCHAR(2000) NULL,
|
||||||
|
`start_time` BIGINT NULL,
|
||||||
|
`running` INT(1) NOT NULL,
|
||||||
|
PRIMARY KEY (`id`),
|
||||||
|
INDEX `batch_action_institution_ref_idx` (`institution_id` ASC),
|
||||||
|
CONSTRAINT `batch_action_institution_ref`
|
||||||
|
FOREIGN KEY (`institution_id`)
|
||||||
|
REFERENCES `institution` (`id`)
|
||||||
|
ON DELETE NO ACTION
|
||||||
|
ON UPDATE NO ACTION)
|
||||||
|
;
|
Loading…
Reference in a new issue