PHP Classes

File: SQL File

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   database/migrations/v1.7.4_gateway_tokens.sql   Download  
File: database/migrations/v1.7.4_gateway_tokens.sql
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 641 bytes
 

Contents

Class file image Download
-- Gateway tokens for external service authentication (bbslinkgateway, etc.) CREATE TABLE IF NOT EXISTS gateway_tokens ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES users(id) ON DELETE CASCADE, token VARCHAR(64) NOT NULL UNIQUE, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, expires_at TIMESTAMP NOT NULL, used_at TIMESTAMP, door VARCHAR(100) ); CREATE INDEX IF NOT EXISTS idx_gateway_tokens_token ON gateway_tokens(token); CREATE INDEX IF NOT EXISTS idx_gateway_tokens_user_id ON gateway_tokens(user_id); CREATE INDEX IF NOT EXISTS idx_gateway_tokens_expires_at ON gateway_tokens(expires_at);