给 vscode 用的 go
sudo apt install yarnpkg golang-go
https://github.com/go-redis/redis
graph LR
subgraph 后端
subgraph channel版本
channel[("channel")]
end
subgraph article文章
article[("article")]
article_list[("article_list")]
collection[("collection")]
end
end
subgraph 前端
subgraph 文集
collection_home("著作首页")
article_reader("文章阅读")
collection_edit("著作编辑")
article_edit("文章编辑")
end
end
collection_home --> collection
collection_home --> article
article_reader --> article
article_reader --> collection
article_reader --> article_list
collection_edit --> collection
article_edit --> article
数据表应包含如下字段
id SERIAL PRIMARY KEY,
version INTEGER NOT NULL DEFAULT (1),
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
deleted_at TIMESTAMP //可选