--管理员表 create table tb_manager ( id int identity, --自增阿弟 paixu int null default 0, --排序 role_id int null default 0, --角色阿弟 department_id int null default 0, --部门阿弟 role_type int null default 0, --角色类型 user_name nvarchar(50) null, --用户名 user_pwd nvarchar(50) null, --密码 real_name nvarchar(50) null, --真实姓名 email nvarchar(50) null, --邮箱 telephone nvarchar(50) null, --联系电话 is_lock int null default 0, --状态(0正常/1禁用) add_time datetime null default getdate(), --添加时间 constraint PK_TB_MANAGER primary key (id) ) go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '自增阿弟', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '排序', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'paixu' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '角色阿弟', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '部门阿弟', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'department_id' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '角色类型', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_type' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '密码', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_pwd' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '用户名', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_name' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '真实姓名', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'real_name' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '邮箱', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'email' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '联系电话', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'telephone' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '状态(0正常/1禁用)', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'is_lock' go declare @CurrentUser sysname select @CurrentUser = user_name() execute sp_addextendedproperty 'MS_Description', '添加时间', 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'add_time' go