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.
29 lines
587 B
29 lines
587 B
<?php
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
use Dcat\Admin\Traits\HasDateTimeFormatter;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use App\Models\ImsCjdcOrder as OrderModel;
|
|
|
|
class LanzuOrderGoods extends Model
|
|
{
|
|
use HasDateTimeFormatter;
|
|
|
|
protected $table = 'lanzu_order_goods';
|
|
protected $dateFormat = 'U';
|
|
|
|
public static $tableName = 'lanzu_order_goods';
|
|
|
|
public function goods()
|
|
{
|
|
return $this->belongsTo('\App\Models\LanzuGoods','goods_id','id');
|
|
}
|
|
|
|
public function order()
|
|
{
|
|
return $this->belongsTo(new OrderModel,'order_id','id');
|
|
}
|
|
|
|
}
|