<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class UserGiftStreak extends Model
{
    protected $table = 'user_gift_streak';

    protected $fillable = ['user_id', 'last_spin_at'];

    protected $casts = [
        'last_spin_at' => 'date',
    ];

    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }
}
