35 lines
828 B
PHP
35 lines
828 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
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;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected $attributes = ['status' => 'draft', 'version' => 1];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['rules' => 'array', 'selection' => 'array', 'contract' => 'array'];
|
|
}
|
|
}
|