car4s/application/common/model/user4s/Inslog.php
2022-06-04 17:38:43 +08:00

51 lines
740 B
PHP

<?php
namespace app\common\model\user4s;
use think\Model;
class Inslog extends Model
{
// 表名
protected $name = 'user4s_inslog';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'int';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function admin()
{
return $this->belongsTo('app\common\model\Admin', 'admin_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function user()
{
return $this->belongsTo('User', 'user4s_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}