|
|
@ -18,7 +18,7 @@ CREATE TABLE `p_attachment` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_attachment_user` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=100041 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='附件';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=100041 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='附件';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -36,9 +36,9 @@ CREATE TABLE `p_captcha` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_phone` (`phone`) USING BTREE,
|
|
|
|
KEY `idx_captcha_phone` (`phone`) USING BTREE,
|
|
|
|
KEY `idx_expired_on` (`expired_on`) USING BTREE,
|
|
|
|
KEY `idx_captcha_expired_on` (`expired_on`) USING BTREE,
|
|
|
|
KEY `idx_use_times` (`use_times`) USING BTREE
|
|
|
|
KEY `idx_captcha_use_times` (`use_times`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1021 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='手机验证码';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1021 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='手机验证码';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -56,8 +56,8 @@ CREATE TABLE `p_comment` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_post` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_comment_post_id` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_comment_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6001736 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6001736 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -76,10 +76,10 @@ CREATE TABLE `p_comment_content` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_reply` (`comment_id`) USING BTREE,
|
|
|
|
KEY `idx_comment_content_comment_id` (`comment_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_comment_content_user_id` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_type` (`type`) USING BTREE,
|
|
|
|
KEY `idx_comment_content_type` (`type`) USING BTREE,
|
|
|
|
KEY `idx_sort` (`sort`) USING BTREE
|
|
|
|
KEY `idx_comment_content_sort` (`sort`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=11001738 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论内容';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=11001738 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论内容';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -99,7 +99,7 @@ CREATE TABLE `p_comment_reply` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_comment` (`comment_id`) USING BTREE
|
|
|
|
KEY `idx_comment_reply_comment_id` (`comment_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12000015 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论回复';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12000015 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='评论回复';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -122,9 +122,9 @@ CREATE TABLE `p_message` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_receiver` (`receiver_user_id`) USING BTREE,
|
|
|
|
KEY `idx_message_receiver_user_id` (`receiver_user_id`) USING BTREE,
|
|
|
|
KEY `idx_is_read` (`is_read`) USING BTREE,
|
|
|
|
KEY `idx_message_is_read` (`is_read`) USING BTREE,
|
|
|
|
KEY `idx_type` (`type`) USING BTREE
|
|
|
|
KEY `idx_message_type` (`type`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=16000033 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='消息通知';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=16000033 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='消息通知';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -151,8 +151,8 @@ CREATE TABLE `p_post` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_post_user_id` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_visibility` (`visibility`) USING BTREE
|
|
|
|
KEY `idx_post_visibility` (`visibility`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1080017989 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=1080017989 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -169,8 +169,8 @@ CREATE TABLE `p_post_attachment_bill` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_post` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_post_attachment_bill_post_id` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_post_attachment_bill_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=5000002 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章附件账单';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=5000002 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章附件账单';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -186,8 +186,8 @@ CREATE TABLE `p_post_collection` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_post` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_post_collection_post_id` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_post_collection_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6000012 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章收藏';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6000012 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章收藏';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -206,8 +206,8 @@ CREATE TABLE `p_post_content` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_post` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_post_content_post_id` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_post_content_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=180022546 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章内容';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=180022546 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章内容';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -223,8 +223,8 @@ CREATE TABLE `p_post_star` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_post` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_post_star_post_id` (`post_id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_post_star_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6000028 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章点赞';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=6000028 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='冒泡/文章点赞';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -241,9 +241,9 @@ CREATE TABLE `p_tag` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_tag` (`tag`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_tag_tag` (`tag`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_tag_user_id` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_num` (`quote_num`) USING BTREE
|
|
|
|
KEY `idx_tag_quote_num` (`quote_num`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=9000065 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='标签';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=9000065 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='标签';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -266,8 +266,8 @@ CREATE TABLE `p_user` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_username` (`username`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_user_username` (`username`) USING BTREE,
|
|
|
|
KEY `idx_phone` (`phone`) USING BTREE
|
|
|
|
KEY `idx_user_phone` (`phone`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=100058 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=100058 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -283,14 +283,14 @@ CREATE TABLE `p_contact` (
|
|
|
|
`status` tinyint NOT NULL DEFAULT '0' COMMENT '好友状态: 1请求好友, 2已好友, 3拒绝好友, 4已删好友',
|
|
|
|
`status` tinyint NOT NULL DEFAULT '0' COMMENT '好友状态: 1请求好友, 2已好友, 3拒绝好友, 4已删好友',
|
|
|
|
`is_top` tinyint NOT NULL DEFAULT '0' COMMENT '是否置顶, 0否, 1是',
|
|
|
|
`is_top` tinyint NOT NULL DEFAULT '0' COMMENT '是否置顶, 0否, 1是',
|
|
|
|
`is_black` tinyint NOT NULL DEFAULT '0' COMMENT '是否为黑名单, 0否, 1是',
|
|
|
|
`is_black` tinyint NOT NULL DEFAULT '0' COMMENT '是否为黑名单, 0否, 1是',
|
|
|
|
`is_del` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除好友, 0否, 1是',
|
|
|
|
`is_delete` tinyint NOT NULL DEFAULT '0' COMMENT '是否删除好友, 0否, 1是',
|
|
|
|
`notice_enable` tinyint NOT NULL DEFAULT '0' COMMENT '是否有消息提醒, 0否, 1是',
|
|
|
|
`notice_enable` tinyint NOT NULL DEFAULT '0' COMMENT '是否有消息提醒, 0否, 1是',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`modified_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
|
|
`modified_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_user_friend_id` (`user_id`,`friend_id`) USING BTREE,
|
|
|
|
UNIQUE KEY `idx_contact_user_friend` (`user_id`,`friend_id`) USING BTREE,
|
|
|
|
KEY `idx_user_friend_status` (`user_id`, `friend_id`, `status`) USING BTREE
|
|
|
|
KEY `idx_contact_user_friend_status` (`user_id`, `friend_id`, `status`) USING BTREE
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='联系人';
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='联系人';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -301,7 +301,7 @@ CREATE TABLE `p_contact_group` (
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '联系人ID',
|
|
|
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT COMMENT '联系人ID',
|
|
|
|
`user_id` int NOT NULL DEFAULT '0' COMMENT '用户id',
|
|
|
|
`user_id` int NOT NULL DEFAULT '0' COMMENT '用户id',
|
|
|
|
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '分组名称',
|
|
|
|
`name` varchar(32) NOT NULL DEFAULT '' COMMENT '分组名称',
|
|
|
|
`is_del` tinyint NOT NULL DEFAULT '1' COMMENT '是否删除, 0否, 1是',
|
|
|
|
`is_delete` tinyint NOT NULL DEFAULT '1' COMMENT '是否删除, 0否, 1是',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`created_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '创建时间',
|
|
|
|
`modified_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
|
|
`modified_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '修改时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
@ -323,9 +323,9 @@ CREATE TABLE `p_wallet_recharge` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_wallet_recharge_user_id` (`user_id`) USING BTREE,
|
|
|
|
KEY `idx_trade_no` (`trade_no`) USING BTREE,
|
|
|
|
KEY `idx_wallet_recharge_trade_no` (`trade_no`) USING BTREE,
|
|
|
|
KEY `idx_trade_status` (`trade_status`) USING BTREE
|
|
|
|
KEY `idx_wallet_recharge_trade_status` (`trade_status`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10023 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='钱包流水';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10023 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='钱包流水';
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
-- ----------------------------
|
|
|
@ -344,7 +344,7 @@ CREATE TABLE `p_wallet_statement` (
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`deleted_on` bigint unsigned NOT NULL DEFAULT '0' COMMENT '删除时间',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
`is_del` tinyint unsigned NOT NULL DEFAULT '0' COMMENT '是否删除 0 为未删除、1 为已删除',
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
|
KEY `idx_user` (`user_id`) USING BTREE
|
|
|
|
KEY `idx_wallet_statement_user_id` (`user_id`) USING BTREE
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10010 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='钱包流水';
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=10010 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='钱包流水';
|
|
|
|
|
|
|
|
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|
SET FOREIGN_KEY_CHECKS = 1;
|
|
|
|