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.

218 lines
8.1 KiB

  1. --Ʒ
  2. create table tb_product (
  3. id int identity, --id
  4. class_id nvarchar(255) null default '', --id
  5. parent_id int not null default 0, --id
  6. guid nvarchar(50) null, --guid
  7. name 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 '', --seo
  12. seo_keywords nvarchar(255) null default '', --seoؼ
  13. seo_description nvarchar(255) null default '', --seo
  14. content ntext null, --
  15. paixu int null default 0, --
  16. hits int null default 0, --
  17. jifen int null default 0, --
  18. status int null default 0, --״̬
  19. attribute_content ntext null, --ֵ
  20. color_content ntext null, --ɫֵ
  21. attribute_value nvarchar(255) null default '', --ֵid
  22. select_value ntext null default '', --ǰѡֵ
  23. user_id int null default 0, --ûid
  24. priceyj decimal(18,2) null, --ԭ
  25. price decimal(18,2) null, --۸
  26. sales int null default 0, --
  27. xinpin int null default 0, --Ʒ
  28. tejia int null default 0, --ؼ
  29. remai int null default 0, --
  30. tuijian int null default 0, --Ƽ
  31. add_time datetime null default getdate(), --
  32. statebaoyou int null default 0, --Ƿ(0/1)
  33. constraint PK_TB_PRODUCT primary key (id)
  34. )
  35. go
  36. declare @CurrentUser sysname
  37. select @CurrentUser = user_name()
  38. execute sp_addextendedproperty 'MS_Description',
  39. '����ID',
  40. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'id'
  41. go
  42. declare @CurrentUser sysname
  43. select @CurrentUser = user_name()
  44. execute sp_addextendedproperty 'MS_Description',
  45. '����ID',
  46. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'parent_id'
  47. go
  48. declare @CurrentUser sysname
  49. select @CurrentUser = user_name()
  50. execute sp_addextendedproperty 'MS_Description',
  51. '����ֵid����',
  52. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'attribute_value'
  53. go
  54. declare @CurrentUser sysname
  55. select @CurrentUser = user_name()
  56. execute sp_addextendedproperty 'MS_Description',
  57. '��ĿID',
  58. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'class_id'
  59. go
  60. declare @CurrentUser sysname
  61. select @CurrentUser = user_name()
  62. execute sp_addextendedproperty 'MS_Description',
  63. 'guid',
  64. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'guid'
  65. go
  66. declare @CurrentUser sysname
  67. select @CurrentUser = user_name()
  68. execute sp_addextendedproperty 'MS_Description',
  69. '��Ʒ����',
  70. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'name'
  71. go
  72. declare @CurrentUser sysname
  73. select @CurrentUser = user_name()
  74. execute sp_addextendedproperty 'MS_Description',
  75. '���ӵ�ַ',
  76. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'url'
  77. go
  78. declare @CurrentUser sysname
  79. select @CurrentUser = user_name()
  80. execute sp_addextendedproperty 'MS_Description',
  81. 'ͼƬ·��',
  82. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'path'
  83. go
  84. declare @CurrentUser sysname
  85. select @CurrentUser = user_name()
  86. execute sp_addextendedproperty 'MS_Description',
  87. '������ַ',
  88. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'fujian'
  89. go
  90. declare @CurrentUser sysname
  91. select @CurrentUser = user_name()
  92. execute sp_addextendedproperty 'MS_Description',
  93. '�Ż�����',
  94. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_title'
  95. go
  96. declare @CurrentUser sysname
  97. select @CurrentUser = user_name()
  98. execute sp_addextendedproperty 'MS_Description',
  99. '�Ż��ؼ���',
  100. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_keywords'
  101. go
  102. declare @CurrentUser sysname
  103. select @CurrentUser = user_name()
  104. execute sp_addextendedproperty 'MS_Description',
  105. '�Ż�����',
  106. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'seo_description'
  107. go
  108. declare @CurrentUser sysname
  109. select @CurrentUser = user_name()
  110. execute sp_addextendedproperty 'MS_Description',
  111. '����',
  112. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'content'
  113. go
  114. declare @CurrentUser sysname
  115. select @CurrentUser = user_name()
  116. execute sp_addextendedproperty 'MS_Description',
  117. '����',
  118. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'paixu'
  119. go
  120. declare @CurrentUser sysname
  121. select @CurrentUser = user_name()
  122. execute sp_addextendedproperty 'MS_Description',
  123. '������',
  124. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'hits'
  125. go
  126. declare @CurrentUser sysname
  127. select @CurrentUser = user_name()
  128. execute sp_addextendedproperty 'MS_Description',
  129. '����',
  130. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'jifen'
  131. go
  132. declare @CurrentUser sysname
  133. select @CurrentUser = user_name()
  134. execute sp_addextendedproperty 'MS_Description',
  135. '״̬',
  136. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'status'
  137. go
  138. declare @CurrentUser sysname
  139. select @CurrentUser = user_name()
  140. execute sp_addextendedproperty 'MS_Description',
  141. '����ֵ',
  142. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'attribute_content'
  143. go
  144. declare @CurrentUser sysname
  145. select @CurrentUser = user_name()
  146. execute sp_addextendedproperty 'MS_Description',
  147. '��ɫֵ',
  148. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'color_content'
  149. go
  150. declare @CurrentUser sysname
  151. select @CurrentUser = user_name()
  152. execute sp_addextendedproperty 'MS_Description',
  153. '��ǰѡ��ֵ',
  154. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'select_value'
  155. go
  156. declare @CurrentUser sysname
  157. select @CurrentUser = user_name()
  158. execute sp_addextendedproperty 'MS_Description',
  159. '�û�ID',
  160. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'user_id'
  161. go
  162. declare @CurrentUser sysname
  163. select @CurrentUser = user_name()
  164. execute sp_addextendedproperty 'MS_Description',
  165. 'ԭ��',
  166. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'priceyj'
  167. go
  168. declare @CurrentUser sysname
  169. select @CurrentUser = user_name()
  170. execute sp_addextendedproperty 'MS_Description',
  171. '�۸�',
  172. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'price'
  173. go
  174. declare @CurrentUser sysname
  175. select @CurrentUser = user_name()
  176. execute sp_addextendedproperty 'MS_Description',
  177. '����',
  178. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'sales'
  179. go
  180. declare @CurrentUser sysname
  181. select @CurrentUser = user_name()
  182. execute sp_addextendedproperty 'MS_Description',
  183. '�Ƽ�',
  184. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'tuijian'
  185. go
  186. declare @CurrentUser sysname
  187. select @CurrentUser = user_name()
  188. execute sp_addextendedproperty 'MS_Description',
  189. '�ؼ�',
  190. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'tejia'
  191. go
  192. declare @CurrentUser sysname
  193. select @CurrentUser = user_name()
  194. execute sp_addextendedproperty 'MS_Description',
  195. '����',
  196. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'remai'
  197. go
  198. declare @CurrentUser sysname
  199. select @CurrentUser = user_name()
  200. execute sp_addextendedproperty 'MS_Description',
  201. '��Ʒ',
  202. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'xinpin'
  203. go
  204. declare @CurrentUser sysname
  205. select @CurrentUser = user_name()
  206. execute sp_addextendedproperty 'MS_Description',
  207. '��������',
  208. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'add_time'
  209. go
  210. declare @CurrentUser sysname
  211. select @CurrentUser = user_name()
  212. execute sp_addextendedproperty 'MS_Description',
  213. '�Ƿ�����(0��/1��)',
  214. 'user', @CurrentUser, 'table', 'tb_product', 'column', 'statebaoyou'
  215. go