server/app/Model/User.php

37 lines
800 B
PHP

<?php
declare(strict_types=1);
namespace App\Model;
/**
* @property int $user_id
* @property int $invite_id
* @property string $nickname
* @property string $platform
* @property string $openid
* @property string $avatar
* @property int $sex
* @property string $birthday
* @property string $create_time
* @property string $update_time
* @property string $deleted_at
*/
class User extends Model
{
/**
* The table associated with the model.
*/
protected ?string $table = 'user';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = [];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['user_id' => 'integer', 'invite_id' => 'integer', 'sex' => 'integer'];
}