<?php namespace App\Model; use Illuminate\Database\Eloquent\Model; class SupplierApplyModel extends Model { protected $connection='web'; protected $table='supplier_apply'; protected $primaryKey = 'id'; public $timestamps = false; const STATUS_PASS = 2; const STATUS_NEED_AUDIT = 1; const STATUS_REJECT = -1;
public function supplier()
{ return $this->hasOne(SupplierChannelModel::class, 'supplier_id', 'supplier_id'); } }