This repository has been archived on 2025-03-30. You can view files and clone it, but cannot push or open issues or pull requests.
bactdb/migrations/00011_AddVerification_up.sql

13 lines
288 B
SQL

-- bactdb
-- Matthew R Dillon
CREATE TABLE verification (
user_id BIGINT NOT NULL,
nonce CHARACTER(60) NOT NULL UNIQUE,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
CONSTRAINT verification_pkey PRIMARY KEY (user_id),
FOREIGN KEY (user_id) REFERENCES users(id)
);