. // }}} /** * ActivityPub's Pending follow requests * * @category Plugin * @package GNUsocial * * @author Diogo Cordeiro * @author Hugo Sales * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ namespace Plugin\ActivityPub\Entity; class ActivityPubFollowRequests { // {{{ Autocode // }}} Autocode public static function schemaDef() { return [ 'name' => 'activitypub_pending_follow_requests', 'fields' => [ 'local_gsactor_id' => ['type' => 'int', 'not null' => true], 'remote_gsactor_id' => ['type' => 'int', 'not null' => true], 'relation_id' => ['type' => 'serial', 'not null' => true], ], 'primary key' => ['relation_id'], 'foreign keys' => [ 'activitypub_pending_follow_requests_local_gsactor_id_fkey' => ['gsactor', ['local_gsactor_id' => 'id']], 'activitypub_pending_follow_requests_remote_gsactor_id_fkey' => ['gsactor', ['remote_gsactor_id' => 'id']], ], 'indexes' => [ 'activitypub_pending_follow_requests_local_gsactor_id_idx' => ['local_gsactor_id'], 'activitypub_pending_follow_requests_remote_gsactor_id_idx' => ['remote_gsactor_id'], ], ]; } }