35 lines
872 B
PHP
35 lines
872 B
PHP
<?php
|
||
// +------------------------------------------------+
|
||
// |http://www.cjango.com |
|
||
// +------------------------------------------------+
|
||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||
// +------------------------------------------------+
|
||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||
// +------------------------------------------------+
|
||
namespace app\common\model;
|
||
|
||
class Account extends _Init
|
||
{
|
||
|
||
protected function user()
|
||
{
|
||
return $this->hasOne('Member', 'id', 'uid');
|
||
}
|
||
|
||
protected function userinfo()
|
||
{
|
||
return $this->belongsTo('MemberInfo', 'uid', 'uid');
|
||
}
|
||
|
||
public function users()
|
||
{
|
||
return $this->belongsTo('Member', 'uid', 'id');
|
||
}
|
||
|
||
public function logs()
|
||
{
|
||
return $this->hasMany('AccountLogs', 'uid', 'uid');
|
||
}
|
||
|
||
}
|