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.

66 lines
2.1 KiB

  1. --Żȯ
  2. create table tb_coupon (
  3. id int identity, --
  4. paixu int null default 0, --
  5. name nvarchar(255) null default '', --Żȯ
  6. start_time datetime null, --Żȯʼʱ
  7. end_time datetime null, --Żȯʱ
  8. number int null default 0, --Żȯ
  9. purchase_amount decimal(18,2) null, --Żȯ
  10. coupon_amount decimal(18,2) null, --Żȯ
  11. status int null default 0, --״̬(0ʾ/1)
  12. add_time datetime null default getdate(), --ʱ
  13. constraint PK_TB_COUPON primary key (id)
  14. )
  15. go
  16. execute sp_addextendedproperty 'MS_Description',
  17. '��������',
  18. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'id'
  19. go
  20. execute sp_addextendedproperty 'MS_Description',
  21. '����',
  22. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'paixu'
  23. go
  24. execute sp_addextendedproperty 'MS_Description',
  25. '�Ż�ȯ����',
  26. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'name'
  27. go
  28. execute sp_addextendedproperty 'MS_Description',
  29. '�Ż�ȯ��ʼʱ��',
  30. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'start_time'
  31. go
  32. execute sp_addextendedproperty 'MS_Description',
  33. '�Ż�ȯ����ʱ��',
  34. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'end_time'
  35. go
  36. execute sp_addextendedproperty 'MS_Description',
  37. '�Ż�ȯ����',
  38. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'number'
  39. go
  40. execute sp_addextendedproperty 'MS_Description',
  41. '�Ż�ȯ��������',
  42. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'purchase_amount'
  43. go
  44. execute sp_addextendedproperty 'MS_Description',
  45. '�Ż�ȯ����',
  46. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'coupon_amount'
  47. go
  48. execute sp_addextendedproperty 'MS_Description',
  49. '״̬{1/��ʾ��0/����ʾ}',
  50. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'status'
  51. go
  52. execute sp_addextendedproperty 'MS_Description',
  53. '����ʱ��',
  54. 'user', 'dbo', 'table', 'tb_coupon', 'column', 'add_time'
  55. go