clqms-be/app/Models/Organization/HostAppModel.php
root 30c4e47304 chore(repo): normalize EOL and harden contact patch flow
- handle contact PATCH failures by checking model save result and returning HTTP 400 with the model error message
- update ContactDetailModel nested updates to enforce active-detail checks and use model update() with explicit failure propagation
- extend contact patch assertions and align test-create variants expectations to status=success for POST responses
- refresh composer lock metadata/dependency constraints and include generated docs/data/test files updated during normalization
- impact: API contract unchanged except clearer 400 error responses on invalid contact detail updates
2026-04-17 05:38:11 +07:00

18 lines
465 B
PHP
Executable File

<?php
namespace App\Models\Organization;
use App\Models\BaseModel;
class HostAppModel extends BaseModel {
protected $table = 'hostapp';
protected $primaryKey = 'HostAppID';
protected $allowedFields = ['HostAppName', 'SiteID', 'CreateDate', 'EndDate'];
protected $useTimestamps = true;
protected $createdField = 'CreateDate';
protected $updatedField = '';
protected $useSoftDeletes = true;
protected $deletedField = 'EndDate';
}