Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
1 Star 0 Fork 4.3K

javaalpha/MicroCommunity

forked from java110/MicroCommunity
Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (15)
Tags (8)
master
shiyj01
duckweed
jonas
spring-cloud-1.4
shareDb
shiyj
dyaoming
wuxw
product
v0.3
v20190322
test
v0.2
add-license-1
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
master
Branches (15)
Tags (8)
master
shiyj01
duckweed
jonas
spring-cloud-1.4
shareDb
shiyj
dyaoming
wuxw
product
v0.3
v20190322
test
v0.2
add-license-1
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (15)
Tags (8)
master
shiyj01
duckweed
jonas
spring-cloud-1.4
shareDb
shiyj
dyaoming
wuxw
product
v0.3
v20190322
test
v0.2
add-license-1
v0.0.8
v0.0.7
v0.0.6
v0.0.5
v0.0.4
v0.0.3
v0.0.2
v0.0.1
create_table.sql 7.26 KB
Copy Edit Raw Blame History
java110 authored 2019年05月13日 18:01 +08:00 . 加入分片功能呢
-- 评论
create table c_comment(
comment_id VARCHAR(30) NOT NULL COMMENT '评论ID',
user_id varchar(30) not null comment '评论者用户ID',
b_id VARCHAR(30) NOT NULL COMMENT '订单ID',
comment_type_cd varchar(2) not null default 'S' comment '评论类型 S表示 商品 M表示 商户 T 物流',
out_id varchar(30) not null comment '外部ID,如商品ID 商户ID等',
`month` INT NOT NULL COMMENT '月份',
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'
)
PARTITION BY RANGE (`month`) (
PARTITION comment_1 VALUES LESS THAN (2),
PARTITION comment_2 VALUES LESS THAN (3),
PARTITION comment_3 VALUES LESS THAN (4),
PARTITION comment_4 VALUES LESS THAN (5),
PARTITION comment_5 VALUES LESS THAN (6),
PARTITION comment_6 VALUES LESS THAN (7),
PARTITION comment_7 VALUES LESS THAN (8),
PARTITION comment_8 VALUES LESS THAN (9),
PARTITION comment_9 VALUES LESS THAN (10),
PARTITION comment_10 VALUES LESS THAN (11),
PARTITION comment_11 VALUES LESS THAN (12),
PARTITION comment_12 VALUES LESS THAN (13)
);
CREATE INDEX idx_comment_b_id ON c_comment(b_id);
CREATE INDEX idx_comment_out_id ON c_comment(out_id);
-- 评论子表
create table c_sub_comment(
sub_comment_id varchar(30) not null comment '子评论ID',
comment_id varchar(30) not null comment '评论ID ',
b_id VARCHAR(30) NOT NULL COMMENT '订单ID',
parent_sub_comment_id varchar(30) not null default '-1' comment '父 子评论ID 如果不是回复 写成-1',
sub_comment_type_cd varchar(2) not null default 'C' comment '评论类型 C 评论 R 回复 A 追加',
comment_context LONGTEXT not null COMMENT '评论内容',
`month` INT NOT NULL COMMENT '月份',
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'
)
PARTITION BY RANGE (`month`) (
PARTITION sub_comment_1 VALUES LESS THAN (2),
PARTITION sub_comment_2 VALUES LESS THAN (3),
PARTITION sub_comment_3 VALUES LESS THAN (4),
PARTITION sub_comment_4 VALUES LESS THAN (5),
PARTITION sub_comment_5 VALUES LESS THAN (6),
PARTITION sub_comment_6 VALUES LESS THAN (7),
PARTITION sub_comment_7 VALUES LESS THAN (8),
PARTITION sub_comment_8 VALUES LESS THAN (9),
PARTITION sub_comment_9 VALUES LESS THAN (10),
PARTITION sub_comment_10 VALUES LESS THAN (11),
PARTITION sub_comment_11 VALUES LESS THAN (12),
PARTITION sub_comment_12 VALUES LESS THAN (13)
);
CREATE INDEX idx_sub_comment_b_id ON c_sub_comment(b_id);
CREATE INDEX idx_sub_comment_comment_id ON c_sub_comment(comment_id);
CREATE INDEX idx_sub_comment_parent_sub_comment_id ON c_sub_comment(parent_sub_comment_id);
-- 属性
create table c_sub_comment_attr(
attr_id VARCHAR(30) NOT NULL COMMENT '属性id',
sub_comment_id VARCHAR(30) NOT NULL COMMENT '子评论ID',
b_id VARCHAR(30) NOT NULL COMMENT '订单ID',
spec_cd VARCHAR(12) NOT NULL COMMENT '规格id,参考spec表',
value VARCHAR(50) NOT NULL COMMENT '属性值',
`month` INT NOT NULL COMMENT '月份',
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'
)
PARTITION BY RANGE (`month`) (
PARTITION sub_comment_attr_1 VALUES LESS THAN (2),
PARTITION sub_comment_attr_2 VALUES LESS THAN (3),
PARTITION sub_comment_attr_3 VALUES LESS THAN (4),
PARTITION sub_comment_attr_4 VALUES LESS THAN (5),
PARTITION sub_comment_attr_5 VALUES LESS THAN (6),
PARTITION sub_comment_attr_6 VALUES LESS THAN (7),
PARTITION sub_comment_attr_7 VALUES LESS THAN (8),
PARTITION sub_comment_attr_8 VALUES LESS THAN (9),
PARTITION sub_comment_attr_9 VALUES LESS THAN (10),
PARTITION sub_comment_attr_10 VALUES LESS THAN (11),
PARTITION sub_comment_attr_11 VALUES LESS THAN (12),
PARTITION sub_comment_attr_12 VALUES LESS THAN (13)
);
CREATE INDEX idx_sub_comment_attr_b_id ON c_sub_comment_attr(b_id);
CREATE INDEX idx_sub_comment_attr_sub_comment_id ON c_sub_comment_attr(sub_comment_id);
CREATE INDEX idx_sub_comment_attr_spec_cd ON c_sub_comment_attr(spec_cd);
-- 评论 照片
CREATE TABLE c_sub_comment_photo(
comment_photo_id VARCHAR(30) NOT NULL COMMENT '评论照片ID',
b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
sub_comment_id VARCHAR(30) NOT NULL COMMENT '商店ID',
comment_photo_type_cd VARCHAR(2) NOT NULL default 'S' COMMENT '评论照片类型,S 商品照片 M 商户ID',
photo VARCHAR(100) NOT NULL COMMENT '照片',
`month` INT NOT NULL COMMENT '月份',
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'
)
PARTITION BY RANGE (`month`) (
PARTITION sub_comment_photo_1 VALUES LESS THAN (2),
PARTITION sub_comment_photo_2 VALUES LESS THAN (3),
PARTITION sub_comment_photo_3 VALUES LESS THAN (4),
PARTITION sub_comment_photo_4 VALUES LESS THAN (5),
PARTITION sub_comment_photo_5 VALUES LESS THAN (6),
PARTITION sub_comment_photo_6 VALUES LESS THAN (7),
PARTITION sub_comment_photo_7 VALUES LESS THAN (8),
PARTITION sub_comment_photo_8 VALUES LESS THAN (9),
PARTITION sub_comment_photo_9 VALUES LESS THAN (10),
PARTITION sub_comment_photo_10 VALUES LESS THAN (11),
PARTITION sub_comment_photo_11 VALUES LESS THAN (12),
PARTITION sub_comment_photo_12 VALUES LESS THAN (13)
);
CREATE INDEX idx_sub_comment_photo_b_id ON c_sub_comment_photo(b_id);
CREATE INDEX idx_sub_comment_photo_sub_comment_id ON c_sub_comment_photo(sub_comment_id);
-- 评论分数
CREATE TABLE c_comment_score(
comment_score_id VARCHAR(30) NOT NULL COMMENT '评论分数ID',
comment_id VARCHAR(30) NOT NULL COMMENT '评论ID',
b_id VARCHAR(30) NOT NULL COMMENT '业务Id',
score_type_cd VARCHAR(2) NOT NULL COMMENT '打分类别,S 商品相符,U 卖家打分,T 物流打分',
`value` INT NOT NULL COMMENT '分数',
`month` INT NOT NULL COMMENT '月份',
create_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
status_cd VARCHAR(2) NOT NULL DEFAULT '0' COMMENT '数据状态,详细参考c_status表,S 保存,0, 在用 1失效'
)
PARTITION BY RANGE (`month`) (
PARTITION comment_score_1 VALUES LESS THAN (2),
PARTITION comment_score_2 VALUES LESS THAN (3),
PARTITION comment_score_3 VALUES LESS THAN (4),
PARTITION comment_score_4 VALUES LESS THAN (5),
PARTITION comment_score_5 VALUES LESS THAN (6),
PARTITION comment_score_6 VALUES LESS THAN (7),
PARTITION comment_score_7 VALUES LESS THAN (8),
PARTITION comment_score_8 VALUES LESS THAN (9),
PARTITION comment_score_9 VALUES LESS THAN (10),
PARTITION comment_score_10 VALUES LESS THAN (11),
PARTITION comment_score_11 VALUES LESS THAN (12),
PARTITION comment_score_12 VALUES LESS THAN (13)
);
CREATE INDEX idx_comment_score_b_id ON c_comment_score(b_id);
CREATE INDEX idx_comment_score_comment_id ON c_comment_score(comment_id);
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

HC小区管理系统是为物业企业打造的智慧物业综合管理平台提供商家入驻、快递代收、房屋租赁等盈利功能,为物业企业提供全新的运营盈利模式。和java110开发者零距离沟通 qq群号 827669685 网站地址 (账号密码为 wuxw/admin)
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/javaalpha/MicroCommunity.git
git@gitee.com:javaalpha/MicroCommunity.git
javaalpha
MicroCommunity
MicroCommunity
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /