Tables [dbo].[Account_Contact]
PropertyValue
Row Count (~)0
Created1:20:00 AM Thursday, March 21, 2019
Last Modified1:20:08 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key PK_Account_Contact_AccountID_ContactID: AccountID\ContactIDForeign Keys FK_Account_Contact_AccountID_Account_AccountID: [dbo].[Account].AccountIDAccountIDint4
False
Cluster Primary Key PK_Account_Contact_AccountID_ContactID: AccountID\ContactIDForeign Keys FK_Account_Contact_ContactID_Contact_ContactID: [dbo].[Contact].ContactIDContactIDint4
False
ViewHierarchybit1
False
((0))
Roletinyint1
False
((0))
LocationAccessTypetinyint1
False
((0))
KeyNameKey ColumnsUnique
Cluster Primary Key PK_Account_Contact_AccountID_ContactID: AccountID\ContactIDPK_Account_Contact_AccountID_ContactIDAccountID, ContactID
True
NameUpdateDeleteColumns
FK_Account_Contact_AccountID_Account_AccountIDCascadeCascadeAccountID->[dbo].[Account].[AccountID]
FK_Account_Contact_ContactID_Contact_ContactIDContactID->[dbo].[Contact].[ContactID]
CREATE TABLE [dbo].[Account_Contact]
(
[AccountID] [int] NOT NULL,
[ContactID] [int] NOT NULL,
[ViewHierarchy] [bit] NOT NULL CONSTRAINT [DF_Account_Contact_ViewHierarchy] DEFAULT ((0)),
[Role] [tinyint] NOT NULL CONSTRAINT [DF_Account_Contact_Role] DEFAULT ((0)),
[LocationAccessType] [tinyint] NOT NULL CONSTRAINT [DF_Account_Contact_LocationAccessType] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Account_Contact] ADD CONSTRAINT [PK_Account_Contact_AccountID_ContactID] PRIMARY KEY CLUSTERED  ([AccountID], [ContactID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Account_Contact] ADD CONSTRAINT [FK_Account_Contact_AccountID_Account_AccountID] FOREIGN KEY ([AccountID]) REFERENCES [dbo].[Account] ([AccountID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
ALTER TABLE [dbo].[Account_Contact] ADD CONSTRAINT [FK_Account_Contact_ContactID_Contact_ContactID] FOREIGN KEY ([ContactID]) REFERENCES [dbo].[Contact] ([ContactID])
GO