2025-09-04 10:26:28 +08:00
|
|
|
<?php
|
|
|
|
|
|
2025-09-08 11:34:19 +08:00
|
|
|
namespace app\common\utils\approval\model;
|
2025-09-04 10:26:28 +08:00
|
|
|
|
|
|
|
|
use support\Model;
|
|
|
|
|
|
|
|
|
|
class ApprovalFlows extends Model
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The connection name for the model.
|
|
|
|
|
*
|
|
|
|
|
* @var string|null
|
|
|
|
|
*/
|
|
|
|
|
protected $connection = 'mysql';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The table associated with the model.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $table = 'approval_flows';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The primary key associated with the table.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $primaryKey = 'id';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Indicates if the model should be timestamped.
|
|
|
|
|
*
|
|
|
|
|
* @var bool
|
|
|
|
|
*/
|
|
|
|
|
public $timestamps = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected $dateFormat = 'U';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 允许自动填充模型字段
|
|
|
|
|
*/
|
|
|
|
|
protected $fillable = ['id', 'name', 'type', 'steps', 'is_active', 'timeout_hours', 'timeout_action', 'created_at', 'updated_at'];
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 不允许自动填充模型字段
|
|
|
|
|
*/
|
|
|
|
|
protected $guarded = [];
|
|
|
|
|
}
|