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.

63 lines
1.5 KiB
Transact-SQL

/****** Object: Table [dbo].[t_op_td_ctn] Script Date: 01/23/2018 14:36:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[t_op_td_ctn](
[ctn_id] [int] IDENTITY(1,1) NOT FOR REPLICATION NOT NULL,
[base_reportid] [varchar](60) NOT NULL,
[编号] [varchar](12) NULL,
[代码] [varchar](4) NULL,
[尺寸] [varchar](2) NULL,
[箱型] [varchar](10) NULL,
[数量] [int] NULL,
[TEU] [int] NULL,
[表现形式] [varchar](20) NULL,
[箱号] [varchar](30) NULL,
[封号] [varchar](30) NULL,
[件数] [int] NULL,
[包装] [varchar](20) NULL,
[重量] [numeric](18, 3) NULL,
[尺码] [numeric](18, 4) NULL,
[品名] [varchar](20) NULL,
[唛头] [varchar](600) NULL,
[备注] [varchar](30) NULL,
[A] [bit] NULL,
[B] [bit] NULL,
[] [bit] NULL,
[] [bit] NULL,
[货物描述] [varchar](600) NULL,
[提单号] [varchar](20) NULL,
[场站] [varchar](20) NULL,
[车队] [varchar](20) NULL,
[对帐] [bit] NULL,
[核销] [bit] NULL,
[发箱日期] [smalldatetime] NULL,
[回箱日期] [smalldatetime] NULL,
[厂址] [varchar](50) NULL,
[称重方式] [varchar](10) NULL,
[称重重量] [numeric](18, 4) NULL,
[VGM联系人] [varchar](20) NULL,
[VGM联系联系方式] [varchar](20) NULL,
[VGM签名] [varchar](20) NULL,
[VGM称重日期] [smalldatetime] NULL,
[称重地点] [varchar](20) NULL,
[录入时间] [datetime] NOT NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
GO
ALTER TABLE [dbo].[t_op_td_ctn] ADD CONSTRAINT [DF_t_op_td_ctn_录入日期] DEFAULT (getdate()) FOR [录入时间]
GO