<?php

namespace App\Models;

use App\Enums\AdsPositionEnum;
use App\Enums\AdsStatusEnum;
use App\Enums\AdsTypeEnum;
use Illuminate\Database\Eloquent\Model;

class Advertisement extends Model
{
    protected $fillable = [
        'title',
        'position',
        'code',
        'image',
        'type',
        'link',
        'status',
        'height',
        'width',
    ];

    protected $casts = [
        'position' => AdsPositionEnum::class,
        'type' => AdsTypeEnum::class,
        'status' => AdsStatusEnum::class,
    ];
}
