8ae34014
owen
会员: 增加会员分组功能
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
CREATE TABLE IF NOT EXISTS "member_user"
(
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY COMMENT '编号',
"nickname" varchar(30) NOT NULL DEFAULT '' COMMENT '用户昵称',
"name" varchar(30) NULL COMMENT '真实名字',
sex tinyint null comment '性别',
birthday datetime null comment '出生日期',
area_id int null comment '所在地',
mark varchar(255) null comment '用户备注',
point int default 0 null comment '积分',
"avatar" varchar(255) NOT NULL DEFAULT '' COMMENT '头像',
"status" tinyint NOT NULL COMMENT '状态',
"mobile" varchar(11) NOT NULL COMMENT '手机号',
"password" varchar(100) NOT NULL DEFAULT '' COMMENT '密码',
|
09103f31
YunaiV
1. 【修复】单元测试报错
|
15
|
"register_ip" varchar(32) NOT NULL COMMENT '注册 IP',
|
8ae34014
owen
会员: 增加会员分组功能
|
16
17
18
19
20
21
22
23
24
25
26
27
|
"login_ip" varchar(50) NULL DEFAULT '' COMMENT '最后登录IP',
"login_date" datetime NULL DEFAULT NULL COMMENT '最后登录时间',
"tag_ids" varchar(255) NULL DEFAULT NULL COMMENT '用户标签编号列表,以逗号分隔',
"level_id" bigint NULL DEFAULT NULL COMMENT '等级编号',
"experience" bigint NULL DEFAULT NULL COMMENT '经验',
"group_id" bigint NULL DEFAULT NULL COMMENT '用户分组编号',
"creator" varchar(64) NULL DEFAULT '' COMMENT '创建者',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
"updater" varchar(64) NULL DEFAULT '' COMMENT '更新者',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
"deleted" bit(1) NOT NULL DEFAULT '0' COMMENT '是否删除',
"tenant_id" bigint not null default '0',
|
09103f31
YunaiV
1. 【修复】单元测试报错
|
28
29
30
|
PRIMARY KEY ("id")
) COMMENT '会员表';
|
3a0feef4
YunaiV
Merge branch 'mas...
|
31
32
33
34
35
|
CREATE TABLE IF NOT EXISTS "member_address" (
"id" bigint(20) NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"user_id" bigint(20) NOT NULL,
"name" varchar(10) NOT NULL,
"mobile" varchar(20) NOT NULL,
|
4ce76e82
YunaiV
mall:完善收件地址
|
36
|
"area_id" bigint(20) NOT NULL,
|
3a0feef4
YunaiV
Merge branch 'mas...
|
37
|
"detail_address" varchar(250) NOT NULL,
|
3a24d05b
YunaiV
mall + pay:
|
38
|
"default_status" bit NOT NULL,
|
3a0feef4
YunaiV
Merge branch 'mas...
|
39
40
41
42
43
|
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"creator" varchar(64) DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"updater" varchar(64) DEFAULT '',
|
3a0feef4
YunaiV
Merge branch 'mas...
|
44
|
PRIMARY KEY ("id")
|
4ce76e82
YunaiV
mall:完善收件地址
|
45
|
) COMMENT '用户收件地址';
|
3a0feef4
YunaiV
Merge branch 'mas...
|
46
|
|
9b6e2114
owen
会员:
|
47
48
49
50
51
52
53
54
55
56
57
|
CREATE TABLE IF NOT EXISTS "member_tag"
(
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar NOT NULL,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint NOT NULL default '0',
PRIMARY KEY ("id")
|
e2032e7e
owen
会员:增加会员等级增删改查
|
58
59
60
61
|
) COMMENT '会员标签';
CREATE TABLE IF NOT EXISTS "member_level"
(
|
f884054d
owen
会员:完善会员等级校验、单元测试
|
62
63
64
65
|
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar NOT NULL,
"experience" int NOT NULL,
"level" int NOT NULL,
|
4809e9b4
YunaiV
修复单元测试报错的问题
|
66
|
"discount_percent" int NOT NULL,
|
f884054d
owen
会员:完善会员等级校验、单元测试
|
67
68
69
70
71
72
73
74
|
"icon" varchar NOT NULL,
"background_url" varchar NOT NULL,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint not null default '0',
|
4809e9b4
YunaiV
修复单元测试报错的问题
|
75
|
"status" tinyint NOT NULL DEFAULT '0',
|
e2032e7e
owen
会员:增加会员等级增删改查
|
76
|
PRIMARY KEY ("id")
|
8ae34014
owen
会员: 增加会员分组功能
|
77
78
79
80
81
82
83
|
) COMMENT '会员等级';
CREATE TABLE IF NOT EXISTS "member_group"
(
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar NOT NULL,
"remark" varchar NOT NULL,
|
4809e9b4
YunaiV
修复单元测试报错的问题
|
84
|
"status" tinyint NOT NULL DEFAULT '0',
|
8ae34014
owen
会员: 增加会员分组功能
|
85
86
87
88
89
90
91
|
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint not null default '0',
PRIMARY KEY ("id")
|
c7ef8519
owen
member: 分销增加佣金
|
92
|
) COMMENT '用户分组';
|
c7ef8519
owen
member: 分销增加佣金
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
CREATE TABLE IF NOT EXISTS "member_brokerage_record"
(
"id" int NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"user_id" bigint NOT NULL,
"biz_id" varchar NOT NULL,
"biz_type" varchar NOT NULL,
"title" varchar NOT NULL,
"price" int NOT NULL,
"total_price" int NOT NULL,
"description" varchar NOT NULL,
"status" varchar NOT NULL,
"frozen_days" int NOT NULL,
"unfreeze_time" varchar,
"creator" varchar DEFAULT '',
"create_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updater" varchar DEFAULT '',
"update_time" datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
"deleted" bit NOT NULL DEFAULT FALSE,
"tenant_id" bigint not null default '0',
PRIMARY KEY ("id")
|
bf92727b
YunaiV
Merge branch 'mas...
|
113
|
) COMMENT '佣金记录';
|