<?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" ConnName="Stardust" Output="" BaseClass="" xmlns="http://www.newlifex.com/Model2020.xsd">
<Table Name="App" TableName="StarApp" Description="应用系统。æœåŠ¡æ供者和消费者">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Name" DataType="String" Master="True" Nullable="False" Description="å称" />
<Column Name="DisplayName" DataType="String" Description="显示å" />
<Column Name="Secret" DataType="String" Description="密钥" />
<Column Name="Category" DataType="String" Description="类别" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="AutoActive" DataType="Boolean" Description="自动激活。新登录应用是å¦è‡ªåŠ¨æ¿€æ´»ï¼Œåªæœ‰æ¿€æ´»çš„应用,æ‰æä¾›æœåŠ¡" />
<Column Name="WebHook" DataType="String" Length="500" Description="å‘Šè¦æœºå™¨äººã€‚钉钉ã€ä¼ä¸šå¾®ä¿¡ç‰" />
<Column Name="AlarmOnOffline" DataType="Boolean" Description="下线告è¦ã€‚节点下线时,å‘é€å‘Šè¦" />
<Column Name="LastLogin" DataType="DateTime" Description="最åŽç™»å½•" />
<Column Name="LastIP" DataType="String" Description="最åŽIP" />
<Column Name="AllowControlNodes" DataType="String" Description="节点控制。å…许该应用å‘指令控制的节点,*表示全部节点" />
<Column Name="Remark" DataType="String" Length="500" Description="内容" />
<Column Name="CreateUser" DataType="String" Description="创建者" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateUser" DataType="String" Description="更新者" />
<Column Name="UpdateUserID" DataType="Int32" Description="更新者" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
<Column Name="UpdateIP" DataType="String" Description="更新地å€" />
</Columns>
<Indexes>
<Index Columns="Name" Unique="True" />
</Indexes>
</Table>
<Table Name="AppOnline" 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="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="500" 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>
<Table Name="AppHistory" Description="应用历å²">
<Columns>
<Column Name="Id" DataType="Int64" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="Client" DataType="String" Description="客户端。IPåŠ è¿›ç¨‹" />
<Column Name="Version" DataType="String" Description="版本" />
<Column Name="Action" DataType="String" Description="æ“作" />
<Column Name="Success" DataType="Boolean" Description="æˆåŠŸ" />
<Column Name="Remark" DataType="String" Length="500" Description="内容" />
<Column Name="Creator" DataType="String" Description="创建者。æœåŠ¡ç«¯èŠ‚点" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
</Columns>
<Indexes>
<Index Columns="AppId,Client" />
</Indexes>
</Table>
<Table Name="AppMeter" Description="应用性能。ä¿å˜åº”用上报的性能数æ®ï¼Œå¦‚CPUã€å†…å˜ã€çº¿ç¨‹ã€å¥æŸ„ç‰">
<Columns>
<Column Name="Id" DataType="Int64" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="ClientId" DataType="String" Description="实例。应用å¯èƒ½å¤šå®žä¾‹éƒ¨ç½²ï¼Œip@proccessid" />
<Column Name="Memory" DataType="Int32" Description="内å˜ã€‚å•ä½M" />
<Column Name="ProcessorTime" DataType="Int32" Description="处ç†å™¨ã€‚处ç†å™¨æ—¶é—´ï¼Œå•ä½ms" />
<Column Name="Threads" DataType="Int32" Description="线程数" />
<Column Name="Handles" DataType="Int32" Description="å¥æŸ„æ•°" />
<Column Name="Connections" DataType="Int32" Description="连接数" />
<Column Name="Data" DataType="String" Length="-1" Description="æ•°æ®" />
<Column Name="Creator" DataType="String" Description="创建者。æœåŠ¡ç«¯èŠ‚点" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
</Columns>
<Indexes>
<Index Columns="AppId,ClientId,Id" />
</Indexes>
</Table>
<Table Name="Service" Description="æœåŠ¡ä¿¡æ¯ã€‚æœåŠ¡æ供者å‘布的æœåŠ¡">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Name" DataType="String" Master="True" Nullable="False" Description="å称。æœåŠ¡å,æ供一个地å€ï¼ŒåŒ…å«å¤šä¸ªæŽ¥å£" />
<Column Name="DisplayName" DataType="String" Description="显示å" />
<Column Name="Category" DataType="String" Description="类别" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="Providers" DataType="Int32" Description="æ供者" />
<Column Name="Consumers" DataType="Int32" Description="消费者" />
<Column Name="Remark" DataType="String" Length="500" Description="内容" />
<Column Name="CreateUser" DataType="String" Description="创建者" />
<Column Name="CreateUserID" DataType="Int32" Description="创建者" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
<Column Name="UpdateUser" DataType="String" Description="更新者" />
<Column Name="UpdateUserID" DataType="Int32" Description="更新者" />
<Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
<Column Name="UpdateIP" DataType="String" Description="更新地å€" />
</Columns>
<Indexes>
<Index Columns="Name" Unique="True" />
</Indexes>
</Table>
<Table Name="AppService" Description="应用æœåŠ¡ã€‚应用æ供的æœåŠ¡">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="ServiceId" DataType="Int32" Description="æœåŠ¡" />
<Column Name="ServiceName" DataType="String" Description="æœåŠ¡å" />
<Column Name="Client" DataType="String" Description="客户端。IPåŠ ç«¯å£" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="PingCount" DataType="Int32" Description="心跳" />
<Column Name="Version" DataType="String" Description="版本" />
<Column Name="Address" DataType="String" Length="500" Description="地å€ã€‚æœåŠ¡åœ°å€ï¼Œå¦‚http://127.0.0.1:1234" />
<Column Name="HealthCheck" DataType="String" Description="å¥åº·ç›‘测" />
<Column Name="Weight" DataType="Int32" Description="æƒé‡" />
<Column Name="Scope" DataType="String" Description="ä½œç”¨åŸŸã€‚æ ¹æ®é…ç½®ä¸å¿ƒåº”用规则计算,ç¦æ¢è·¨åŸŸè®¿é—®æœåŠ¡" />
<Column Name="Tag" 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="AppId" />
<Index Columns="ServiceId" />
<Index Columns="UpdateTime" />
</Indexes>
</Table>
<Table Name="AppConsume" Description="应用消费。应用消费的æœåŠ¡">
<Columns>
<Column Name="Id" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Description="应用" />
<Column Name="ServiceId" DataType="Int32" Description="æœåŠ¡" />
<Column Name="ServiceName" DataType="String" Description="æœåŠ¡å" />
<Column Name="Client" DataType="String" Description="客户端。IPåŠ è¿›ç¨‹" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="PingCount" DataType="Int32" Description="心跳" />
<Column Name="MinVersion" DataType="String" Description="最低版本。è¦æ±‚返回大于ç‰äºŽè¯¥ç‰ˆæœ¬çš„æœåŠ¡æ供者" />
<Column Name="Scope" DataType="String" Description="ä½œç”¨åŸŸã€‚æ ¹æ®é…ç½®ä¸å¿ƒåº”用规则计算,ç¦æ¢è·¨åŸŸè®¿é—®æœåŠ¡" />
<Column Name="Tag" 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="AppId" />
<Index Columns="ServiceId" />
<Index Columns="UpdateTime" />
</Indexes>
</Table>
<Table Name="AppLog" Description="应用日志" ConnName="AppLog">
<Columns>
<Column Name="Id" DataType="Int64" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AppId" DataType="Int32" Master="True" Description="应用" />
<Column Name="ClientId" DataType="String" Master="True" Description="客户端" />
<Column Name="Time" DataType="String" Description="时间" />
<Column Name="ThreadId" DataType="String" Description="线程" />
<Column Name="Kind" DataType="String" Description="类型" />
<Column Name="Name" DataType="String" Description="å称" />
<Column Name="Message" DataType="String" Length="-1" Description="内容" />
<Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
<Column Name="CreateIP" DataType="String" Description="创建地å€" />
</Columns>
<Indexes>
<Index Columns="AppId,ClientId,ThreadId,Id" />
<Index Columns="AppId,Id" />
</Indexes>
</Table>
</Tables>
|