mirror of
https://gitee.com/technical-laohu/mpay_v2_webman.git
synced 2026-04-22 18:14:27 +08:00
重构初始化
This commit is contained in:
32
app/model/system/SystemConfig.php
Normal file
32
app/model/system/SystemConfig.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace app\model\system;
|
||||
|
||||
use app\common\base\BaseModel;
|
||||
|
||||
/**
|
||||
* 系统配置模型。
|
||||
* 适合全局开关、默认策略和运行时参数。
|
||||
*/
|
||||
class SystemConfig extends BaseModel
|
||||
{
|
||||
protected $table = 'ma_system_config';
|
||||
|
||||
protected $primaryKey = 'config_key';
|
||||
|
||||
public $incrementing = false;
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
protected $fillable = [
|
||||
'config_key',
|
||||
'group_code',
|
||||
'config_value',
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user