mirror of
https://github.com/hexolan/stocklet.git
synced 2026-03-27 03:54:11 +00:00
chore: initial commit
This commit is contained in:
19
schema/sql/user/000001_init_user.up.sql
Normal file
19
schema/sql/user/000001_init_user.up.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
CREATE TABLE users (
|
||||
id bigserial PRIMARY KEY,
|
||||
|
||||
first_name varchar(64) NOT NULL,
|
||||
last_name varchar(64) NOT NULL,
|
||||
|
||||
email varchar NOT NULL UNIQUE,
|
||||
|
||||
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
|
||||
);
|
||||
Reference in New Issue
Block a user