mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
22 lines
655 B
PHP
22 lines
655 B
PHP
<?php
|
|
|
|
use think\migration\Migrator;
|
|
|
|
class SystemMcpKeyNode extends Migrator
|
|
{
|
|
/**
|
|
* MCP密钥与节点关系表.
|
|
*
|
|
* 纯关系表:无任何时间戳字段。
|
|
*/
|
|
public function change()
|
|
{
|
|
$table = $this->table('system_mcp_key_node')
|
|
->setComment('MCP密钥与节点关系表')
|
|
->addColumn('key_id', 'biginteger', ['limit' => 11, 'null' => true, 'signed' => false, 'comment' => '密钥ID'])
|
|
->addColumn('node', 'char', ['limit' => 100, 'null' => true, 'default' => '', 'comment' => ''])
|
|
->addIndex(['key_id'], ['name' => 'key_id'])
|
|
->create();
|
|
}
|
|
}
|