Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

66 wiersze
2.1 KiB

--
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