<?php

namespace App\Models\StockManagement;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Sushi\Sushi;

class AdjustmentOperation extends Model{
    use HasFactory,Sushi;

    const FK_ID = "operation_code";

    protected $keyType = 'string';
    public $incrementing =  false;

    const INPUT = "INPUT";
    const OUTPUT = "OUTPUT";

    protected $rows = [
        ["id" => self::OUTPUT,  "name" => "OutPut" ,"action" => "decrement","operator" => "-" ],
        ["id" => self::INPUT,"name" => "Input" ,"action" => "increment" , "operator" => "+" ]
    ];


    //GETTERS
    public function getNameAttribute($value){
        return __($value);
    }

}
