<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    protected $fillable = [
        'title',
        'category',
        'image',
        'tag',
        'tag_color',
        'price',
        'price_display',
        'description',
        'material',
        'usage',
        'is_best_seller',
        'is_new',
        'icon',
        'details',
        'is_active',
        'sort_order',
    ];

    protected $casts = [
        'details'       => 'array',
        'is_best_seller' => 'boolean',
        'is_new'        => 'boolean',
        'is_active'     => 'boolean',
        'price'         => 'decimal:2',
    ];
}
