refactoring: Masive refactor to build the V2

This commit is contained in:
2026-07-26 17:51:58 +02:00
parent 78956ce84e
commit f3b848ea93
250 changed files with 4340 additions and 4092 deletions
@@ -1,4 +1,5 @@
create table event_stream (
create schema game;
create table game.game_event_stream (
id uuid not null primary key,
aggregate_id uuid not null,
version int not null,
@@ -0,0 +1,8 @@
create schema auth;
create table auth.user_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)
);
@@ -0,0 +1,6 @@
create table auth.user (
id uuid not null primary key,
username text not null,
unique(id),
unique(username)
);