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.
35 lines
598 B
35 lines
598 B
1 year ago
|
<?php
|
||
|
|
||
|
namespace app\admin\model\shopro\goods;
|
||
|
|
||
|
use app\admin\model\shopro\Common;
|
||
|
use traits\model\SoftDelete;
|
||
|
|
||
|
class StockWarning extends Common
|
||
|
{
|
||
|
use SoftDelete;
|
||
|
|
||
|
protected $name = 'shopro_goods_stock_warning';
|
||
|
|
||
|
protected $deleteTime = 'deletetime';
|
||
|
|
||
|
protected $type = [
|
||
|
];
|
||
|
|
||
|
protected $append = [
|
||
|
];
|
||
|
|
||
|
|
||
|
public function goods()
|
||
|
{
|
||
|
return $this->belongsTo(Goods::class, 'goods_id', 'id');
|
||
|
}
|
||
|
|
||
|
|
||
|
public function skuPrice()
|
||
|
{
|
||
|
return $this->belongsTo(SkuPrice::class, 'goods_sku_price_id', 'id');
|
||
|
}
|
||
|
|
||
|
}
|