MemberAccountList.php 760 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\model;
  3. use support\Model;
  4. class MemberAccountList extends Model
  5. {
  6. protected $table = 'member_account_list';
  7. protected $primaryKey = 'member_account_list_id';
  8. protected $dateFormat = 'U';
  9. const CREATED_AT = 'member_account_list_addtimes';
  10. const UPDATED_AT = null;
  11. public function member()
  12. {
  13. return $this->hasOne(Member::class, 'member_id', 'join_member_account_list_member_id');
  14. }
  15. public function memberInfo()
  16. {
  17. return $this->hasOne(MemberInfo::class, 'join_info_member_id', 'join_member_account_list_member_id');
  18. }
  19. public function memberCert()
  20. {
  21. return $this->hasOne(MemberCert::class,'join_cert_member_id','join_member_account_list_member_id');
  22. }
  23. }