<?php

namespace App\Models;

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

class Style extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'prompt',
        'description',
        'preview_image',
        'parameters',
        'ai_model_id',
        'enabled',
    ];

    protected $casts = [
        'enabled' => 'boolean',
        'parameters' => 'array',
    ];

    public function aiModel()
    {
        return $this->belongsTo(AiModel::class);
    }
}