first commit

This commit is contained in:
liu
2026-07-13 15:23:29 +08:00
commit 50885a98c8
473 changed files with 33772 additions and 0 deletions
@@ -0,0 +1,38 @@
<?php
namespace Modules\SystemTool\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
/**
* 字典数据模型
*/
class SysDictItemModel extends Model
{
protected $table = 'sys_dict_item';
protected $fillable = [
'dict_id',
'label',
'value',
'color',
'status',
'sort',
];
protected $casts = [
'dict_id' => 'integer',
'status' => 'integer',
'sort' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime'
];
/**
* 字典项关联字典表
*/
public function dict(): BelongsTo
{
return $this->belongsTo(SysDictModel::class, 'dict_id', 'id');
}
}