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:
23
extend/base/common/scheme/attribute/Field.php
Normal file
23
extend/base/common/scheme/attribute/Field.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace base\common\scheme\attribute;
|
||||
|
||||
use Attribute;
|
||||
|
||||
#[Attribute(Attribute::TARGET_PROPERTY)]
|
||||
class Field
|
||||
{
|
||||
public function __construct(
|
||||
public string $type = 'varchar',
|
||||
public ?int $length = null,
|
||||
public int $precision = 0,
|
||||
public int $scale = 0,
|
||||
public bool $nullable = true,
|
||||
public mixed $default = null,
|
||||
public string $comment = '',
|
||||
public bool $unsigned = false,
|
||||
public bool $autoIncrement = false,
|
||||
public bool $primary = false
|
||||
) {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user