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.

65 lines
1.8 KiB
Transact-SQL

/****** Object: Table [dbo].[t_op_seae_edi_mail] Script Date: 10/31/2017 11:44:20 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[t_op_seae_edi_mail](
[序号] [int] IDENTITY(1,1) NOT NULL,
[邮件ID] [varchar](80) NOT NULL,
[邮件来源] [varchar](100) NULL,
[邮件主题] [text] NULL,
[邮件内容] [text] NULL,
[邮件发送日期] [datetime] NULL,
[附件名称] [varchar](100) NULL,
[处理时间] [datetime] NULL,
[状态] [nvarchar](50) NOT NULL,
[hasAttachment] [bit] NOT NULL,
[isRead] [bit] NULL,
[isDeleted] [bit] NULL,
[isReply] [bit] NOT NULL,
[mailFoder] [nchar](20) NULL,
[mailtype] [int] NULL,
[备注] [varchar](800) NULL,
[舱单申报编号] [varchar](12) NULL,
[HBLNO] [varchar](20) NULL,
[EDISTATUS] [varchar](20) NULL,
[ISMATCHED] [smallint] NULL,
[FTPSTATUS] [text] NULL,
[folderID] [int] NULL,
[resourceName] [text] NULL,
[isHtml] [bit] NULL,
[mailCC] [varchar](300) NULL,
[mailAccount] [varchar](80) NULL,
[MailTo] [varchar](100) NULL,
CONSTRAINT [PK_t_op_seae_edi_mail] PRIMARY KEY CLUSTERED
(
[序号] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[t_op_seae_edi_mail] ADD CONSTRAINT [DF_t_op_seae_edi_mail_hasAttachment_1] DEFAULT ((0)) FOR [hasAttachment]
GO
ALTER TABLE [dbo].[t_op_seae_edi_mail] ADD CONSTRAINT [DF_t_op_seae_edi_mail_isRead_1] DEFAULT ((0)) FOR [isRead]
GO
ALTER TABLE [dbo].[t_op_seae_edi_mail] ADD CONSTRAINT [DF_t_op_seae_edi_mail_isDeleted_1] DEFAULT ((0)) FOR [isDeleted]
GO
ALTER TABLE [dbo].[t_op_seae_edi_mail] ADD CONSTRAINT [DF_t_op_seae_edi_mail_isReply_1] DEFAULT ((0)) FOR [isReply]
GO