-- +goose Up

ALTER TABLE admin_pickups
  ADD COLUMN listing_price_cent BIGINT NOT NULL DEFAULT 0 COMMENT '提号时网站售价(分)' AFTER platform,
  ADD COLUMN owner_price_cent BIGINT NOT NULL DEFAULT 0 COMMENT '提号时号主上架价(分)' AFTER listing_price_cent,
  ADD COLUMN website_profit_cent BIGINT NOT NULL DEFAULT 0 COMMENT '提号时网站价格内平台加价(分)' AFTER owner_price_cent,
  ADD COLUMN profit_amount_cent BIGINT NOT NULL DEFAULT 0 COMMENT '线下平台利润(分)，管理员手工录入' AFTER website_profit_cent,
  ADD COLUMN seller_ratio DECIMAL(10,2) NOT NULL DEFAULT 0 COMMENT '提号时号主回收比例' AFTER profit_amount_cent,
  ADD COLUMN buyer_ratio DECIMAL(10,2) NOT NULL DEFAULT 0 COMMENT '提号时网站售卖比例' AFTER seller_ratio;

-- +goose Down

ALTER TABLE admin_pickups
  DROP COLUMN buyer_ratio,
  DROP COLUMN seller_ratio,
  DROP COLUMN profit_amount_cent,
  DROP COLUMN website_profit_cent,
  DROP COLUMN owner_price_cent,
  DROP COLUMN listing_price_cent;
