mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 20:55:32 +08:00
53 lines
1.8 KiB
PHP
53 lines
1.8 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_mcp_key', comment: 'MCP密钥表')]
|
|
#[Index(columns: ['key'], name: 'key', type: 'UNIQUE')]
|
|
#[Index(columns: ['delete_time'], name: 'delete_time', type: 'NORMAL')]
|
|
class SystemMcpKey extends BaseScheme
|
|
{
|
|
#[Field(type: 'int', length: 11, nullable: false, unsigned: true, autoIncrement: true, primary: true)]
|
|
public $id;
|
|
|
|
#[Field(type: 'char', length: 50, precision: 50, comment: '密钥名称')]
|
|
public $title;
|
|
|
|
#[Field(type: 'char', length: 64, precision: 64, comment: '密钥SHA-256哈希')]
|
|
public $key;
|
|
|
|
#[Field(type: 'char', length: 16, precision: 16, default: '', comment: '密钥前缀(展示用)')]
|
|
public $key_prefix;
|
|
|
|
#[Field(type: 'bigint', length: 11, comment: '绑定创建者ID', unsigned: true)]
|
|
public $bind_admin_id;
|
|
|
|
#[Field(type: 'int', length: 11, default: '1', comment: '状态')]
|
|
#[Component(type: 'radio', options: ['禁用', '启用'])]
|
|
public $status;
|
|
|
|
#[Field(type: 'char', length: 255, precision: 255, default: '')]
|
|
public $remark;
|
|
|
|
#[Field(type: 'bigint', length: 11, default: '0', comment: '调用次数', unsigned: true)]
|
|
public $use_num;
|
|
|
|
#[Field(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $last_use_time;
|
|
|
|
#[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(type: 'int', length: 11, default: '0', unsigned: true)]
|
|
public $delete_time;
|
|
}
|