create EventStreamInPostgresql
This commit is contained in:
7
migrations/events/V1__init_event_table.sql
Normal file
7
migrations/events/V1__init_event_table.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
create table event_stream (
|
||||
id uuid not null primary key,
|
||||
aggregate_id uuid not null,
|
||||
version int not null,
|
||||
data jsonb not null,
|
||||
unique(aggregate_id, version)
|
||||
);
|
||||
Reference in New Issue
Block a user