feat: add notifications inbox for actors

closes #215
This commit is contained in:
Ola Hneini 2022-08-12 16:02:56 +00:00 committed by Yassine Doghri
commit 999999e3ef
15 changed files with 707 additions and 29 deletions

View file

@ -0,0 +1,47 @@
<?php
declare(strict_types=1);
/**
* @copyright 2021 Ad Aures
* @license https://www.gnu.org/licenses/agpl-3.0.en.html AGPL3
* @link https://castopod.org/
*/
namespace App\Models;
use App\Entities\Notification;
use Michalsn\Uuid\UuidModel;
class NotificationModel extends UuidModel
{
/**
* @var string
*/
protected $table = 'notifications';
/**
* @var string
*/
protected $primaryKey = 'id';
/**
* @var string
*/
protected $returnType = Notification::class;
/**
* @var bool
*/
protected $useTimestamps = true;
/**
* @var string[]
*/
protected $uuidFields = ['post_id', 'activity_id'];
/**
* @var string[]
*/
protected $allowedFields = ['read_at'];
}