<?php

namespace App\Models\System;

use App\Traits\BelongsToStore;
use Illuminate\Database\Eloquent\Model;

class RegistrationPackage extends Model
{
    use BelongsToStore;

    protected $table = 'registration_packages';

    protected $fillable = [
        'store_id', 'name', 'description', 'role_ids', 'status', 'sort',
    ];

    protected function casts(): array
    {
        return [
            'role_ids' => 'array',
            'status'   => 'integer',
            'sort'     => 'integer',
        ];
    }
}
