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.

131 regels
4.9 KiB

  1. --ű
  2. create table tb_news (
  3. id int identity, --
  4. channel_id int not null default 0, --Ƶ
  5. category_id int not null default 0, --Ŀ𰢵
  6. guid nvarchar(50) null, --а
  7. title nvarchar(100) null, --±
  8. url nvarchar(255) null default '', --ӵַ
  9. path nvarchar(255) null default '', --ͼƬ·
  10. fujian nvarchar(255) null default '', --ַ
  11. seo_title nvarchar(255) null default '', --Ż
  12. seo_keywords nvarchar(255) null default '', --Żؼ
  13. seo_description nvarchar(255) null default '', --Ż
  14. content ntext null, --
  15. paixu int null default 0, --
  16. hits int null default 0, --
  17. remark nvarchar(255) null default '', --ע
  18. target int null default 0, --򿪷ʽ(0´/1ԭ)
  19. add_time datetime null default getdate(), --
  20. state int null default 0, --״̬(0ʾ/1)
  21. constraint PK_TB_NEWS primary key (id)
  22. )
  23. go
  24. declare @CurrentUser sysname
  25. select @CurrentUser = user_name()
  26. execute sp_addextendedproperty 'MS_Description',
  27. '״̬(0��ʾ/1����)',
  28. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'state'
  29. go
  30. declare @CurrentUser sysname
  31. select @CurrentUser = user_name()
  32. execute sp_addextendedproperty 'MS_Description',
  33. '��������',
  34. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'id'
  35. go
  36. declare @CurrentUser sysname
  37. select @CurrentUser = user_name()
  38. execute sp_addextendedproperty 'MS_Description',
  39. 'Ƶ������',
  40. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'channel_id'
  41. go
  42. declare @CurrentUser sysname
  43. select @CurrentUser = user_name()
  44. execute sp_addextendedproperty 'MS_Description',
  45. '��Ŀ���𰢵�',
  46. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'category_id'
  47. go
  48. declare @CurrentUser sysname
  49. select @CurrentUser = user_name()
  50. execute sp_addextendedproperty 'MS_Description',
  51. '�򿪷�ʽ(0�´���/1ԭ����)',
  52. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'target'
  53. go
  54. declare @CurrentUser sysname
  55. select @CurrentUser = user_name()
  56. execute sp_addextendedproperty 'MS_Description',
  57. '�����',
  58. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'guid'
  59. go
  60. declare @CurrentUser sysname
  61. select @CurrentUser = user_name()
  62. execute sp_addextendedproperty 'MS_Description',
  63. '���±���',
  64. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'title'
  65. go
  66. declare @CurrentUser sysname
  67. select @CurrentUser = user_name()
  68. execute sp_addextendedproperty 'MS_Description',
  69. '���ӵ�ַ',
  70. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'url'
  71. go
  72. declare @CurrentUser sysname
  73. select @CurrentUser = user_name()
  74. execute sp_addextendedproperty 'MS_Description',
  75. 'ͼƬ·��',
  76. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'path'
  77. go
  78. declare @CurrentUser sysname
  79. select @CurrentUser = user_name()
  80. execute sp_addextendedproperty 'MS_Description',
  81. '������ַ',
  82. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'fujian'
  83. go
  84. declare @CurrentUser sysname
  85. select @CurrentUser = user_name()
  86. execute sp_addextendedproperty 'MS_Description',
  87. '�Ż�����',
  88. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_title'
  89. go
  90. declare @CurrentUser sysname
  91. select @CurrentUser = user_name()
  92. execute sp_addextendedproperty 'MS_Description',
  93. '�Ż��ؼ���',
  94. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_keywords'
  95. go
  96. declare @CurrentUser sysname
  97. select @CurrentUser = user_name()
  98. execute sp_addextendedproperty 'MS_Description',
  99. '�Ż�����',
  100. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'seo_description'
  101. go
  102. declare @CurrentUser sysname
  103. select @CurrentUser = user_name()
  104. execute sp_addextendedproperty 'MS_Description',
  105. '����',
  106. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'content'
  107. go
  108. declare @CurrentUser sysname
  109. select @CurrentUser = user_name()
  110. execute sp_addextendedproperty 'MS_Description',
  111. '����',
  112. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'paixu'
  113. go
  114. declare @CurrentUser sysname
  115. select @CurrentUser = user_name()
  116. execute sp_addextendedproperty 'MS_Description',
  117. '������',
  118. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'hits'
  119. go
  120. declare @CurrentUser sysname
  121. select @CurrentUser = user_name()
  122. execute sp_addextendedproperty 'MS_Description',
  123. '��ע',
  124. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'remark'
  125. go
  126. declare @CurrentUser sysname
  127. select @CurrentUser = user_name()
  128. execute sp_addextendedproperty 'MS_Description',
  129. '��������',
  130. 'user', @CurrentUser, 'table', 'tb_news', 'column', 'add_time'
  131. go