Files
compras/app/Models/PeopleProcess.php
2026-11-02 08:08:05 +02:00

37 lines
892 B
PHP

<?php
namespace App\Models;
use App\Models\Concerns\BelongsToTenant;
use App\Models\Concerns\HasWorkContext;
use Illuminate\Database\Eloquent\Model;
/**
* @property int $id
* @property int $tenant_id
* @property int $created_by
* @property string $kind
* @property string $status
* @property int $version
* @property string $closes_on
* @property string $creation_hash
* @property int|null $selected_application_id
* @property array<string,mixed> $rules
* @property array<string,mixed>|null $selection
* @property array<string,mixed>|null $contract
*/
class PeopleProcess extends Model
{
use BelongsToTenant;
use HasWorkContext;
protected $guarded = ['id'];
protected $attributes = ['status' => 'draft', 'version' => 1];
protected function casts(): array
{
return ['rules' => 'array', 'selection' => 'array', 'contract' => 'array'];
}
}