This commit is contained in:
杨志
2026-01-21 09:07:10 +08:00
parent e5396f5f83
commit 35f9f6f31f
5 changed files with 292 additions and 1 deletions

25
app/model/UserConfig.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
/**
* 用户配置模型
*/
class UserConfig extends Model
{
// 设置数据库连接
protected $connection = 'sqlite';
// 设置表名
protected $name = 'user_configs';
// 自动写入时间戳
protected $autoWriteTimestamp = true;
// 定义时间戳字段名
protected $createTime = 'created_at';
protected $updateTime = 'updated_at';
}