CREATE TABLE [dbo].[ShShipMethods]
(
[ShipMethodID] [int] NOT NULL,
[ShipMethod] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Description] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Active] [bit] NOT NULL,
[Locks] [int] NOT NULL CONSTRAINT [DF_ShShipMethods_Locks] DEFAULT ((0)),
[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_ShShipMethods_CreateDate] DEFAULT (getdate()),
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ShShipMethods_LastUpdate] DEFAULT (getdate()),
[timestamp] [timestamp] NULL,
[ShippingCompanyID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShShipMethods] ADD CONSTRAINT [PK_ShShipMethods] PRIMARY KEY CLUSTERED ([ShipMethodID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShShipMethods] ADD CONSTRAINT [FK_ShShipMethods_ShippingCompanyID_ShShippingCompanies] FOREIGN KEY ([ShippingCompanyID]) REFERENCES [dbo].[ShShippingCompanies] ([ShippingCompanyID])
GO