Tables [dbo].[InternationalCustomsInspectionInformation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created9:06:53 AM Friday, December 7, 2018
Last Modified9:24:35 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_InternationalCustomsInspectionInformation: InternationalCustomsInspectionInformationIDInternationalCustomsInspectionInformationIDint4
No
1 - 1
Foreign Keys FK_InternationalCustomsInspectionInformation_Orders: [dbo].[Orders].OrdersFIDIndexes IX_InternationalCustomsInspectionInformation_OrdersFID: OrdersFIDOrdersFIDint4
No
Foreign Keys FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionLocation: [dbo].[InternationalCustomsInspectionLocation].InternationalCustomsInspectionLocationFIDInternationalCustomsInspectionLocationFIDint4
Yes
Foreign Keys FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionType: [dbo].[InternationalCustomsInspectionType].InternationalCustomsInspectionTypeFIDInternationalCustomsInspectionTypeFIDint4
Yes
Resultsvarchar(512)512
Yes
Notesvarchar(512)512
Yes
Namevarchar(64)64
Yes
LocationCodevarchar(32)32
Yes
IsDeletedbit1
No
((0))
Indexes Indexes
NameColumnsUnique
Primary Key PK_InternationalCustomsInspectionInformation: InternationalCustomsInspectionInformationIDPK_InternationalCustomsInspectionInformationInternationalCustomsInspectionInformationID
Yes
IX_InternationalCustomsInspectionInformation_OrdersFIDOrdersFID
Foreign Keys Foreign Keys
NameColumns
FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionLocationInternationalCustomsInspectionLocationFID->[dbo].[InternationalCustomsInspectionLocation].[InternationalCustomsInspectionLocationID]
FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionTypeInternationalCustomsInspectionTypeFID->[dbo].[InternationalCustomsInspectionType].[InternationalCustomsInspectionTypeID]
FK_InternationalCustomsInspectionInformation_OrdersOrdersFID->[dbo].[Orders].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[InternationalCustomsInspectionInformation]
(
[InternationalCustomsInspectionInformationID] [int] NOT NULL IDENTITY(1, 1),
[OrdersFID] [int] NOT NULL,
[InternationalCustomsInspectionLocationFID] [int] NULL,
[InternationalCustomsInspectionTypeFID] [int] NULL,
[Results] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Notes] [varchar] (512) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[Name] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LocationCode] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsDeleted] [bit] NOT NULL CONSTRAINT [DF_InternationalCustomsInspectionInformation_IsDeleted] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalCustomsInspectionInformation] ADD CONSTRAINT [PK_InternationalCustomsInspectionInformation] PRIMARY KEY NONCLUSTERED  ([InternationalCustomsInspectionInformationID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_InternationalCustomsInspectionInformation_OrdersFID] ON [dbo].[InternationalCustomsInspectionInformation] ([OrdersFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[InternationalCustomsInspectionInformation] ADD CONSTRAINT [FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionLocation] FOREIGN KEY ([InternationalCustomsInspectionLocationFID]) REFERENCES [dbo].[InternationalCustomsInspectionLocation] ([InternationalCustomsInspectionLocationID])
GO
ALTER TABLE [dbo].[InternationalCustomsInspectionInformation] ADD CONSTRAINT [FK_InternationalCustomsInspectionInformation_InternationalCustomsInspectionType] FOREIGN KEY ([InternationalCustomsInspectionTypeFID]) REFERENCES [dbo].[InternationalCustomsInspectionType] ([InternationalCustomsInspectionTypeID])
GO
ALTER TABLE [dbo].[InternationalCustomsInspectionInformation] ADD CONSTRAINT [FK_InternationalCustomsInspectionInformation_Orders] FOREIGN KEY ([OrdersFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
GRANT SELECT ON  [dbo].[InternationalCustomsInspectionInformation] TO [MssExec]
GRANT INSERT ON  [dbo].[InternationalCustomsInspectionInformation] TO [MssExec]
GRANT DELETE ON  [dbo].[InternationalCustomsInspectionInformation] TO [MssExec]
GRANT UPDATE ON  [dbo].[InternationalCustomsInspectionInformation] TO [MssExec]
GO
Uses
Used By