用户发布权限

This commit is contained in:
2025-12-18 13:16:40 +08:00
parent 581ba7ee52
commit d7e780a49f
4 changed files with 72 additions and 4 deletions
+49
View File
@@ -0,0 +1,49 @@
<?php
namespace app\common\model;
use support\Model;
class UserOld extends Model
{
/**
* The connection name for the model.
*
* @var string|null
*/
protected $connection = 'mysql';
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'user_old';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = true;
protected $dateFormat = 'U';
/**
* 允许自动填充模型字段
*/
protected $fillable = ['id', 'name', 'mobile'];
/**
* 不允许自动填充模型字段
*/
protected $guarded = [];
}