12345678910111213141516171819202122232425 |
- <?php
- namespace app\guard\model;
- use think\Model;
- class GuardHistory extends Model{
-
- protected $pk = 'id';
-
-
- public function account(){
- return $this->hasOne('GuardUser','uid','uid');
- }
-
- public function guard(){
- return $this->hasOne('Guard','id','gid');
- }
- }
|