jingcai-php/app/Model/Customer/CustomerFollow.php

27 lines
549 B
PHP
Executable File

<?php
namespace App\Model\Customer;
use App\Enums\BillType;
use App\Enums\BoolEnum;
use App\Enums\PayState;
use App\Exceptions\JingCaiException;
use App\Model\BaseModel;
use App\Model\Order;
use App\Model\Trade;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
class CustomerFollow extends BaseModel
{
public function follower()
{
return $this->hasOne(Customer::class, 'id', 'follower_id');
}
public function customer() {
return $this->hasOne(Customer::class, 'id', 'customer_id');
}
}