Files
MER-2.2_2601/mer_java/sql/多商户eb_user.sql
2026-03-08 20:07:52 +08:00

81 lines
4.5 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
Navicat Premium Dump SQL
Source Server : miao-148
Source Server Type : MySQL
Source Server Version : 50744 (5.7.44-log)
Source Host : 118.31.75.148:3306
Source Schema : shop22
Target Server Type : MySQL
Target Server Version : 50744 (5.7.44-log)
File Encoding : 65001
Date: 26/02/2026 19:09:59
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for eb_user
-- ----------------------------
DROP TABLE IF EXISTS `eb_user`;
CREATE TABLE `eb_user` (
`id` int(10) unsigned NOT NULL COMMENT '用户id',
`uid` bigint(20) NOT NULL COMMENT '单商户用户id',
`account` varchar(32) NOT NULL DEFAULT '' COMMENT '用户账号',
`pwd` varchar(32) NOT NULL DEFAULT '' COMMENT '用户密码',
`real_name` varchar(25) NOT NULL DEFAULT '' COMMENT '真实姓名',
`birthday` varchar(32) NOT NULL DEFAULT '' COMMENT '生日',
`identity_card_no` varchar(20) NOT NULL DEFAULT '' COMMENT '身份证号码',
`tag_id` varchar(255) NOT NULL DEFAULT '' COMMENT '标签id,英文逗号分隔',
`nickname` varchar(255) NOT NULL DEFAULT '' COMMENT '用户昵称',
`avatar` varchar(256) NOT NULL DEFAULT '' COMMENT '用户头像',
`phone` varchar(50) NOT NULL DEFAULT '' COMMENT '手机号码',
`country` varchar(20) NOT NULL DEFAULT 'CN' COMMENT '国家中国CN其他OTHER',
`province` varchar(20) NOT NULL DEFAULT '' COMMENT '省份',
`city` varchar(20) NOT NULL DEFAULT '' COMMENT '城市',
`district` varchar(64) NOT NULL DEFAULT '' COMMENT '',
`address` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
`sex` tinyint(4) NOT NULL DEFAULT '1' COMMENT '性别0未知1男2女3保密',
`integral` decimal(10,3) NOT NULL DEFAULT '0.000' COMMENT '用户积分',
`experience` int(11) NOT NULL DEFAULT '0' COMMENT '用户经验',
`now_money` decimal(16,2) NOT NULL DEFAULT '0.00' COMMENT '用户余额',
`brokerage_price` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '佣金金额',
`level` tinyint(4) NOT NULL DEFAULT '0' COMMENT '等级',
`sign_num` int(11) NOT NULL DEFAULT '0' COMMENT '连续签到天数',
`is_wechat_public` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联公众号',
`is_wechat_routine` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联小程序',
`pay_count` int(11) NOT NULL DEFAULT '0' COMMENT '用户购买次数',
`is_promoter` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为推广员',
`promoter_time` timestamp NULL DEFAULT NULL COMMENT '成为分销员时间',
`spread_uid` int(11) NOT NULL DEFAULT '0' COMMENT '上级推广员id',
`spread_time` timestamp NULL DEFAULT NULL COMMENT '绑定上级推广员时间',
`spread_count` int(11) NOT NULL DEFAULT '0' COMMENT '下级人数',
`register_type` varchar(32) NOT NULL DEFAULT '' COMMENT '注册类型public-公众号mini-小程序H5-H5,iosWx-微信iosandroidWx-微信安卓ios-ios',
`add_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '创建ip',
`last_ip` varchar(16) NOT NULL DEFAULT '' COMMENT '最后一次登录ip',
`last_login_time` timestamp NULL DEFAULT NULL COMMENT '最后一次登录时间',
`status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1为正常0为禁止',
`mark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注',
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
`is_logoff` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否注销',
`logoff_time` timestamp NULL DEFAULT NULL COMMENT '注销时间',
`is_wechat_ios` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联微信ios',
`is_wechat_android` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联微信android',
`is_binding_ios` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联ios',
`signature` varchar(100) NOT NULL DEFAULT '' COMMENT '用户签名',
`is_paid_member` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否付费会员',
`paid_member_expiration_time` datetime DEFAULT NULL COMMENT '付费会员到期时间',
`is_permanent_paid_member` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否永久付费会员',
`is_wechat_pc` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关联微信网站应用PC',
PRIMARY KEY (`id`,`uid`) USING BTREE,
KEY `spreaduid` (`spread_uid`) USING BTREE,
KEY `status` (`status`) USING BTREE,
KEY `is_promoter` (`is_promoter`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC COMMENT='用户表';
SET FOREIGN_KEY_CHECKS = 1;