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.

90 lines
3.2 KiB

  1. --Ա
  2. create table tb_attribute (
  3. id int identity, --id
  4. class_id int not null, --id
  5. title nvarchar(100) null, --
  6. guid nvarchar(50) null, --guid
  7. parent_id int null default 0, --id
  8. class_list nvarchar(500) null, --Ŀ
  9. class_layer int null default 0, --
  10. paixu int null default 0, --
  11. url nvarchar(255) null default '', --
  12. path nvarchar(255) null default '', --ͼƬ·
  13. content nvarchar(500) null, --
  14. add_time datetime null default getdate() --
  15. constraint PK_TB_ATTRIBUTE primary key (id)
  16. )
  17. go
  18. execute sp_addextendedproperty 'MS_Description',
  19. '��������',
  20. 'user', 'dbo', 'table', 'tb_attribute', 'column', 'add_time'
  21. go
  22. declare @CurrentUser sysname
  23. select @CurrentUser = user_name()
  24. execute sp_addextendedproperty 'MS_Description',
  25. '����ID',
  26. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'id'
  27. go
  28. declare @CurrentUser sysname
  29. select @CurrentUser = user_name()
  30. execute sp_addextendedproperty 'MS_Description',
  31. '����',
  32. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_id'
  33. go
  34. declare @CurrentUser sysname
  35. select @CurrentUser = user_name()
  36. execute sp_addextendedproperty 'MS_Description',
  37. '����',
  38. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'title'
  39. go
  40. declare @CurrentUser sysname
  41. select @CurrentUser = user_name()
  42. execute sp_addextendedproperty 'MS_Description',
  43. 'guid',
  44. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'guid'
  45. go
  46. declare @CurrentUser sysname
  47. select @CurrentUser = user_name()
  48. execute sp_addextendedproperty 'MS_Description',
  49. '����',
  50. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'parent_id'
  51. go
  52. declare @CurrentUser sysname
  53. select @CurrentUser = user_name()
  54. execute sp_addextendedproperty 'MS_Description',
  55. '��Ŀ��',
  56. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_list'
  57. go
  58. declare @CurrentUser sysname
  59. select @CurrentUser = user_name()
  60. execute sp_addextendedproperty 'MS_Description',
  61. '����',
  62. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'class_layer'
  63. go
  64. declare @CurrentUser sysname
  65. select @CurrentUser = user_name()
  66. execute sp_addextendedproperty 'MS_Description',
  67. '����',
  68. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'paixu'
  69. go
  70. declare @CurrentUser sysname
  71. select @CurrentUser = user_name()
  72. execute sp_addextendedproperty 'MS_Description',
  73. '���ӵ�ַ',
  74. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'url'
  75. go
  76. declare @CurrentUser sysname
  77. select @CurrentUser = user_name()
  78. execute sp_addextendedproperty 'MS_Description',
  79. 'ͼƬ·��',
  80. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'path'
  81. go
  82. declare @CurrentUser sysname
  83. select @CurrentUser = user_name()
  84. execute sp_addextendedproperty 'MS_Description',
  85. '����',
  86. 'user', @CurrentUser, 'table', 'tb_attribute', 'column', 'content'
  87. go