diff --git a/src/model/concern/Attribute.php b/src/model/concern/Attribute.php index 2295a244..697fd343 100644 --- a/src/model/concern/Attribute.php +++ b/src/model/concern/Attribute.php @@ -172,6 +172,19 @@ public function getPk() return $this->pk; } + /** + * 设置模型的字段信息. + * + * @param array $schema + * @return $this + */ + public function schema(array $schema) + { + $this->schema = $schema; + return $this; + } + + public function isJsonAssoc(): bool { return $this->jsonAssoc;