37 lines
718 B
PHP
37 lines
718 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Modules\Restaurant\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class FoodReviewReply extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [
|
||
|
|
'restaurant_id',
|
||
|
|
'review_id',
|
||
|
|
'user_id',
|
||
|
|
'customer_id',
|
||
|
|
'user_type',
|
||
|
|
'message',
|
||
|
|
'attachments',
|
||
|
|
'status',
|
||
|
|
'created_at',
|
||
|
|
'updated_at',
|
||
|
|
'deleted_at',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'attachments' => 'array',
|
||
|
|
];
|
||
|
|
|
||
|
|
public const TABLE_NAME = 'food_review_replies';
|
||
|
|
|
||
|
|
protected $table = self::TABLE_NAME;
|
||
|
|
|
||
|
|
public function review(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(FoodReview::class);
|
||
|
|
}
|
||
|
|
}
|