2011-06-14 12:17:14 -07:00
|
|
|
<?php
|
|
|
|
|
2012-03-13 11:18:11 -07:00
|
|
|
final class PhabricatorConduitCertificateToken extends PhabricatorConduitDAO {
|
2011-06-14 12:17:14 -07:00
|
|
|
|
|
|
|
protected $userPHID;
|
|
|
|
protected $token;
|
|
|
|
|
2015-01-14 06:47:05 +11:00
|
|
|
protected function getConfiguration() {
|
2014-09-18 11:15:29 -07:00
|
|
|
return array(
|
|
|
|
self::CONFIG_COLUMN_SCHEMA => array(
|
|
|
|
'token' => 'text64?',
|
|
|
|
),
|
|
|
|
self::CONFIG_KEY_SCHEMA => array(
|
|
|
|
'userPHID' => array(
|
|
|
|
'columns' => array('userPHID'),
|
2014-10-01 07:53:50 -07:00
|
|
|
'unique' => true,
|
2014-09-18 11:15:29 -07:00
|
|
|
),
|
|
|
|
'token' => array(
|
|
|
|
'columns' => array('token'),
|
2014-10-01 07:53:50 -07:00
|
|
|
'unique' => true,
|
2014-09-18 11:15:29 -07:00
|
|
|
),
|
|
|
|
),
|
|
|
|
) + parent::getConfiguration();
|
|
|
|
}
|
|
|
|
|
2011-06-14 12:17:14 -07:00
|
|
|
}
|