| 123456789101112131415161718 |
- <?php
- declare(strict_types=1);
- namespace app\common\model;
- use think\Model;
- class CustomerSpec Extends Model
- {
- const NORMAL = 1;
- const DELETE = 0;
- //customer
- public function customer()
- {
- return $this->hasOne(Customer::class,'id','customer_id');
- }
- }
|