<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\UserUpdateEmail
 *
 * @property-read \App\User $user
 * @mixin \Eloquent
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail query()
 * @property int $user_id
 * @property string $email
 * @property string $token
 * @property \Illuminate\Support\Carbon $created_at
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail whereToken($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\UserUpdateEmail whereUserId($value)
 */
class UserUpdateEmail extends Model
{
    protected $table = 'user_update_emails';

    protected $fillable = [
        'user_id', 'email', 'token',
    ];

    public function user()
    {
        return $this->belongsTo('App\User', 'user_id');
    }
}
