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.

54 lines
2.0 KiB

  1. --¼־
  2. create table tb_manager_log (
  3. id int identity, --ID
  4. user_id int null, --ûID
  5. user_name nvarchar(100) null, --û
  6. action_type nvarchar(100) null, --
  7. note nvarchar(255) null, --־
  8. login_ip nvarchar(30) null, --¼IP
  9. login_time datetime null default getdate(), --¼ʱ
  10. constraint PK_TB_MANAGER_LOG primary key (id)
  11. )
  12. go
  13. declare @CurrentUser sysname
  14. select @CurrentUser = user_name()
  15. execute sp_addextendedproperty 'MS_Description',
  16. '����ID',
  17. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'id'
  18. go
  19. declare @CurrentUser sysname
  20. select @CurrentUser = user_name()
  21. execute sp_addextendedproperty 'MS_Description',
  22. '�û�ID',
  23. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'user_id'
  24. go
  25. declare @CurrentUser sysname
  26. select @CurrentUser = user_name()
  27. execute sp_addextendedproperty 'MS_Description',
  28. '�û���',
  29. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'user_name'
  30. go
  31. declare @CurrentUser sysname
  32. select @CurrentUser = user_name()
  33. execute sp_addextendedproperty 'MS_Description',
  34. '����',
  35. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'action_type'
  36. go
  37. declare @CurrentUser sysname
  38. select @CurrentUser = user_name()
  39. execute sp_addextendedproperty 'MS_Description',
  40. '��־',
  41. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'note'
  42. go
  43. declare @CurrentUser sysname
  44. select @CurrentUser = user_name()
  45. execute sp_addextendedproperty 'MS_Description',
  46. '��¼IP',
  47. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'login_ip'
  48. go
  49. declare @CurrentUser sysname
  50. select @CurrentUser = user_name()
  51. execute sp_addextendedproperty 'MS_Description',
  52. '��¼ʱ��',
  53. 'user', @CurrentUser, 'table', 'tb_manager_log', 'column', 'login_time'
  54. go