<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;

/**
 * Class Service
 * 
 * @property int $service_no
 * @property string $inv_no
 * @property float $sc_charge
 * @property float $items_cost
 * @property float|null $item_discount
 * @property float $tot_charge
 * @property string|null $sc_note
 * @property Carbon $added_date
 *
 * @package App\Models
 */
class Service extends Model
{
	protected $table = 'services';
	protected $primaryKey = 'service_no';
	public $timestamps = false;

	protected $casts = [
		'sc_charge' => 'float',
		'items_cost' => 'float',
		'item_discount' => 'float',
		'tot_charge' => 'float',
		'added_date' => 'datetime'
	];

	protected $fillable = [
		'inv_no',
		'sc_charge',
		'items_cost',
		'item_discount',
		'tot_charge',
		'sc_note',
		'added_date'
	];
}
