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.

51 rivejä
1.4 KiB

--
create table tb_couponuser (
id int identity, --
paixu int null default 0, --
couponid int null default 0, --
name nvarchar(255) null default '', --
couponstatus int null default 0, --使(0使/1使)
add_time datetime null default getdate(), --
constraint PK_TB_COUPONUSER primary key (id)
)
go
execute sp_addextendedproperty 'MS_Description',
'自增阿弟',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'id'
go
execute sp_addextendedproperty 'MS_Description',
'排序',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'paixu'
go
execute sp_addextendedproperty 'MS_Description',
'优惠券阿弟',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'couponid'
go
execute sp_addextendedproperty 'MS_Description',
'领取优惠券用户名',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'name'
go
execute sp_addextendedproperty 'MS_Description',
'优惠券使用状态(0未使用/1已使用)',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'couponstatus'
go
execute sp_addextendedproperty 'MS_Description',
'添加时间',
'user', 'dbo', 'table', 'tb_couponuser', 'column', 'add_time'
go