update.sql 1.3 KB

12345678910111213141516171819
  1. CREATE TABLE `h_game_price` (
  2. `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',
  3. `app_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '游戏ID',
  4. `agent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '所属渠道ID',
  5. `parent_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '关联ID',
  6. `is_vip` tinyint(4) unsigned NOT NULL DEFAULT '1' COMMENT ' 1 不是VIP 2 是VIP',
  7. `mobile_prefix` int(11) unsigned NOT NULL DEFAULT '156' COMMENT '国家编码 默认中国156',
  8. `ch_product_code` varchar(64) NOT NULL DEFAULT '0' COMMENT 'CP或渠道计费点id 用于映射到苹果',
  9. `product_code` varchar(64) NOT NULL DEFAULT '0' COMMENT '商品ID 0表示单机游戏购买费用',
  10. `product_name` varchar(64) NOT NULL DEFAULT '' COMMENT '商品名称',
  11. `product_price` decimal(12,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '商品价格 对应本地商品价格',
  12. `create_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '创建时间',
  13. `update_time` bigint(20) NOT NULL DEFAULT '0' COMMENT '更新时间',
  14. PRIMARY KEY (`id`) USING BTREE,
  15. KEY `gp_app_index` (`app_id`) USING BTREE,
  16. KEY `gp_country_index` (`mobile_prefix`) USING BTREE,
  17. KEY `gp_cpc_index` (`ch_product_code`) USING BTREE,
  18. KEY `gp_code_index` (`product_code`) USING BTREE
  19. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='游戏计费点';