Mb.php 617 Bytes
<?php

namespace app\admin\model\antis\customer;

use think\Model;


class Mb extends Model
{

    

    

    // 表名
    protected $name = 'agoods_mb';
    
    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'integer';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];
    

    







    public function goods()
    {
        return $this->belongsTo('app\admin\model\kuerp\Goods', 'goods_ids', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}