database
This commit is contained in:
parent
b47bac67ca
commit
dda1fca264
4 changed files with 95 additions and 0 deletions
33
Femto.Database/Migrations/20250517195800_InitOutboxes.sql
Normal file
33
Femto.Database/Migrations/20250517195800_InitOutboxes.sql
Normal file
|
@ -0,0 +1,33 @@
|
|||
-- Migration: InitOutboxes
|
||||
-- Created at: 17/05/2025 19:58:00
|
||||
|
||||
CREATE TABLE blog.outbox
|
||||
(
|
||||
|
||||
id uuid PRIMARY KEY,
|
||||
event_type text NOT NULL,
|
||||
aggregate_id uuid NOT NULL,
|
||||
payload text NOT NULL,
|
||||
created_at timestamp DEFAULT now() NOT NULL,
|
||||
processed_at timestamp,
|
||||
next_retry_at timestamp,
|
||||
retry_count int DEFAULT 0 NOT NULL,
|
||||
last_error text,
|
||||
status int DEFAULT 0 NOT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE authn.outbox
|
||||
(
|
||||
|
||||
id uuid PRIMARY KEY,
|
||||
event_type text NOT NULL,
|
||||
aggregate_id uuid NOT NULL,
|
||||
payload text NOT NULL,
|
||||
created_at timestamp DEFAULT now() NOT NULL,
|
||||
processed_at timestamp,
|
||||
next_retry_at timestamp,
|
||||
retry_count int DEFAULT 0 NOT NULL,
|
||||
last_error text,
|
||||
status int DEFAULT 0 NOT NULL
|
||||
);
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue