Browse Source

更新 'data/address.sql'

master
童毓泽 4 years ago
parent
commit
d8ebcdba6f
2 changed files with 111 additions and 111 deletions
  1. +111
    -111
      data/address.sql

data/tb_address.sql → data/address.sql View File

@ -1,111 +1,111 @@
--
create table tb_address (
id int identity, --ID
userid int null default 0, --ID
name nvarchar(100) null, --
mobile nvarchar(20) null default'', --
zipcode nvarchar(20) null default'', --
province nvarchar(100) null default'', --
city nvarchar(100) null default'', --
area nvarchar(100) null default'', --
xxaddress nvarchar(255) null default'', --
paixu int null default 0, --
state int null default 0, --{0/1/}
stateaddress int null default 0, --{0/1/}
add_time datetime null default getdate(), --
constraint PK_TB_ADDRESS primary key (id)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'自增阿弟',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'会员ID',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'userid'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'收件人',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'name'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'联系电话',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'mobile'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'邮政编码',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'zipcode'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'province'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'city'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'area'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'详细地址',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'xxaddress'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'排序',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'paixu'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'是否设为默认收货地址{0/是,1/否}',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'state'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'是否为有效地址{0/是,1/否}',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'stateaddress'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'地址创建日期',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'add_time'
go
--
create table tb_address (
id int identity, --ID
userid int null default 0, --ID
name nvarchar(100) null, --
mobile nvarchar(20) null default'', --
zipcode nvarchar(20) null default'', --
province nvarchar(100) null default'', --
city nvarchar(100) null default'', --
area nvarchar(100) null default'', --
xxaddress nvarchar(255) null default'', --
paixu int null default 0, --
state int null default 0, --{0/1/}
stateaddress int null default 0, --{0/1/}
add_time datetime null default getdate(), --
constraint PK_TB_ADDRESS primary key (id)
)
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'自增阿弟',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'id'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'会员ID',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'userid'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'收件人',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'name'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'联系电话',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'mobile'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'邮政编码',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'zipcode'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'province'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'city'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'area'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'详细地址',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'xxaddress'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'排序',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'paixu'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'是否设为默认收货地址{0/是,1/否}',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'state'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'是否为有效地址{0/是,1/否}',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'stateaddress'
go
declare @CurrentUser sysname
select @CurrentUser = user_name()
execute sp_addextendedproperty 'MS_Description',
'地址创建日期',
'user', @CurrentUser, 'table', 'tb_address', 'column', 'add_time'
go

Loading…
Cancel
Save