You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
3.2 KiB

--
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