mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2024-12-19 06:26:35 +00:00
3e553eaf60
* Add chapter 4 code. * Add logger middleware. * Add env_logger. * Instrumented. * Test logs. * Introduce instrument. * Refactor handler. * Use TracingLogger. * Update. * Fix linter error.
8 lines
No EOL
194 B
SQL
8 lines
No EOL
194 B
SQL
-- Create Subscriptions Table
|
|
CREATE TABLE subscriptions(
|
|
id uuid NOT NULL,
|
|
PRIMARY KEY (id),
|
|
email TEXT NOT NULL UNIQUE,
|
|
name TEXT NOT NULL,
|
|
subscribed_at timestamptz NOT NULL
|
|
); |