Files
nl-mall-api/app/Models/UserBrowsingHistoryModel.php

28 lines
504 B
PHP
Raw Normal View History

<?php
namespace App\Models;
use App\BaseApp\BaseModel;
class UserBrowsingHistoryModel extends BaseModel
{
protected $table = 'user_browsing_history';
/**
* The attributes that are mass assignable.
*
* @var list<string>
*/
protected $guarded = [];
public function product()
{
return $this->hasOne(ProductModel::class, 'id', 'product_id');
}
public function user()
{
return $this->hasOne(UserModel::class, 'id', 'user_id');
}
}