feat(scheme): 新增数据库表结构同步方案

This commit is contained in:
augushong
2026-01-09 21:08:51 +08:00
parent 1a39354287
commit 8de6b99bb3
24 changed files with 944 additions and 3 deletions

View 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
) {
}
}