ApplyRecord.php 466 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace plugin\admin\app\model;
  3. use plugin\admin\app\model\Base;
  4. class ApplyRecord extends Base
  5. {
  6. /**
  7. * The table associated with the model.
  8. *
  9. * @var string
  10. */
  11. protected $table = 'wa_apply_record';
  12. /**
  13. * The primary key associated with the table.
  14. *
  15. * @var string
  16. */
  17. protected $primaryKey = 'id';
  18. public function userData()
  19. {
  20. return $this->hasOne(User::class,'id','uid');
  21. }
  22. }