v9.8.2018.0605   由DataReader直接映射实体列表,以支持netstandard的MySql和SQLite,且提升性能
大石头 authored at 2018-06-05 00:45:23
3.54 KiB
X
<?xml version="1.0" encoding="utf-8"?>
<Tables Version="9.7.6702.39882" NameSpace="NewLife.Cube.Entity" ConnName="Cube" Output="" BaseClass="Entity">
  <Table Name="UserConnect" Description="用户链接。第三方绑定" ConnName="Membership">
    <Columns>
      <Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="编号" />
      <Column Name="Provider" DataType="String" Description="提供商" />
      <Column Name="UserID" DataType="Int32" Description="用户。本地用户" />
      <Column Name="OpenID" DataType="String" Description="身份标识。用户名、OpenID" />
      <Column Name="LinkID" DataType="Int64" Description="用户编号。第三方用户编号" />
      <Column Name="NickName" DataType="String" Description="昵称" />
      <Column Name="Avatar" DataType="String" Length="200" Description="头像" />
      <Column Name="AccessToken" DataType="String" Length="500" Description="访问令牌" />
      <Column Name="RefreshToken" DataType="String" Length="500" Description="刷新令牌" />
      <Column Name="Expire" DataType="DateTime" Description="过期时间" />
      <Column Name="Enable" DataType="Boolean" Description="启用" />
      <Column Name="CreateUserID" DataType="Int32" Description="创建用户" />
      <Column Name="CreateIP" DataType="String" Description="创建地址" />
      <Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
      <Column Name="UpdateUserID" DataType="Int32" Description="更新用户" />
      <Column Name="UpdateIP" DataType="String" Description="更新地址" />
      <Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
      <Column Name="Remark" DataType="String" Length="500" Description="备注" />
    </Columns>
    <Indexes>
      <Index Columns="Provider,OpenID" Unique="True" />
      <Index Columns="UserID" />
    </Indexes>
  </Table>
  <Table Name="UserToken" Description="用户令牌。授权其他人直接拥有指定用户的身份,支持有效期,支持数据接口" ConnName="Membership">
    <Columns>
      <Column Name="ID" DataType="Int32" Identity="True" PrimaryKey="True" Description="编号" />
      <Column Name="Token" DataType="String" Description="令牌" />
      <Column Name="Url" DataType="String" Length="200" Description="地址。锁定该令牌只能访问该资源路径" />
      <Column Name="UserID" DataType="Int32" Description="用户。本地用户" />
      <Column Name="Expire" DataType="DateTime" Description="过期时间" />
      <Column Name="Enable" DataType="Boolean" Description="启用" />
      <Column Name="Times" DataType="Int32" Description="次数。该令牌使用次数" />
      <Column Name="LastIP" DataType="String" Description="最后地址" />
      <Column Name="LastTime" DataType="DateTime" Description="最后时间" />
      <Column Name="CreateUserID" DataType="Int32" Description="创建用户" />
      <Column Name="CreateIP" DataType="String" Description="创建地址" />
      <Column Name="CreateTime" DataType="DateTime" Description="创建时间" />
      <Column Name="UpdateUserID" DataType="Int32" Description="更新用户" />
      <Column Name="UpdateIP" DataType="String" Description="更新地址" />
      <Column Name="UpdateTime" DataType="DateTime" Description="更新时间" />
      <Column Name="Remark" DataType="String" Length="500" Description="备注" />
    </Columns>
    <Indexes>
      <Index Columns="Token" Unique="True" />
      <Index Columns="UserID" />
    </Indexes>
  </Table>
</Tables>