CREATE TABLE [dbo].[SOShipmentExtTransactions]
(
[SOShipmentExtTransactionID] [int] NOT NULL IDENTITY(1, 1),
[ShipmentID] [int] NOT NULL,
[TrackingNumber] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DeliveryDate] [datetime] NULL,
[Weight] [decimal] (18, 6) NOT NULL,
[ShipMethodID] [int] NULL,
[Freight] [money] NOT NULL,
[FreightCost] [money] NOT NULL,
[EstDeliveryDate] [datetime] NULL,
[ShipmentNotes] [varchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[UpdatorID] [char] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_SOShipmentExtTransactions_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_SOShipmentExtTransactions_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SOShipmentExtTransactions] ADD CONSTRAINT [PK_SOShipmentExtTransactions] PRIMARY KEY CLUSTERED ([SOShipmentExtTransactionID]) ON [PRIMARY]
GO