123456789101112131415161718 |
- <?php
- namespace app\model;
- use think\Model;
- class BuildingUrge extends Model
- {
- public function building(){
- return $this->hasOne(Building::class, 'id', 'building_id');
- }
- public function user(){
- return $this->hasOne(User::class, 'id', 'urge_uid');
- }
- public function employee(){
- return $this->hasOne(Employee::class, 'id', 'employee_id');
- }
- }
|