<?php

namespace App\Models\Lookups;

use Illuminate\Database\Eloquent\Model;

/**
 * Status lookup for the return-GRN lifecycle.
 *
 * Deliberately NOT BelongsToTenant (same rule as GrnStatus): ReturnGrn's
 * isDraft()/isConfirmed()/isDeleted() compare return_grn_status_id directly
 * against the int constants below, so these 3 rows have to be the same
 * global ids for every tenant, not per-tenant-editable data seeded by
 * LookupSeeder.
 */
class ReturnGrnStatus extends Model
{
    /** Status IDs — match the seeded return_grn_statuses rows exactly. */
    public const DRAFT = 1;

    public const CONFIRMED = 2;

    public const DELETED = 3;

    public $timestamps = false;

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