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
2015-06-26 14:07:59 -08:00

14 lines
333 B
SQL

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