. // }}} namespace App\Entity; /** * Entity for Profile Tag Subscription * * @category DB * @package GNUsocial * * @author Zach Copley * @copyright 2010 StatusNet Inc. * @author Mikael Nordfeldth * @copyright 2009-2014 Free Software Foundation, Inc http://www.fsf.org * @author Hugo Sales * @copyright 2020 Free Software Foundation, Inc http://www.fsf.org * @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later */ class ProfileTagSubscription { // AUTOCODE BEGIN // AUTOCODE END public static function schemaDef(): array { return [ 'name' => 'profile_tag_subscription', 'fields' => [ 'profile_tag_id' => ['type' => 'int', 'not null' => true, 'description' => 'foreign key to profile_tag'], 'profile_id' => ['type' => 'int', 'not null' => true, 'description' => 'foreign key to profile table'], 'created' => ['type' => 'datetime', 'not null' => true, 'default' => '0000-00-00 00:00:00', 'description' => 'date this record was created'], 'modified' => ['type' => 'datetime', 'not null' => true, 'default' => 'CURRENT_TIMESTAMP', 'description' => 'date this record was modified'], ], 'primary key' => ['profile_tag_id', 'profile_id'], 'foreign keys' => [ 'profile_tag_subscription_profile_list_id_fkey' => ['profile_list', ['profile_tag_id' => 'id']], 'profile_tag_subscription_profile_id_fkey' => ['profile', ['profile_id' => 'id']], ], 'indexes' => [ // @fixme probably we want a (profile_id, created) index here? 'profile_tag_subscription_profile_id_idx' => ['profile_id'], 'profile_tag_subscription_created_idx' => ['created'], ], ]; } }