<?php

/**
 * 文件功能：滚动广告/公告模型
 *
 * 对应原 ASP 文件：scrollad 表
 *
 * @author   ChatRoom Laravel
 *
 * @version  1.0.0
 */

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ScrollAd extends Model
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'ad_title',
        'ad_link',
        'ad_new_flag',
    ];

    /**
     * Get the attributes that should be cast.
     *
     * @return array<string, string>
     */
    protected function casts(): array
    {
        return [
            'ad_new_flag' => 'boolean',
        ];
    }
}
