Files
usedcar/app/console/model/UsersModel.php
T
2025-05-14 13:19:23 +08:00

56 lines
1.0 KiB
PHP

<?php
namespace app\console\model;
use support\Model;
/**
* UsersModel
*/
class UsersModel extends Model
{
/**
* The connection name for the model.
*
* @var string|null
*/
protected $connection = 'mysql';
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'hs_users';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = true;
/**
* 模型的数据字段的保存格式。
*
* @var string
*/
protected $dateFormat = 'U';
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'user_sn', 'nickname', 'avatar', 'realname', 'phone', 'company', 'openid', 'language', 'status', 'created_at', 'updated_at'];
/**
* 不允许自动填充模型字段
*/
protected $guarded = [];
}