docs: 修改migrations文件中的表注释

This commit is contained in:
2025-06-16 15:01:36 +08:00
parent f50d78bd9f
commit 6f073fb80d
4 changed files with 4 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ class CreateOauthClient extends Migrator
*/
public function change()
{
$table = $this->table('oauth_client', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => 'OAuth 客户端表']);
$table = $this->table('oauth_client', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => 'OAuth2 客户端表']);
$table->addColumn('agent_id', 'integer', ['limit' => 10, 'null' => true, 'comment' => '代理ID'])
->addColumn('client_id', 'string', ['limit' => 32, 'comment' => '客户端id'])
->addColumn('client_secret', 'string', ['limit' => 128, 'comment' => '客户端密钥'])

View File

@@ -28,7 +28,7 @@ class CreateOauthAuthCode extends Migrator
*/
public function change()
{
$table = $this->table('oauth_auth_code', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => '授权码表']);
$table = $this->table('oauth_auth_code', ['engine' => 'MyISAM', 'collation' => 'utf8mb4_general_ci', 'comment' => 'OAuth2 授权码表']);
$table->addColumn('code', 'string', ['limit' => 64, 'null' => false, 'default' => '', 'comment' => '授权码'])
->addColumn('client_id', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '客户端ID'])
->addColumn('user_id', 'integer', ['limit' => 11, 'null' => false, 'default' => 0, 'comment' => '用户ID'])