# fluent-boards/1.30/app/Models/NotificationUser.php

FluentBoards – Project Management, Task Management, Goal Tracking, Kanban Board, and, Team Collaboration, version 1.30. 32 lines.

- Page: https://pluginprobe.com/plugins/fluent-boards/1.30/code/app/Models/NotificationUser.php
- Raw: https://pluginprobe.com/plugins/fluent-boards/1.30/raw/app/Models/NotificationUser.php
- Modified: 2024-05-31T06:41:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-boards/1.30/code/app/Models/NotificationUser.php#L10-L20`.

```php
<?php

namespace FluentBoards\App\Models;

class NotificationUser extends Model
{
    protected $table = 'fbs_notification_users';

    protected $guarded = ['id'];

    protected $fillable = [
        'notification_id',
        'user_id',
        'marked_read_at'
    ];

    public static function boot()
    {
        parent::boot();
        static::creating(function ($model) {
            $model->created_at = current_time('mysql');
            $model->updated_at = current_time('mysql');
        });
    }

    public function notification()
    {
        return $this->belongsTo(Notification::class,'notification_id','id');
    }

}

```
