building-sign/app/model/OvertimeLog.php

24 lines
421 B
PHP
Raw Normal View History

2023-01-09 08:41:41 +00:00
<?php
namespace app\model;
use think\model\relation\HasOne;
/**
* 加班日志
*
* Class OvertimeLog
* @package app\model
*/
class OvertimeLog extends Base
{
public const STATUS_NORMAL = 0;//待审核
public const STATUS_YES = 1;//通过
public const STATUS_NO = -1;//拒绝
public function account(): HasOne
{
return $this->hasOne(Account::class, 'id', 'account_id');
}
}