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