1 Star 0 Fork 0

mscorlib/Whizbang.EventStore.Pgsql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
EventStore.Pgsql.sql 1023 Bytes
一键复制 编辑 原始数据 按行查看 历史
mscorlib 提交于 2020-06-12 22:25 +08:00 . implement event-store by postgresql
-- ----------------------------
-- Table structure for "Events"
-- ----------------------------
CREATE TABLE public."Events" (
"SourceId" uuid NOT NULL,
"Version" integer NOT NULL,
"Timestamp" timestamp with time zone NOT NULL,
"Type" text COLLATE pg_catalog."default" NOT NULL,
"Data" text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT "Events_pkey" PRIMARY KEY ("SourceId", "Version")
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public."Events"
OWNER to postgres;
-- ----------------------------
-- Table structure for "Snapshots"
-- ----------------------------
CREATE TABLE public."Snapshots" (
"SourceId" uuid NOT NULL,
"Version" integer NOT NULL,
"Timestamp" timestamp with time zone NOT NULL,
"Type" text COLLATE pg_catalog."default" NOT NULL,
"Data" text COLLATE pg_catalog."default" NOT NULL,
CONSTRAINT "Snapshots_pkey" PRIMARY KEY ("SourceId", "Version")
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
ALTER TABLE public."Snapshots"
OWNER to postgres;
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mscorlib/Whizbang.EventStore.Pgsql.git
git@gitee.com:mscorlib/Whizbang.EventStore.Pgsql.git
mscorlib
Whizbang.EventStore.Pgsql
Whizbang.EventStore.Pgsql
master

搜索帮助