First public release. - docs: document the audit log, user offboarding, CSV export and the "require a reason for destructive actions" setting across README, docs/ and CLAUDE/AGENTS.md; note retention for panel_audit - docs: fill the publishing placeholders (repo URL, security contact, issue-template links) and add a semantic-versioning policy - move agent/contributor context into CLAUDE/ (AGENTS.md + a README); root CLAUDE.md is now a thin @-import pointer - add a favicon (shield-lock, matching the login screen) to the login page and the app layout - CHANGELOG: promote [Unreleased] to [1.0.0]; keep the earlier internal build as [0.1.0] Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01UfuvfwexztdS7LDpGuKsuK
36 lines
966 B
PHP
36 lines
966 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* Jedna definicja atrybutu AD w panelu: kolumna listy użytkowników i/lub pole
|
|
* w oknie "Podgląd / Edycja". Kolejność wg `position`. Odczyt i zapis przez
|
|
* App\Services\PanelSettingsService (nie czytaj tej tabeli wprost z kontrolerów).
|
|
*
|
|
* @property int $id
|
|
* @property string $key
|
|
* @property string $label
|
|
* @property string $ldap
|
|
* @property string $category
|
|
* @property string $type
|
|
* @property string|null $regex
|
|
* @property bool $required
|
|
* @property string $help
|
|
* @property bool $is_column
|
|
* @property int $position
|
|
*/
|
|
class PanelAttribute extends Model
|
|
{
|
|
protected $table = 'panel_attributes';
|
|
|
|
protected $fillable = ['key', 'label', 'ldap', 'category', 'type', 'regex', 'required', 'help', 'is_column', 'position'];
|
|
|
|
protected $casts = [
|
|
'required' => 'boolean',
|
|
'is_column' => 'boolean',
|
|
'position' => 'integer',
|
|
];
|
|
}
|