feat: 发布智能体版

This commit is contained in:
augushong
2026-03-26 20:22:34 +08:00
parent 7ee9e102a5
commit 8cc08bcb8c
138 changed files with 7964 additions and 660 deletions

View File

@@ -19,5 +19,14 @@ class Field
public bool $autoIncrement = false,
public bool $primary = false
) {
$type = strtolower(trim($this->type));
if ($this->length !== null && $this->length < 1) {
throw new \InvalidArgumentException("Scheme 字段 length 必须 >= 1当前={$this->length}");
}
if ($type === 'char' && $this->length !== null && $this->length > 255) {
throw new \InvalidArgumentException("Scheme 字段类型 char 的 length 超出范围,允许 1-255当前={$this->length}");
}
}
}