Files
fast_response/superadmin/application/admin/model/Firmduty.php
2025-04-18 14:22:17 +08:00

51 lines
715 B
PHP
Executable File

<?php
namespace app\admin\model;
use think\Model;
class Firmduty extends Model
{
// 表名
protected $name = 'firmduty';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function firm()
{
return $this->belongsTo('Firm', 'firm_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function firmstore()
{
return $this->belongsTo('Firmstore', 'firmstore_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}