You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
543 B

<?php
namespace App\Model\v3;
use App\Model\Model;
use Hyperf\Database\Model\SoftDeletes;
class ShoppingCart extends Model
{
use SoftDeletes;
protected $table = 'lanzu_shopping_cart';
protected $fillable = [
'id',
'user_id',
'goods_id',
'market_id',
'store_id',
'num',
'activity_type'
];
public function store()
{
return $this->belongsTo(Store::class, 'store_id', 'id');
}
public function goods()
{
return $this->morphTo();
}
}