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.
24 lines
530 B
24 lines
530 B
<?php
|
|
|
|
namespace app\admin\model\miniprogram;
|
|
use think\Model;
|
|
use addons\miniprogram\library\WechatService;
|
|
|
|
class User extends Model
|
|
{
|
|
// 表名
|
|
protected $name = 'miniprogram_user';
|
|
|
|
// 自动写入时间戳字段
|
|
protected $autoWriteTimestamp = 'int';
|
|
|
|
// 定义时间戳字段名
|
|
protected $createTime = 'createtime';
|
|
protected $updateTime = false;
|
|
protected $deleteTime = false;
|
|
|
|
public function fauser()
|
|
{
|
|
return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
|
}
|
|
}
|
|
|