-- Deploy gaia:api_2018_1_16_create_table_photostorage to mysql

BEGIN;

ALTER TABLE `api_kabalance` ADD CONSTRAINT `merchant_id_refs_id_af4da097` FOREIGN KEY (`merchant_id`) REFERENCES `hippo_merchant` (`id`);
CREATE TABLE `api_photostorage` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `image` varchar(255) NOT NULL,
    `type` integer NOT NULL,
    `is_online` bool NOT NULL,
    `create_time` datetime(6) NOT NULL
)
;

COMMIT;
