<?php

namespace App\Models\Goodnight;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\Goodnight\ActivityModel
 *
 * @property int $id
 * @property int $opened_at 报名开启时间
 * @property int $closed_at 报名关闭时间
 * @property int $showed_at 显示时间
 * @property int $end_at 活动结束时间
 * @property int $created_at
 * @property int $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereClosedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereEndAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereOpenedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereShowedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\Goodnight\ActivityModel whereUpdatedAt($value)
 * @mixin \Eloquent
 */
class ActivityModel extends Model
{
    //
    protected $table = 'kdgx_goodnight_activitys';

    protected $fillable = ['opened_at', 'closed_at', 'showed_at', 'end_at'];

    protected $dateFormat = 'U';

    protected $casts = [
        'created_at' => 'timestamp',
        'updated_at' => 'timestamp',
        'showed_at' => 'timestamp',
        'opened_at' => 'timestamp',
        'closed_at' => 'timestamp',
    ];
}
