mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 18:52:42 +01:00
49c40d209d
Summary: Features! - Giving tokens. - Taking tokens back. - Not giving tokens. Test Plan: See screenshots. Reviewers: chad, vrana Reviewed By: chad CC: aran, btrahan Maniphest Tasks: T2541 Differential Revision: https://secure.phabricator.com/D4964
18 lines
743 B
SQL
18 lines
743 B
SQL
CREATE TABLE {$NAMESPACE}_token.token_given (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
authorPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
tokenPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_all` (objectPHID, authorPHID),
|
|
KEY `key_author` (authorPHID),
|
|
KEY `key_token` (tokenPHID)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
|
CREATE TABLE {$NAMESPACE}_token.token_count (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
tokenCount INT NOT NULL,
|
|
UNIQUE KEY `key_objectPHID` (objectPHID)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|