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