Ai
3 Star 16 Fork 8

Gitee 极速下载/taskcafe

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/JordanKnott/taskcafe
克隆/下载
0053_add-notification-tables.up.sql 568 Bytes
一键复制 编辑 原始数据 按行查看 历史
Jordan Knott 提交于 2020-09-12 08:29 +08:00 . fix: duplicate schema migration
CREATE TABLE notification_object (
notification_object_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
entity_id uuid NOT NULL,
action_type int NOT NULL,
actor_id uuid NOT NULL,
entity_type int NOT NULL,
created_on timestamptz NOT NULL
);
CREATE TABLE notification (
notification_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
notification_object_id uuid REFERENCES notification_object(notification_object_id) ON DELETE CASCADE,
notifier_id uuid NOT NULL REFERENCES user_account(user_id) ON DELETE CASCADE,
read boolean NOT NULL DEFAULT false
);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mirrors/taskcafe.git
git@gitee.com:mirrors/taskcafe.git
mirrors
taskcafe
taskcafe
master

搜索帮助