react-code-dataset / goalert /migrate /migrations /20170613122551-auth-token.sql
Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
raw
history blame contribute delete
307 Bytes
-- +migrate Up
CREATE TABLE auth_token_codes (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
user_id UUID UNIQUE NOT NULL REFERENCES users (id),
expires_at TIMESTAMP NOT NULL DEFAULT now()+'5 minutes'::INTERVAL,
user_agent TEXT NOT NULL
);
-- +migrate Down
DROP TABLE auth_token_codes;