Files
toutoukan/note.md
2025-09-16 00:51:41 +08:00

34 lines
1.8 KiB
Markdown
Raw 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.
[minio启动]
minio.exe server ./data --console-address "127.0.0.1:9000" --address "127.0.0.1:9005"
[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 '是否匿名投票01',
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 '投票文章表';
```