|
|
- --���Ա�
- create table tb_attribute (
- id int identity, --����id
- class_id int not null, --����id
- title nvarchar(100) null, --����
- guid nvarchar(50) null, --guid
- parent_id int null default 0, --����id
- class_list nvarchar(500) null, --��Ŀ��
- class_layer int null default 0, --����
- paixu int null default 0, --����
- url nvarchar(255) null default '', --����
- path nvarchar(255) null default '', --ͼƬ·��
- content nvarchar(500) null, --����
- add_time datetime null default getdate() --��������
- constraint PK_TB_ATTRIBUTE primary key (id)
- )
- go
-
-
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', 'dbo', 'table', 'tb_attribute', 'column', 'add_time'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����ID',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'title'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- 'guid',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'guid'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'parent_id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��Ŀ��',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_list'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_layer'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'paixu'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '���ӵ�ַ',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'url'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- 'ͼƬ·��',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'path'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'content'
- go
-
|