migrate to gtea from bistbucket
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user