Files
ulthon_admin/app/admin/scheme/SystemData.php
2026-01-09 21:38:25 +08:00

41 lines
1.5 KiB
PHP

<?php
namespace app\admin\scheme;
use app\common\scheme\BaseScheme;
use app\common\scheme\attribute\Table;
use app\common\scheme\attribute\Field;
use app\common\scheme\attribute\Component;
use app\common\scheme\attribute\Index;
#[Table(name: 'ul_system_data', comment: '')]
#[Index(columns: ['key'], name: 'ul_system_data_key_IDX', type: 'NORMAL')]
#[Index(columns: ['admin_id'], name: 'ul_system_data_admin_id_IDX', type: 'NORMAL')]
class SystemData extends BaseScheme
{
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
public $id;
#[Field(type: 'int', length: 11, default: '0', comment: '创建时间', unsigned: true)]
public $create_time;
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
public $update_time;
#[Field(length: 100, precision: 100, nullable: false)]
public $key;
#[Field(type: 'bigint', length: 11, nullable: false, comment: '用户', unsigned: true)]
public $admin_id;
#[Field(length: 100, precision: 100, default: 'system', comment: '类型')]
#[Component(type: 'select', options: ['system' => '系统产生的数据', 'temp' => '临时数据', 'user' => '用户存储的数据'])]
public $type;
#[Field(type: 'text', comment: '值')]
#[Component(type: 'textarea', options: [])]
public $value;
#[Field(type: 'bigint', length: 11, nullable: false, default: '0', comment: '过期时间', unsigned: true)]
public $expire_time;
}