--优惠券表 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