Differential D14011 Diff 33879 src/applications/webpush/storage/PhabricatorUserWebPushSubscriber.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/webpush/storage/PhabricatorUserWebPushSubscriber.php
- This file was added.
| <?php | |||||
| /** | |||||
| * @task restrictions Domain Restrictions | |||||
| * @task email Email About Email | |||||
| */ | |||||
| final class PhabricatorUserWebPushSubscriber extends PhabricatorUserDAO { | |||||
| protected $userPHID; | |||||
| protected $subscriptionId; | |||||
| protected $endpoint; | |||||
| protected $userAgent; | |||||
| protected function getConfiguration() { | |||||
| return array( | |||||
| self::CONFIG_COLUMN_SCHEMA => array( | |||||
| 'subscriptionId' => 'text255', | |||||
| 'endpoint' => 'text128', | |||||
| 'userAgent' => 'text255', | |||||
| ), | |||||
| self::CONFIG_KEY_SCHEMA => array( | |||||
| 'subscriber' => array( | |||||
| 'columns' => array('subscriptionId', 'endpoint'), | |||||
| 'unique' => true, | |||||
| ), | |||||
| 'userPHID' => array( | |||||
| 'columns' => array('userPHID'), | |||||
| ), | |||||
| ), | |||||
| ) + parent::getConfiguration(); | |||||
| } | |||||
| } |