You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.1 KiB
Transact-SQL

/****** Object: Table [dbo].[t_op_seae_td_file] Script Date: 01/23/2018 14:34:51 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[t_op_seae_td_file](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ReportID] [varchar](60) NULL,
[fileType] [varchar](20) NULL,
[ftp_filename] [varchar](200) NULL,
[lastmodi_date] [datetime] NULL,
[filesize] [varchar](15) NULL,
[download_ok] [bit] NULL,
[download_date] [datetime] NULL,
[remark] [varchar](500) NULL,
[local_path] [varchar](300) NULL,
[deal_ok] [bit] NULL,
[download_failuretimes] [int] NOT NULL,
[download_failure_notified] [bit] NOT NULL,
[guadan_fullPath] [varchar](400) NULL,
CONSTRAINT [PK_t_op_seae_td_file] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY],
CONSTRAINT [IX_t_op_seae_td_file] UNIQUE NONCLUSTERED
(
[ftp_filename] ASC,
[lastmodi_date] 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
SET ANSI_PADDING OFF
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'ftp文件名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_td_file', @level2type=N'COLUMN',@level2name=N'ftp_filename'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'最后修改日期' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_td_file', @level2type=N'COLUMN',@level2name=N'lastmodi_date'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'下载失败是否已发通知' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N't_op_seae_td_file', @level2type=N'COLUMN',@level2name=N'download_failure_notified'
GO
ALTER TABLE [dbo].[t_op_seae_td_file] ADD CONSTRAINT [DF_t_op_seae_td_file_download_failuretimes] DEFAULT ((0)) FOR [download_failuretimes]
GO
ALTER TABLE [dbo].[t_op_seae_td_file] ADD CONSTRAINT [DF_t_op_seae_td_file_download_failure_notified] DEFAULT ((0)) FOR [download_failure_notified]
GO