Commit 725a65ce authored by dhc's avatar dhc

允许model列有otherModel属性

parent 820175d5
......@@ -53,7 +53,7 @@
<xs:complexType name="baseField">
<xs:complexContent>
<xs:extension base="field">
<xs:attribute name="primaryKey" type="xs:boolean">
<xs:attribute name="primaryKey" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>是否主键</xs:documentation>
</xs:annotation>
......@@ -127,6 +127,11 @@
<xs:complexType name="foreignKeyField">
<xs:complexContent>
<xs:extension base="baseField">
<xs:attribute name="deleteRelated" type="xs:boolean" default="true">
<xs:annotation>
<xs:documentation>删除时是否检查关联表</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="otherModel" type="xs:string">
<xs:annotation>
<xs:documentation>引用的model名称</xs:documentation>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment