USE [ButcherTraceBack]
GO

/****** Object:  Table [dbo].[CarcassTraceInfo]    Script Date: 2018/4/14 13:56:41 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].[CarcassTraceInfo](
	[Code] [nvarchar](50) NOT NULL,
	[Goods_Name] [nvarchar](50) NULL,
	[ProductDate] [nvarchar](50) NULL,
	[ExpirationTime] [nvarchar](50) NULL,
	[ProductCompany] [nvarchar](500) NULL,
	[CompanyAddress] [nvarchar](500) NULL,
	[CompanyTel] [nvarchar](50) NULL,
	[PigFarmAddress] [nvarchar](500) NULL,
	[TestingNo] [nvarchar](100) NULL,
	[TestingResult] [nvarchar](50) NULL,
	[TestingMan] [nvarchar](50) NULL,
	[Farmer] [nvarchar](50) NULL,
	[ButcherBatch] [nvarchar](50) NULL,
	[ButcherTime] [nvarchar](50) NULL,
	[InStoreDate] [nvarchar](50) NULL,
	[SendDate] [nvarchar](50) NULL,
	[SendCustomer] [nvarchar](50) NULL,
	[CarNo] [nvarchar](50) NULL,
 CONSTRAINT [PK_CarcassTraceInfo] PRIMARY KEY CLUSTERED 
(
	[Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

CREATE TABLE [dbo].[FreshTraceBack](
	[Code] [nvarchar](50) NOT NULL,
	[Goods_Name] [nvarchar](50) NULL,
	[Goods_Spec] [nvarchar](50) NULL,
	[Weight] [nvarchar](50) NULL,
	[ButcherDate] [nvarchar](50) NULL,
	[ProductDate] [nvarchar](50) NULL,
	[Farm_Name] [nvarchar](500) NULL,
	[TestingResult] [nvarchar](50) NULL,
	[TestingMan] [nvarchar](50) NULL,
	[ProductBatch] [nvarchar](50) NULL,
	[InStoreDate] [nvarchar](50) NULL,
	[SendDate] [nvarchar](50) NULL,
	[SendCustomer] [nvarchar](50) NULL,
	[CarNo] [nvarchar](50) NULL,
 CONSTRAINT [PK_FreshTraceBack] PRIMARY KEY CLUSTERED 
(
	[Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]


CREATE TABLE [dbo].[BeiHaiTraceBack](
	[Code] [nvarchar](50) NOT NULL,
	[GoodsImage] [ntext] NULL,
	[UseMedicineImage] [ntext] NULL,
	[ImmunityImage] [ntext] NULL,
	[QuarantinePassImage] [ntext] NULL,
	[GoodsPassImage] [ntext] NULL,
	[ExpirationTime] [nvarchar](50) NULL,
	[CutUpDate] [nvarchar](50) NULL,

 CONSTRAINT [PK_BeiHaiTraceBack] PRIMARY KEY CLUSTERED 
(
	[Code] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) 
 
GO


GO


