mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-06 18:12:50 +08:00
feat(scheme): 新增数据库表结构同步方案
This commit is contained in:
19
extend/base/common/scheme/attribute/Table.php
Normal file
19
extend/base/common/scheme/attribute/Table.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace base\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_CLASS)]
|
||||
class Table
|
||||
{
|
||||
public function __construct(
|
||||
public string $name = '',
|
||||
public string $comment = '',
|
||||
public string $engine = 'InnoDB',
|
||||
public string $charset = 'utf8mb4',
|
||||
public string $collation = 'utf8mb4_general_ci',
|
||||
public ?string $connection = null
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user