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_manager (
  3. id int identity, --
  4. paixu int null default 0, --
  5. role_id int null default 0, --ɫ
  6. department_id int null default 0, --Ű
  7. role_type int null default 0, --ɫ
  8. user_name nvarchar(50) null, --û
  9. user_pwd nvarchar(50) null, --
  10. real_name nvarchar(50) null, --ʵ
  11. email nvarchar(50) null, --
  12. telephone nvarchar(50) null, --ϵ
  13. is_lock int null default 0, --״̬(0/1)
  14. add_time datetime null default getdate(), --ʱ
  15. constraint PK_TB_MANAGER primary key (id)
  16. )
  17. go
  18. declare @CurrentUser sysname
  19. select @CurrentUser = user_name()
  20. execute sp_addextendedproperty 'MS_Description',
  21. '��������',
  22. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'id'
  23. go
  24. declare @CurrentUser sysname
  25. select @CurrentUser = user_name()
  26. execute sp_addextendedproperty 'MS_Description',
  27. '����',
  28. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'paixu'
  29. go
  30. declare @CurrentUser sysname
  31. select @CurrentUser = user_name()
  32. execute sp_addextendedproperty 'MS_Description',
  33. '��ɫ����',
  34. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_id'
  35. go
  36. declare @CurrentUser sysname
  37. select @CurrentUser = user_name()
  38. execute sp_addextendedproperty 'MS_Description',
  39. '������',
  40. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'department_id'
  41. go
  42. declare @CurrentUser sysname
  43. select @CurrentUser = user_name()
  44. execute sp_addextendedproperty 'MS_Description',
  45. '��ɫ����',
  46. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'role_type'
  47. go
  48. declare @CurrentUser sysname
  49. select @CurrentUser = user_name()
  50. execute sp_addextendedproperty 'MS_Description',
  51. '����',
  52. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_pwd'
  53. go
  54. declare @CurrentUser sysname
  55. select @CurrentUser = user_name()
  56. execute sp_addextendedproperty 'MS_Description',
  57. '�û���',
  58. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'user_name'
  59. go
  60. declare @CurrentUser sysname
  61. select @CurrentUser = user_name()
  62. execute sp_addextendedproperty 'MS_Description',
  63. '��ʵ����',
  64. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'real_name'
  65. go
  66. declare @CurrentUser sysname
  67. select @CurrentUser = user_name()
  68. execute sp_addextendedproperty 'MS_Description',
  69. '����',
  70. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'email'
  71. go
  72. declare @CurrentUser sysname
  73. select @CurrentUser = user_name()
  74. execute sp_addextendedproperty 'MS_Description',
  75. '��ϵ�绰',
  76. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'telephone'
  77. go
  78. declare @CurrentUser sysname
  79. select @CurrentUser = user_name()
  80. execute sp_addextendedproperty 'MS_Description',
  81. '״̬(0����/1����)',
  82. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'is_lock'
  83. go
  84. declare @CurrentUser sysname
  85. select @CurrentUser = user_name()
  86. execute sp_addextendedproperty 'MS_Description',
  87. '����ʱ��',
  88. 'user', @CurrentUser, 'table', 'tb_manager', 'column', 'add_time'
  89. go