12345678910111213141516171819202122232425262728293031323334 |
- <?php
- namespace app\model;
- use support\Model;
- class MemberAccountList extends Model
- {
- protected $table = 'member_account_list';
- protected $primaryKey = 'member_account_list_id';
- protected $dateFormat = 'U';
- const CREATED_AT = 'member_account_list_addtimes';
- const UPDATED_AT = null;
- public function member()
- {
- return $this->hasOne(Member::class, 'member_id', 'join_member_account_list_member_id');
- }
- public function memberInfo()
- {
- return $this->hasOne(MemberInfo::class, 'join_info_member_id', 'join_member_account_list_member_id');
- }
- public function memberCert()
- {
- return $this->hasOne(MemberCert::class,'join_cert_member_id','join_member_account_list_member_id');
- }
- }
|