表名:ZL_User_Cloud












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1Guiduniqueidentifier160  newid文件Guid
2IDint40    
3UserIDint40    用户更ID
4FileNamenvarchar5000    原始文件名或目录名
5VPathnvarchar5000    所处的虚拟路径
6SFileNamenvarchar1000    文件名称
7FileTypeint40    1,普通文件,2:目录
8CDatedatetime83    创建时间
9FileSizenvarchar5000    文件大小
10UpdateDatedatetime83    最后修改时间

简要说明:

用户云盘表

GO
CREATE TABLE [dbo].[ZL_User_Cloud](
[Guid] [uniqueidentifier] NOT NULL,
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[FileName] [nvarchar](500) NULL,
[VPath] [nvarchar](500) NULL,
[SFileName] [nvarchar](100) NULL,
[FileType] [int] NULL,
[CDate] [datetime] NULL,
[FileSize] [nvarchar](500) NULL,
[UpdateDate] [datetime] NULL,
CONSTRAINT [PK_ZL_User_Cloud_1] PRIMARY KEY CLUSTERED
(
[Guid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ZL_User_Cloud] ADD  CONSTRAINT [DF_ZL_User_Cloud_Guid]  DEFAULT (newid()) FOR [Guid]

--注意:将清空全表数据

detele from ZL_User_Cloud

--注意:将删除整个表

drop table ZL_User_Cloud

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_User_Cloud