<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\UserVip
 *
 * @property int $id
 * @property int $order_id 订单ID
 * @property int $user_id 用户
 * @property string $prepay_id 微信支付预付单ID
 * @property string|null $serial_number 支付流水
 * @property string $order_fee 金额
 * @property int $status 状态
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Models\User $user
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip query()
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereOrderFee($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereOrderId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip wherePrepayId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereSerialNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip whereUserId($value)
 * @mixin \Eloquent
 * @property string|null $pay_at
 * @method static \Illuminate\Database\Eloquent\Builder|UserVip wherePayAt($value)
 */
class UserVip extends Model
{
	use HasDateTimeFormatter;


	protected $fillable = [
	    'order_id',
        'user_id',
        'order_fee',
        'prepay_id',
        'serial_number',
        'status',
    ];

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

}
