|
|
|
|
|
|
|
|
|
|
|
|
|
|
/****** 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](
|
|
|
|
|
[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [int] IDENTITY(1,1) NOT NULL,
|
|
|
|
|
[<EFBFBD>ʼ<EFBFBD>ID] [varchar](80) NOT NULL,
|
|
|
|
|
[<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD>Դ] [varchar](100) NULL,
|
|
|
|
|
[<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [text] NULL,
|
|
|
|
|
[<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [text] NULL,
|
|
|
|
|
[<EFBFBD>ʼ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [datetime] NULL,
|
|
|
|
|
[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [varchar](100) NULL,
|
|
|
|
|
[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD>] [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,
|
|
|
|
|
[<EFBFBD><EFBFBD>ע] [varchar](800) NULL,
|
|
|
|
|
[<EFBFBD>յ<EFBFBD><EFBFBD>걨<EFBFBD><EFBFBD><EFBFBD><EFBFBD>] [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
|
|
|
|
|
(
|
|
|
|
|
[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>] 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
|
|
|
|
|
|
|
|
|
|
|