/****** Object: Table [dbo].[t_op_task_mailque] Script Date: 12/22/2017 15:57:59 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[t_op_task_mailque]( [id] [int] IDENTITY(1,1) NOT NULL, [qid] [varchar](20) NOT NULL, [任务编号] [varchar](60) NULL, [任务类型] [varchar](20) NULL, [收件人] [varchar](500) NULL, [邮件主题] [varchar](200) NULL, [附件名称] [varchar](600) NULL, [邮件内容] [text] NULL, [邮件签名] [varchar](60) NULL, [单据类型] [varchar](40) NULL, [编号] [varchar](20) NULL, [主提单号] [varchar](20) NULL, [发件人] [varchar](20) NULL, [发件人IP] [varchar](30) NULL, [创建时间] [datetime] NOT NULL, [邮件ID] [varchar](100) NULL, [状态] [varchar](20) NULL, [是否完成] [bit] NOT NULL, [完成时间] [datetime] NULL, CONSTRAINT [PK_t_op_task_mailque] 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] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] GO SET ANSI_PADDING OFF GO ALTER TABLE [dbo].[t_op_task_mailque] ADD CONSTRAINT [DF_t_op_task_mailque_创建时间] DEFAULT (getdate()) FOR [创建时间] GO ALTER TABLE [dbo].[t_op_task_mailque] ADD CONSTRAINT [DF_t_op_task_mailque_是否完成] DEFAULT ((0)) FOR [是否完成] GO