[fix]Config创建默认配置文件的开关Runtime.CreateConfigOnMissing,仅需对自动创建生效,而不应该阻止用户主动Save
智能大石头 authored at 2024-08-09 00:30:41 石头 committed at 2024-08-10 14:22:24
5.19 KiB
X
<?xml version="1.0" encoding="utf-8"?>
<Tables>
  <Table ID="1" Name="Template" Alias="Template" DbType="SqlServer" IsView="False" Description="模版">
    <Columns>
      <Column ID="1" Name="ID" DataType="Int32" RawType="int" Identity="True" PrimaryKey="True" Length="10" NumOfByte="4" Precision="10" Description="编号" />
      <Column ID="2" Name="Name" DataType="String" RawType="nvarchar(50)" Length="50" NumOfByte="100" Nullable="True" IsUnicode="True" Description="名称" />
      <Column ID="3" Name="ParentID" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Nullable="True" Description="父编号" />
      <Column ID="4" Name="UserID" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Nullable="True" Description="用户编号" />
      <Column ID="5" Name="UserName" DataType="String" RawType="nvarchar(50)" Length="50" NumOfByte="100" Nullable="True" IsUnicode="True" Description="用户" />
      <Column ID="6" Name="CreateTime" DataType="DateTime" RawType="datetime" Length="3" NumOfByte="8" Precision="3" Nullable="True" Description="创建时间" />
      <Column ID="7" Name="LastModify" DataType="DateTime" RawType="datetime" Length="3" NumOfByte="8" Precision="3" Nullable="True" Description="最后修改" />
      <Column ID="8" Name="Remark" DataType="String" RawType="nvarchar(500)" Length="500" NumOfByte="1000" Nullable="True" IsUnicode="True" Description="备注" />
    </Columns>
    <Indexes>
      <Index Name="IX_Template" Unique="True" Columns="ParentID,Name" />
      <Index Name="IX_Template_1" Columns="UserID" />
      <Index Name="PK__Template__3214EC27145C0A3F" Unique="True" PrimaryKey="True" Columns="ID" />
    </Indexes>
    <Relations>
      <Relation Column="ID" RelationTable="TemplateItem" RelationColumn="TemplateID" Unique="True" />
    </Relations>
  </Table>
  <Table ID="2" Name="TemplateContent" Alias="TemplateContent" DbType="SqlServer" IsView="False" Description="模版内容">
    <Columns>
      <Column ID="1" Name="ID" DataType="Int32" RawType="int" Identity="True" PrimaryKey="True" Length="10" NumOfByte="4" Precision="10" Description="编号" />
      <Column ID="2" Name="TemplateItemID" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Nullable="True" Description="模版项" />
      <Column ID="3" Name="Content" DataType="String" RawType="ntext" Length="1073741823" NumOfByte="16" Nullable="True" IsUnicode="True" Description="模版内容" />
      <Column ID="4" Name="ContentBackup" DataType="String" RawType="ntext" Length="1073741823" NumOfByte="16" Nullable="True" IsUnicode="True" Description="内容备份" />
      <Column ID="5" Name="Version" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Description="版本" />
      <Column ID="6" Name="UserID" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Nullable="True" Description="作者编号" />
      <Column ID="7" Name="UserName" DataType="String" RawType="nvarchar(50)" Length="50" NumOfByte="100" Nullable="True" IsUnicode="True" Description="作者" />
      <Column ID="8" Name="CreateTime" DataType="DateTime" RawType="datetime" Length="3" NumOfByte="8" Precision="3" Nullable="True" Description="创建时间" />
    </Columns>
    <Indexes>
      <Index Name="IX_TemplateContent" Unique="True" Columns="TemplateItemID,Version" />
      <Index Name="IX_TemplateContent_1" Columns="UserID" />
      <Index Name="IX_TemplateContent_TemplateItemID" Columns="TemplateItemID" />
      <Index Name="PK__Template__3214EC27182C9B23" Unique="True" PrimaryKey="True" Columns="ID" />
    </Indexes>
    <Relations>
      <Relation Column="TemplateItemID" RelationTable="TemplateItem" RelationColumn="ID" />
    </Relations>
  </Table>
  <Table ID="3" Name="TemplateItem" Alias="TemplateItem" DbType="SqlServer" IsView="False" Description="模版项">
    <Columns>
      <Column ID="1" Name="ID" DataType="Int32" RawType="int" Identity="True" PrimaryKey="True" Length="10" NumOfByte="4" Precision="10" Description="编号" />
      <Column ID="2" Name="TemplateID" DataType="Int32" RawType="int" Length="10" NumOfByte="4" Precision="10" Nullable="True" Description="模版" />
      <Column ID="3" Name="Name" DataType="String" RawType="nvarchar(50)" Length="50" NumOfByte="100" Nullable="True" IsUnicode="True" Description="名称" />
      <Column ID="4" Name="Kind" DataType="String" RawType="nvarchar(50)" Length="50" NumOfByte="100" Nullable="True" IsUnicode="True" Description="模版种类" />
      <Column ID="5" Name="Remark" DataType="String" RawType="nvarchar(500)" Length="500" NumOfByte="1000" Nullable="True" IsUnicode="True" Description="备注" />
    </Columns>
    <Indexes>
      <Index Name="IX_TemplateItem" Unique="True" Columns="TemplateID,Name" />
      <Index Name="IX_TemplateItem_TemplateID" Columns="TemplateID" />
      <Index Name="PK__Template__3214EC271BFD2C07" Unique="True" PrimaryKey="True" Columns="ID" />
    </Indexes>
    <Relations>
      <Relation Column="ID" RelationTable="TemplateContent" RelationColumn="TemplateItemID" Unique="True" />
      <Relation Column="TemplateID" RelationTable="Template" RelationColumn="ID" />
    </Relations>
  </Table>
</Tables>