You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
475 B
24 lines
475 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Performance extends Model
|
|
{
|
|
protected $table = 'performance';
|
|
protected $guarded = [];
|
|
|
|
const status_wait_settle = 1;
|
|
const status_settled = 2;
|
|
public static $statusMap = [
|
|
self::status_wait_settle => '结算中',
|
|
self::status_settled => '已结算',
|
|
];
|
|
|
|
public function agent()
|
|
{
|
|
return $this->belongsTo(Agent::class, 'aid', 'id');
|
|
}
|
|
}
|
|
|