Tables [dbo].[ShipmentStatus]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created3:42:52 PM Tuesday, May 8, 2012
Last Modified3:51:07 PM Thursday, December 6, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ShipmentStatus: ShipmentStatusIDShipmentStatusIDint4
No
1 - 1
Indexes IX_ShipmentStatus_Description: DescriptionDescriptionvarchar(64)64
No
Foreign Keys FK_ShipmentStatus_ShipmentStatusKeyDate: [dbo].[ShipmentStatusKeyDate].ShipmentStatusKeyDateFIDShipmentStatusKeyDateFIDint4
Yes
Foreign Keys FK_ShipmentStatus_OrderStatus: [dbo].[OrderStatus].OrderStatusFIDOrderStatusFIDint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_ShipmentStatus: ShipmentStatusIDPK_ShipmentStatusShipmentStatusID
Yes
IX_ShipmentStatus_DescriptionDescription
Yes
Foreign Keys Foreign Keys
NameColumns
FK_ShipmentStatus_OrderStatusOrderStatusFID->[dbo].[OrderStatus].[PriKey]
FK_ShipmentStatus_ShipmentStatusKeyDateShipmentStatusKeyDateFID->[dbo].[ShipmentStatusKeyDate].[ShipmentStatusKeyDateID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
DescriptionHolds a vanline shipment status.
DescriptionCOLUMNShipmentStatusIDPrimary key of the ShipmentStatus table.
DescriptionCOLUMNShipmentStatusKeyDateFIDForeign key to shipment status key date table.
SQL Script
CREATE TABLE [dbo].[ShipmentStatus]
(
[ShipmentStatusID] [int] NOT NULL IDENTITY(1, 1),
[Description] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ShipmentStatusKeyDateFID] [int] NULL,
[OrderStatusFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatus] ADD CONSTRAINT [PK_ShipmentStatus] PRIMARY KEY NONCLUSTERED  ([ShipmentStatusID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatus] ADD CONSTRAINT [IX_ShipmentStatus_Description] UNIQUE NONCLUSTERED  ([Description]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ShipmentStatus] ADD CONSTRAINT [FK_ShipmentStatus_OrderStatus] FOREIGN KEY ([OrderStatusFID]) REFERENCES [dbo].[OrderStatus] ([PriKey])
GO
ALTER TABLE [dbo].[ShipmentStatus] ADD CONSTRAINT [FK_ShipmentStatus_ShipmentStatusKeyDate] FOREIGN KEY ([ShipmentStatusKeyDateFID]) REFERENCES [dbo].[ShipmentStatusKeyDate] ([ShipmentStatusKeyDateID])
GO
GRANT SELECT ON  [dbo].[ShipmentStatus] TO [MssExec]
GRANT INSERT ON  [dbo].[ShipmentStatus] TO [MssExec]
GRANT DELETE ON  [dbo].[ShipmentStatus] TO [MssExec]
GRANT UPDATE ON  [dbo].[ShipmentStatus] TO [MssExec]
GO
EXEC sp_addextendedproperty N'Description', N'Holds a vanline shipment status.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentStatus', NULL, NULL
GO
EXEC sp_addextendedproperty N'Description', N'Primary key of the ShipmentStatus table.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentStatus', 'COLUMN', N'ShipmentStatusID'
GO
EXEC sp_addextendedproperty N'Description', N'Foreign key to shipment status key date table.', 'SCHEMA', N'dbo', 'TABLE', N'ShipmentStatus', 'COLUMN', N'ShipmentStatusKeyDateFID'
GO
Uses
Used By