CREATE TABLE [dbo].[Sys_DataInTemp](
	[TempId] [nvarchar](50) NOT NULL,
	[ProjectId] [nvarchar](50) NULL,
	[UserId] [nvarchar](50) NULL,
	[Time] [datetime] NULL,
	[RowNo] [int] NULL,
	[ToopValue] [nvarchar](2000) NULL,
	[Type] [nvarchar](50) NULL,
	[Value1] [nvarchar](100) NULL,
	[Value2] [nvarchar](100) NULL,
	[Value3] [nvarchar](100) NULL,
	[Value4] [nvarchar](100) NULL,
	[Value5] [nvarchar](100) NULL,
	[Value6] [nvarchar](100) NULL,
	[Value7] [nvarchar](100) NULL,
	[Value8] [nvarchar](100) NULL,
	[Value9] [nvarchar](100) NULL,
	[Value10] [nvarchar](100) NULL,
	[Value11] [nvarchar](100) NULL,
	[Value12] [nvarchar](100) NULL,
	[Value13] [nvarchar](100) NULL,
	[Value14] [nvarchar](100) NULL,
	[Value15] [nvarchar](100) NULL,
	[Value16] [nvarchar](100) NULL,
	[Value17] [nvarchar](100) NULL,
	[Value18] [nvarchar](100) NULL,
	[Value19] [nvarchar](100) NULL,
	[Value20] [nvarchar](100) NULL,
 CONSTRAINT [PK_Sys_DataInTemp] PRIMARY KEY CLUSTERED 
(
	[TempId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
GO

ALTER TABLE [dbo].[Sys_DataInTemp]  WITH CHECK ADD  CONSTRAINT [FK_Sys_DataInTemp_Base_Project] FOREIGN KEY([ProjectId])
REFERENCES [dbo].[Base_Project] ([ProjectId])
GO

ALTER TABLE [dbo].[Sys_DataInTemp] CHECK CONSTRAINT [FK_Sys_DataInTemp_Base_Project]
GO

ALTER TABLE [dbo].[Sys_DataInTemp]  WITH CHECK ADD  CONSTRAINT [FK_Sys_DataInTemp_Sys_User] FOREIGN KEY([UserId])
REFERENCES [dbo].[Sys_User] ([UserId])
GO

ALTER TABLE [dbo].[Sys_DataInTemp] CHECK CONSTRAINT [FK_Sys_DataInTemp_Sys_User]
GO


