<?xml version="1.0" encoding="utf-8"?>
<Tables Version="9.5.6420.13918">
<Table Name="User" Description="用户" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="Name" DataType="String" Master="True" Description="å称。登录用户å" />
<Column Name="NickName" DataType="String" Description="显示å。昵称ã€ä¸æ–‡åç‰" />
<Column Name="Email" DataType="String" Description="邮件" />
<Column Name="Password" DataType="String" Description="密ç " />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="IsTeam" DataType="Boolean" Description="团队" />
<Column Name="IsAdmin" DataType="Boolean" Description="管ç†å‘˜" />
<Column Name="Online" DataType="Boolean" Description="在线" />
<Column Name="RegisterTime" DataType="DateTime" Description="注册时间" />
<Column Name="RegisterIP" DataType="String" Description="注册IP" />
<Column Name="Logins" DataType="Int32" Description="登录" />
<Column Name="LastLogin" DataType="DateTime" Description="最åŽç™»å½•" />
<Column Name="LastLoginIP" DataType="String" Description="最åŽç™»å½•IP" />
<Column Name="Description" DataType="String" Length="500" Description="æè¿°" />
<Column Name="LinkID" DataType="Int32" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="Name" Unique="True" />
<Index Columns="LinkID" />
</Indexes>
</Table>
<Table Name="Repository" Description="仓库" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="OwnerID" DataType="Int32" Description="拥有者" />
<Column Name="Name" DataType="String" Master="True" Description="å称" />
<Column Name="Enable" DataType="Boolean" Description="å¯ç”¨" />
<Column Name="IsPrivate" DataType="Boolean" Description="ç§æœ‰" />
<Column Name="AllowAnonymousRead" DataType="Boolean" Description="匿å读" />
<Column Name="AllowAnonymousWrite" DataType="Boolean" Description="匿å写" />
<Column Name="Commits" DataType="Int32" Description="æ交数" />
<Column Name="Branches" DataType="Int32" Description="分支数" />
<Column Name="Contributors" DataType="Int32" Description="å‚与者" />
<Column Name="Files" DataType="Int32" Description="文件数" />
<Column Name="Size" DataType="Int64" Description="æºç 大å°" />
<Column Name="LastCommit" DataType="DateTime" Description="最åŽæ交" />
<Column Name="Views" DataType="Int32" Description="æµè§ˆæ•°" />
<Column Name="Downloads" DataType="Int32" Description="下载数" />
<Column Name="LastView" DataType="DateTime" Description="最åŽæµè§ˆ" />
<Column Name="Description" DataType="String" Length="500" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="OwnerID,Name" Unique="True" />
<Index Columns="OwnerID" />
<Index Columns="Name" />
</Indexes>
</Table>
<Table Name="UserTeam" Description="用户团队" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="UserID" DataType="Int32" Description="用户" />
<Column Name="TeamID" DataType="Int32" Description="团队" />
<Column Name="IsAdmin" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="UserID,TeamID" Unique="True" />
<Index Columns="UserID" />
<Index Columns="TeamID" />
</Indexes>
</Table>
<Table Name="UserRepository" Description="用户仓库" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="UserID" DataType="Int32" Description="用户" />
<Column Name="RepositoryID" DataType="Int32" Description="仓库" />
<Column Name="AllowRead" DataType="Boolean" Description="å…许读" />
<Column Name="AllowWrite" DataType="Boolean" Description="å…许写" />
<Column Name="IsOwner" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="UserID,RepositoryID" Unique="True" />
</Indexes>
</Table>
<Table Name="AuthorizationLog" Description="认è¯æ—¥å¿—" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="AuthCode" DataType="String" Master="True" Description="认è¯ç " />
<Column Name="UserID" DataType="Int32" Description="用户" />
<Column Name="IssueDate" DataType="DateTime" Description="å‘生时间" />
<Column Name="Expires" DataType="DateTime" Description="过期时间" />
<Column Name="IssueIp" DataType="String" Description="å‘生地å€" />
<Column Name="LastIp" DataType="String" Description="最åŽåœ°å€" />
<Column Name="IsValid" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="AuthCode" Unique="True" />
<Index Columns="UserID" />
</Indexes>
</Table>
<Table Name="SshKey" Description="SSH密钥" DbType="SqlServer">
<Columns>
<Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="ç¼–å·" />
<Column Name="UserID" DataType="Int32" Description="用户" />
<Column Name="KeyType" DataType="String" Description="密钥类型" />
<Column Name="Fingerprint" DataType="String" Description="指纹" />
<Column Name="PublicKey" DataType="String" Length="600" Description="公钥" />
<Column Name="ImportData" DataType="DateTime" Description="导入数æ®" />
<Column Name="LastUse" DataType="DateTime" 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="更新地å€" />
</Columns>
<Indexes>
<Index Columns="UserID" Unique="True" />
<Index Columns="Fingerprint" />
</Indexes>
</Table>
</Tables>
|