<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Volta extends Model
{
    use HasFactory;

    protected $casts = [
        'id' => 'integer',
        'create_by' => 'string',
        'received' => 'decimal:2',
        'collected' => 'decimal:2',
        'turn_id' => 'integer',
        'note' => 'string',
        'income' => 'boolean',
    ];


     public function turn()
    {
        return $this->belongsTo(Turn::class);
    }
}
