|
|
- --���ű�
- create table tb_news (
- id int identity, --��������
- channel_id int not null default 0, --Ƶ������
- category_id int not null default 0, --��Ŀ���𰢵�
- guid nvarchar(50) null, --�����
- title nvarchar(100) null, --���±���
- url nvarchar(255) null default '', --���ӵ�ַ
- path nvarchar(255) null default '', --ͼƬ·��
- fujian nvarchar(255) null default '', --������ַ
- seo_title nvarchar(255) null default '', --�Ż�����
- seo_keywords nvarchar(255) null default '', --�Ż��ؼ���
- seo_description nvarchar(255) null default '', --�Ż�����
- content ntext null, --����
- paixu int null default 0, --����
- hits int null default 0, --������
- remark nvarchar(255) null default '', --��ע
- target int null default 0, --��ʽ(0�´���/1ԭ����)
- add_time datetime null default getdate(), --��������
- state int null default 0, --״̬(0��ʾ/1����)
- constraint PK_TB_NEWS primary key (id)
- )
- go
-
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '״̬(0��ʾ/1����)',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'state'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- 'Ƶ������',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'channel_id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��Ŀ���𰢵�',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'category_id'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ʽ(0�´���/1ԭ����)',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'target'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�����',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'guid'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '���±���',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'title'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '���ӵ�ַ',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'url'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- 'ͼƬ·��',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'path'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '������ַ',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'fujian'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�����',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_title'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�Ż��ؼ���',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_keywords'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�����',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_description'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'content'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'paixu'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '������',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'hits'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��ע',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'remark'
- go
- declare @CurrentUser sysname
- select @CurrentUser = user_name()
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', @CurrentUser, 'table', 'tb_news', 'column', 'add_time'
- go
|