mirror of
https://github.com/kristoferssolo/zero2prod.git
synced 2026-02-04 06:42:07 +00:00
feat(db): create database
This commit is contained in:
7
migrations/20240323135723_create_subscribtions_table.sql
Normal file
7
migrations/20240323135723_create_subscribtions_table.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
-- Add migration script here
|
||||
CREATE TABLE SUBSCRIPTIONS (
|
||||
"id" UUID PRIMARY KEY NOT NULL,
|
||||
"email" TEXT NOT NULL UNIQUE,
|
||||
"name" TEXT NOT NULL,
|
||||
"subscribed_at" TIMESTAMPTZ NOT NULL
|
||||
);
|
||||
Reference in New Issue
Block a user