feat: inisialisasi project kit v2
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NotificationLog extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'title',
|
||||
'body',
|
||||
'image_url',
|
||||
'deep_link',
|
||||
'target_type',
|
||||
'target_user_id',
|
||||
'sender_id',
|
||||
'status',
|
||||
'error_message',
|
||||
];
|
||||
|
||||
public function targetUser()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'target_user_id');
|
||||
}
|
||||
|
||||
public function sender()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'sender_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user