1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 10:42:41 +01:00
phorge-phorge/resources/sql/autopatches/20150209.invite.sql

12 lines
478 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_user.user_authinvite (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
authorPHID VARBINARY(64) NOT NULL,
emailAddress VARCHAR(128) NOT NULL COLLATE {$COLLATE_SORT},
verificationHash BINARY(12) NOT NULL,
acceptedByPHID VARBINARY(64),
dateCreated INT UNSIGNED NOT NULL,
dateModified INT UNSIGNED NOT NULL,
UNIQUE KEY `key_address` (emailAddress),
UNIQUE KEY `key_code` (verificationHash)
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};