<?xml version="1.0" encoding="utf-8"?>
<Tables xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:schemaLocation="http://www.newlifex.com http://www.newlifex.com/Model2020.xsd" NameSpace="Stardust.Data.Configs" ConnName="ConfigCenter" BaseClass="Entity" Output="" xmlns="http://www.newlifex.com/Model2020.xsd">
<Table Name="AppConfig" Description="应用é…置。需è¦ç®¡ç†é…置的应用系统列表,æ¯ä¸ªåº”用以命令对形å¼ç®¡ç†é…置数æ®ï¼Œæ”¯æŒç‰ˆæœ¬å‘布">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Category" DataType="String" Description="类别" />
<Column Name="Name" DataType="String" Master="True" Description="å称" />
<Column Name="DisplayName" DataType="String" Description="显示å" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="Version" DataType="Int32" Description="版本。应用æ£åœ¨ä½¿ç”¨çš„版本å·ï¼Œè¿”回å°äºŽç‰äºŽè¯¥ç‰ˆæœ¬çš„é…ç½®" />
<Column Name="NextVersion" DataType="Int32" Description="下一版本。下一个将è¦å‘布的版本,å‘布åŽä¸¤è€…相åŒ" />
<Column Name="PublishTime" DataType="DateTime" Description="定时å‘布。在指定时间自动å‘布新版本" />
<Column Name="CanBeQuoted" DataType="Boolean" Description="å¯è¢«ä¾èµ–。打开åŽï¼Œæ‰èƒ½è¢«å…¶å®ƒåº”用ä¾èµ–" />
<Column Name="Quotes" DataType="String" Description="ä¾èµ–应用。所ä¾èµ–应用的集åˆ" />
<Column Name="IsGlobal" DataType="Boolean" Description="全局。该应用下的é…置数æ®ä½œä¸ºå…¨å±€æ•°æ®ï¼Œè¯·æ±‚ä»»æ„应用é…置都返回" />
<Column Name="Readonly" DataType="Boolean" Description="åªè¯»ã€‚åªè¯»åº”用,ä¸æ”¯æŒå®¢æˆ·ç«¯ä¸Šä¼ é…置数æ®ï¼Œå¯ç”¨äºŽä¿æŠ¤æ•°æ®é¿å…被错误修改" />
<Column Name="EnableApollo" DataType="Boolean" Description="阿波罗" />
<Column Name="ApolloMetaServer" DataType="String" Description="阿波罗地å€" />
<Column Name="ApolloAppId" DataType="String" Description="阿波罗账å·" />
<Column Name="ApolloNameSpace" DataType="String" Description="阿波罗命å空间。默认application,也å¯ä»¥å¡«ä¾èµ–的公共命å空间,但建议为公共命å空间建立应用ä¾èµ–。" />
<Column Name="UsedKeys" DataType="String" Length="2000" Description="已使用。用过的é…置项" />
<Column Name="MissedKeys" DataType="String" Length="2000" Description="缺失键。没有读å–到的é…置项" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateUserID" DataType="Int32" Description="更新者" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
<Column Name="UpdateIP" DataType="String" Description="更新地å€" />
<Column Name="Remark" DataType="String" Length="500" Description="备注" />
</Columns>
<Indexes>
<Index Columns="Name" Unique="True" />
</Indexes>
</Table>
<Table Name="AppRule" Description="åº”ç”¨è§„åˆ™ã€‚é’ˆå¯¹åº”ç”¨è®¾ç½®çš„è§„åˆ™ï¼Œæ¯”å¦‚æ ¹æ®IP段设置作用域,å¯ç”¨äºŽåˆ’分生产环境和开å‘测试环境">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Rule" DataType="String" Length="500" Description="规则。比如IP=10.0.0.*" />
<Column Name="Result" DataType="String" Description="结果。比如Scope=dev" />
<Column Name="Priority" DataType="Int32" Description="优先级。数å—越大优先级越高" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateUserID" DataType="Int32" Description="更新者" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
<Column Name="UpdateIP" DataType="String" Description="更新地å€" />
<Column Name="Remark" DataType="String" Length="500" Description="备注" />
</Columns>
</Table>
<Table Name="AppQuote" Description="应用ä¾èµ–。应用å¯ä»¥å¼•ç”¨ä¾èµ–å¦ä¸€ä¸ªåº”用">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用。原始应用,该应用ä¾èµ–别人" />
<Column Name="TargetAppId" DataType="Int32" Description="ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
</Columns>
<Indexes>
<Index Columns="AppId" />
<Index Columns="TargetAppId" />
</Indexes>
</Table>
<Table Name="ConfigData" Description="é…置数æ®ã€‚é…ç½®å值对,å‘布åŽæ‰èƒ½ç”Ÿæ•ˆï¼Œæ”¯æŒå¤šä½œç”¨åŸŸåˆ’分生产和开å‘测试环境">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="Key" DataType="String" Master="True" Nullable="False" Description="å称。下划线开头表示仅用于内嵌,ä¸èƒ½è¿”回给客户端;多级å称用冒å·åˆ†éš”" />
<Column Name="Scope" DataType="String" Description="作用域" />
<Column Name="Value" DataType="String" Length="2000" Description="数值。æ£åœ¨ä½¿ç”¨çš„值,支æŒå†…嵌 ${key@app:scope}" />
<Column Name="Version" DataType="Int32" Description="版本。当å‰ç‰ˆæœ¬å·ï¼Œæ¯æ¬¡ä¿®æ”¹éƒ½æ˜¯åº”ç”¨ç‰ˆæœ¬åŠ ä¸€" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="NewValue" DataType="String" Length="2000" Description="期望值。已被修改,尚未å‘布的值,支æŒå†…嵌 ${key@app:scope}" />
<Column Name="NewVersion" DataType="Int32" Description="新版本。下一个将è¦å‘布的版本,å‘布åŽä¸¤è€…相åŒ" />
<Column Name="NewStatus" DataType="String" Description="新状æ€ã€‚å¯ç”¨/ç¦ç”¨/åˆ é™¤" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateUserID" DataType="Int32" Description="更新者" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
<Column Name="UpdateIP" DataType="String" Description="更新地å€" />
<Column Name="Remark" DataType="String" Length="500" Description="备注" />
</Columns>
<Indexes>
<Index Columns="AppId,Key,Scope" Unique="True" />
</Indexes>
</Table>
<Table Name="ConfigHistory" Description="é…置历å²ã€‚记录é…ç½®å˜æ›´åŽ†å²">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="Action" DataType="String" Nullable="False" Description="æ“作" />
<Column Name="Success" DataType="Boolean" Description="æˆåŠŸ" />
<Column Name="Remark" DataType="String" Length="2000" Description="内容" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
</Columns>
<Indexes>
<Index Columns="CreateTime" />
</Indexes>
</Table>
<Table Name="ConfigOnline" Description="é…置在线。一个应用有多个部署,æ¯ä¸ªåœ¨çº¿ä¼šè¯å¯¹åº”一个æœåŠ¡åœ°å€">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Category" DataType="String" Description="类别" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="Name" DataType="String" Master="True" Description="å称。机器å称" />
<Column Name="Client" DataType="String" Description="客户端。IPåŠ è¿›ç¨‹" />
<Column Name="Scope" DataType="String" Description="作用域" />
<Column Name="PingCount" DataType="Int32" Description="心跳" />
<Column Name="ProcessId" DataType="Int32" Description="进程" />
<Column Name="ProcessName" DataType="String" Description="进程å称" />
<Column Name="UserName" DataType="String" Description="用户å。å¯åŠ¨è¯¥è¿›ç¨‹çš„用户å" />
<Column Name="StartTime" DataType="DateTime" Description="进程时间" />
<Column Name="Version" DataType="String" Description="版本。客户端" />
<Column Name="Compile" DataType="DateTime" Description="编译时间。客户端" />
<Column Name="Token" DataType="String" Length="200" Description="令牌" />
<Column Name="Creator" DataType="String" Description="创建者。æœåŠ¡ç«¯èŠ‚点" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
</Columns>
<Indexes>
<Index Columns="Client" Unique="True" />
<Index Columns="AppId" />
<Index Columns="UpdateTime" />
<Index Columns="Token" />
</Indexes>
</Table>
</Tables>
|