BuildingUrge.php 390 B

123456789101112131415161718
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class BuildingUrge extends Model
  5. {
  6. public function building(){
  7. return $this->hasOne(Building::class, 'id', 'building_id');
  8. }
  9. public function user(){
  10. return $this->hasOne(User::class, 'id', 'urge_uid');
  11. }
  12. public function employee(){
  13. return $this->hasOne(Employee::class, 'id', 'employee_id');
  14. }
  15. }