<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\UserWithdraw
 *
 * @property int $id
 * @property int $user_id 用户
 * @property int $name 姓名
 * @property int $type 类型 1-微信
 * @property string $account 提现账号
 * @property string $price 提现金额
 * @property string $desc 提现备注
 * @property int $status 提现状态
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw query()
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereAccount($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereDesc($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw wherePrice($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereUserId($value)
 * @mixin \Eloquent
 * @property string|null $check_at
 * @method static \Illuminate\Database\Eloquent\Builder|UserWithdraw whereCheckAt($value)
 */
class UserWithdraw extends Model
{
	use HasDateTimeFormatter;
    protected $table = 'user_withdraws';

    protected $fillable = [
        'name',
        'user_id',
        'account',
        'price',
        'status',
        'desc',
        'check_at'
    ];

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

}
