|
|
--相册
|
|
create table tb_albums (
|
|
id int identity, --自增ID
|
|
paixu int null default 0, --排序
|
|
guid nvarchar(50) null, --guid
|
|
big_img nvarchar(255) null, --大图路径
|
|
small_img nvarchar(255) null, --缩略图路径
|
|
remark nvarchar(500) null default '', --备注
|
|
constraint PK_TB_ALBUMS primary key (id)
|
|
)
|
|
go
|
|
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'自增ID',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'id'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'排序',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'paixu'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'guid',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'guid'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'大图路径',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'big_img'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'缩略图路径',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'small_img'
|
|
go
|
|
declare @CurrentUser sysname
|
|
select @CurrentUser = user_name()
|
|
execute sp_addextendedproperty 'MS_Description',
|
|
'备注',
|
|
'user', @CurrentUser, 'table', 'tb_albums', 'column', 'remark'
|
|
go
|