Tables [dbo].[ContainerHistory]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created10:56:42 AM Monday, May 4, 2015
Last Modified10:56:49 AM Monday, May 4, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ContainerHistory: ContainerHistoryIDContainerHistoryIDint4
No
1 - 1
Foreign Keys FK_ContainerHistory_Container: [dbo].[Container].ContainerFIDContainerFIDint4
No
Foreign Keys FK_ContainerHistory_Order: [dbo].[Orders].OrderFIDOrderFIDint4
Yes
ActivityDescriptionvarchar(32)32
No
OldValuevarchar(256)256
Yes
NewValuevarchar(256)256
Yes
Foreign Keys FK_ContainerHistory_SysUser: [dbo].[Sysuser].SysuserFIDSysuserFIDint4
No
DateEntereddatetime8
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_ContainerHistory: ContainerHistoryIDPK_ContainerHistoryContainerHistoryID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ContainerHistory_ContainerCascadeContainerFID->[dbo].[Container].[ContainerID]
FK_ContainerHistory_OrderOrderFID->[dbo].[Orders].[PriKey]
FK_ContainerHistory_SysUserSysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ContainerHistory]
(
[ContainerHistoryID] [int] NOT NULL IDENTITY(1, 1),
[ContainerFID] [int] NOT NULL,
[OrderFID] [int] NULL,
[ActivityDescription] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[OldValue] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[NewValue] [varchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SysuserFID] [int] NOT NULL,
[DateEntered] [datetime] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ContainerHistory] ADD CONSTRAINT [PK_ContainerHistory] PRIMARY KEY NONCLUSTERED  ([ContainerHistoryID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ContainerHistory] ADD CONSTRAINT [FK_ContainerHistory_Container] FOREIGN KEY ([ContainerFID]) REFERENCES [dbo].[Container] ([ContainerID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ContainerHistory] ADD CONSTRAINT [FK_ContainerHistory_Order] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[ContainerHistory] ADD CONSTRAINT [FK_ContainerHistory_SysUser] FOREIGN KEY ([SysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ContainerHistory] TO [MssExec]
GRANT INSERT ON  [dbo].[ContainerHistory] TO [MssExec]
GRANT DELETE ON  [dbo].[ContainerHistory] TO [MssExec]
GRANT UPDATE ON  [dbo].[ContainerHistory] TO [MssExec]
GO
Uses