代码改变世界

Membership 数据字典

2007-07-23 21:25  蓝之风  阅读(687)  评论(3编辑  收藏  举报

 最近想做一个给予角色管理的权限管理系统,在网上找了些资料,发现sql2005的Membership不错,整理了一下sql2005中Membership的数据字典,在这里贴出来 ,只可惜我现在做的项目还是用的.net2003,2003还没有封装好的 Provider,谁让Membership是vs2005的新特性呢,郁闷

表名:aspnet_Applications

说明:保存应用程序信息

字段名

类型

属性

说明

 ApplicationName

 nvarchar(256)

 

 应用程序名

 LoweredApplicationName

 nvarchar(256)

 

 小写的应用程序名

ApplicationId

 uniqueidentifier

 PK

应用程序的id, GUID

 Description

 nvarchar(256)

 nullable

应用程序的描述

 

表名:aspnet_Paths

说明:路径信息

字段名

类型

属性

说明

 ApplicationId

 uniqueidentifier

 FK: appnet_Applications.ApplciationId

 应用程序Id

 PathId

 uniqueidentifier

 PK

 路径Id

 Path

 nvarchar(256)

 

 路径信息

 LoweredPath

 nvarchar(256)

 

小写的路径信息

表名:aspnet_Users

说明:用户信息

字段名

类型

属性

说明

 ApplicationId

 uniqueidentifier

 

 应用程序Id

 UserId

 uniqueidentifier

 PK

用户Id

 UserName

 nvarchar(256)

 

 用户名

 LoweredUserName

 nvarchar(256)

 

 小写的用户名

 MobileAlias

 nvarchar(16)

 

 移动电话的pin码(未使用)

 IsAnonymous

 bit

 

 是否为匿名用户

LastActivityDate

 datetime

 

 最后活动日期

 

表名:aspnet_Membership

说明:成员信息

字段名

类型

属性

说明

 ApplicationId

 uniqueidentifier

 FK: appnet_App

lications.

ApplciationId

 应用程序Id

 UserId

 uniqueidentifier

 FK: aspnet_Users.

UserID

用户Id

 Password

 nvarchar(128)

 

 密码

 PasswordFormat

 int

 

存储密码的格式 

 PasswordSalt

 nvarchar(128)

 

密码的Hash

 MobilePIN

 nvarchar(16)

 

 手机PIN

 Email

 nvarchar(256)

 

 电子邮件地址

 LoweredEmail

 nvarchar(256)

 

 小写的电子邮件地址

 PasswordQuestion

 nvarchar(256)

 

 遗忘密码问题

 PasswordAnswer

 nvarchar(128)

 

 遗忘密码答案

 IsApproved

 bit

 

 

 IsLockedOut

 bit

 

 是否锁住

 CreateDate

 datetime

 

 创建时间

 LastLoginDate

 datetime

 

 最后登录时间

 LastPassword

ChangedDate

 datetime

 

 最后密码更改时间

 LastLockoutDate

 datetime

 

 最后一次锁帐号的时间

 FailedPassword

AttemptCount

 int

 

 密码失败尝试次数

 FailedPassword

AttemptWindowStart

 datetime

 

 密码失败尝试窗口打开时间

 FailedPassword

AnswerAttemptCount

 int

 

 遗失密码问题尝试次数

 FailedPasswordAnswer

AttemptWindowStart

 datetime

 

 遗失密码问题输入窗口打开时间

 Comment

 ntext

 

 备注

 

表名:aspnet_Roles

说明:角色表

字段名

类型

属性

说明

ApplicationId

 uniqueidentifier

 FK: appnet_Applications.ApplciationId

应用程序Id

 RoleId

 uniqueidentifier

 PK

 角色Id

 RoleName

 nvarchar(256)

 

 角色名称

 LoweredRoleName

 nvarchar(256)

 

 小的角色名称

 Description

 nvarchar(256)

 nullable

 描述

 

表名:aspnet_UsersInRoles

说明:用户角色关系表

 字段名

 类型

属性

说明

 UserID

 uniqueidentifier

 FK: aspnet_Users.UserId

用户ID 

 RoleID

 uniqueidentifier

 FK: aspnet_Roles.RoleId

 角色ID

 

表名:aspnet_Profile

说明:Profile对象存储表

字段名

类型

属性

说明

 UserId

 uniqueidentifier

 FK: aspnet_Users.UserId

 用户ID

 PropertyNames

 ntext

 

 属性名称

 PropertyValuesString

 ntext

 

 字符串值

 PropertyValuesBinary

 image

 

 二进制值

LastUpdatedDate

 datetime

 

最后更新日期 

 

表名:aspnet_PersonalizationAllUsers

字段名

类型

属性

说明

 PathId

 uniqueidentifier

 FK: aspnet_Paths.PathId

 路径ID

 PageSetting

 ntext

 

 个性化设置

LastUpdatedDate

 datetime

 

最后更新日期 

表名:aspnet_PersonalizationPerUser

字段名

类型

属性

说明

Id

 uniqueidentifier

 PK

ID

PathID

 uniqueidentifier

FK: aspnet_Paths.PathId

路径ID

UserID

uniqueidentifier

FK:aspnet_Users.UserId

用户ID

 PageSetting

 ntext

 

 个性化设置

LastUpdatedDate

 datetime

 

最后更新日期