SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Upload](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[name] [nvarchar](200) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Upload_name]  DEFAULT (''),
	[folder] [nvarchar](80) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Upload_folder]  DEFAULT (''),
	[suffix] [nvarchar](10) COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Upload_suffix]  DEFAULT (''),
	[isuse] [bit] NOT NULL,
	[useinfo] [text] COLLATE Chinese_PRC_CI_AS NOT NULL CONSTRAINT [DF_Upload_useinfo]  DEFAULT (''),
	[addtime] [datetime] NOT NULL,
	[updatetime] [datetime] NOT NULL,
 CONSTRAINT [PK_Upload] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(主键)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'id'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(保存文件名)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'name'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(所在文件夹)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'folder'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(后缀)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'suffix'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(是否被使用)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'isuse'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(用途详细信息)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'useinfo'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(添加时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'addtime'

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'上传文件保存表-记录表(最后更新时间)' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Upload', @level2type=N'COLUMN', @level2name=N'updatetime'
