1234567891011121314151617181920212223 |
- <?php
- namespace app\admin\model\cms;
- use think\Model;
- class Conference extends Model
- {
- // 表名
- protected $name = 'cms_conference';
- // 自动写入时间戳字段
- protected $autoWriteTimestamp = 'int';
- // 定义时间戳字段名
- protected $createTime = 'createtime';
- protected $updateTime = 'updatetime';
- public function user()
- {
- return $this->belongsTo("\app\common\model\User", 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
- }
- }
|