Second checkpoint
This commit is contained in:
12
migrations/00004_create_events_table.sql
Normal file
12
migrations/00004_create_events_table.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
-- +goose Up
|
||||
-- Sink for the generic example RabbitMQ consumer. Safe to drop once a real
|
||||
-- async use case replaces the scaffold.
|
||||
CREATE TABLE events (
|
||||
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
|
||||
kind VARCHAR(255) NOT NULL,
|
||||
payload JSONB NOT NULL DEFAULT '{}'::jsonb,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT now()
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE events;
|
||||
Reference in New Issue
Block a user