更新搜索引擎
This commit is contained in:
28
note.md
28
note.md
@@ -4,3 +4,31 @@ minio.exe server ./data --console-address "127.0.0.1:9000" --address "127.0.0.1:
|
||||
[redis启动]
|
||||
redis-server.exe redis.windows.conf
|
||||
|
||||
|
||||
[表设计]
|
||||
-投票文章表
|
||||
```
|
||||
create table vote_article
|
||||
(
|
||||
id bigint auto_increment comment '文章ID'
|
||||
primary key,
|
||||
title varchar(255) not null comment '文章标题',
|
||||
content text null comment '文章内容',
|
||||
cover_image varchar(512) null comment '封面图片URL',
|
||||
author_id bigint not null comment '作者ID',
|
||||
status tinyint default 0 not null comment '状态(0:草稿;1:待审核;2:已发布;3:已结束;4:已下架)',
|
||||
vote_start_time datetime not null comment '投票开始时间',
|
||||
vote_end_time datetime not null comment '投票结束时间',
|
||||
total_votes int default 0 not null comment '总投票数',
|
||||
total_voters int default 0 not null comment '参与人数',
|
||||
is_anonymous tinyint(1) default 0 not null comment '是否匿名投票(0:否;1:是)',
|
||||
is_multiple tinyint(1) default 0 not null comment '是否允许多选(0:单选;1:多选)',
|
||||
max_choices int default 1 not null comment '最大可选数量',
|
||||
view_count int default 0 not null comment '浏览次数',
|
||||
created_at datetime default CURRENT_TIMESTAMP not null comment '创建时间',
|
||||
updated_at datetime null on update CURRENT_TIMESTAMP comment '更新时间',
|
||||
deleted_at datetime null comment '软删除时间'
|
||||
)
|
||||
comment '投票文章表';
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user