
-- ----------------------------
-- Table structure for xy_user_vip_rule
-- ----------------------------
DROP TABLE IF EXISTS `xy_user_vip_rule`;
CREATE TABLE `xy_user_vip_rule`  (
  `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT,
  `uid` int(0) NULL DEFAULT NULL,
  `vid` int(0) NULL DEFAULT NULL,
  `rid` int(0) NULL DEFAULT NULL,
  `value` int(0) NULL DEFAULT NULL,
  `surplus_value` int(0) NULL DEFAULT 0,
  `level` tinyint(0) NULL DEFAULT 99,
  `expiry_time` bigint(0) NULL DEFAULT NULL,
  `status` tinyint(1) NULL DEFAULT 1,
  `update_time` int(0) NULL DEFAULT NULL,
  `create_time` int(0) NULL DEFAULT NULL,
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `uid`(`uid`, `rid`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '用户-套餐权益' ROW_FORMAT = Dynamic;
