mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-26 11:41:18 +00:00
18 lines
416 B
SQL
18 lines
416 B
SQL
CREATE TABLE products (
|
|
id bigserial PRIMARY KEY,
|
|
|
|
name varchar(128) NOT NULL,
|
|
description varchar(256) NOT NULL,
|
|
price money NOT NULL,
|
|
|
|
created_at timestamp NOT NULL DEFAULT timezone('utc', now()),
|
|
updated_at timestamp
|
|
);
|
|
|
|
CREATE TABLE event_outbox (
|
|
id bigserial PRIMARY KEY,
|
|
|
|
aggregateid varchar(128) NOT NULL,
|
|
aggregatetype varchar(128) NOT NULL,
|
|
payload bytea NOT NULL
|
|
); |