app: update models

This commit is contained in:
Matthew Penner 2021-07-17 15:18:05 -06:00
parent 28bc86e23b
commit 9d64c6751b
25 changed files with 55 additions and 54 deletions

View file

@ -20,23 +20,18 @@ class ServerVariable extends Model
*/
public const RESOURCE_NAME = 'server_variable';
/** @var bool */
protected $immutableDates = true;
/** @var string */
protected $table = 'server_variables';
/** @var string[] */
protected bool $immutableDates = true;
protected $guarded = ['id', 'created_at', 'updated_at'];
/** @var string[] */
protected $casts = [
'server_id' => 'integer',
'variable_id' => 'integer',
];
/** @var string[] */
public static $validationRules = [
public static array $validationRules = [
'server_id' => 'required|int',
'variable_id' => 'required|int',
'variable_value' => 'string',