-- Deploy gaia:hippo_2018_05_16_add_business_data to mysql

BEGIN;

-- XXX Add DDLs here.
CREATE TABLE `hippo_merchant_stat_updates` (
    `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
    `date` date NOT NULL,
    `merchant_id` bigint NOT NULL,
    `service_pv` bigint NOT NULL,
    `home_pv` bigint NOT NULL,
    `diary_pv` bigint NOT NULL,
    `ad_recharge` bigint NOT NULL,
    `ad_consume` bigint NOT NULL,
    `offline_amount` bigint NOT NULL,
    `validated_price` bigint NOT NULL,
    `validated_discount` bigint NOT NULL,
    `validated_price_user` bigint NOT NULL,
    `rate` double precision NOT NULL
)
;


COMMIT;
