<?php

namespace App\Models\Lookups;

use App\Models\Concerns\BelongsToTenant;
use Illuminate\Database\Eloquent\Model;

class StockTransferReason extends Model
{
    use BelongsToTenant;

    public const INTERNAL = 'INTERNAL';

    public const REPLENISH = 'REPLENISH';

    public const RELOCATION = 'RELOCATION';

    public const OTHER = 'OTHER';

    protected $fillable = ['code', 'name', 'sort_order', 'is_active'];

    protected function casts(): array
    {
        return [
            'is_active' => 'boolean',
            'sort_order' => 'integer',
        ];
    }
}
