|
|
- --�Ż�ȯ��
- create table tb_coupon (
- id int identity, --��������
- paixu int null default 0, --����
- name nvarchar(255) null default '', --�Ż�ȯ����
- start_time datetime null, --�Ż�ȯ��ʼʱ��
- end_time datetime null, --�Ż�ȯ����ʱ��
- number int null default 0, --�Ż�ȯ����
- purchase_amount decimal(18,2) null, --�Ż�ȯ��������
- coupon_amount decimal(18,2) null, --�Ż�ȯ����
- status int null default 0, --״̬(0��ʾ/1����)
- add_time datetime null default getdate(), --����ʱ��
- constraint PK_TB_COUPON primary key (id)
- )
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '��������',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'id'
- go
- execute sp_addextendedproperty 'MS_Description',
- '����',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'paixu'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ����',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'name'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ��ʼʱ��',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'start_time'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ����ʱ��',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'end_time'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ����',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'number'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ��������',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'purchase_amount'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '�Ż�ȯ����',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'coupon_amount'
- go
-
- execute sp_addextendedproperty 'MS_Description',
- '״̬{1/��ʾ��0/����ʾ}',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'status'
- go
- execute sp_addextendedproperty 'MS_Description',
- '����ʱ��',
- 'user', 'dbo', 'table', 'tb_coupon', 'column', 'add_time'
- go
-
-
-
|