-- Deploy gaia:bdtransfer_2020_04_22_drop_create_hera_transfer_rate to mysql

BEGIN;

-- ----------------------------
-- Table structure for hera_transfer_rate
-- ----------------------------

DROP TABLE `hera_transfer_rate`;


CREATE TABLE `al_community_hera_transfer_rate` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `date` date NOT NULL,
    `consultant_id` varchar(100) NOT NULL,
    `avg_30_inversion_rate` double NOT NULL,
    `avg_30_order_amount` double NOT NULL,
    UNIQUE (`date`, `consultant_id`)
);

COMMIT;
