Signature.php
711 Bytes
<?php
namespace app\admin\model\fastflow;
use think\Model;
use traits\model\SoftDelete;
class Signature extends Model
{
// 表名
protected $name = 'fastflow_signature';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
// 追加属性
protected $append = [
];
public function ebillCopy()
{
return $this->belongsTo('app\admin\model\fastflow\flow\EbillCopy')->field('id,title');
}
public function admin()
{
return $this->belongsTo('app\admin\model\Admin','initiator_id')->field('id,nickname');
}
}