Tables [dbo].[RecentAccounts]
PropertyValue
Row Count (~)0
Created1:20:03 AM Thursday, March 21, 2019
Last Modified1:20:26 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_RecentAccounts_ID: IDIDint4
False
1 - 1
Foreign Keys FK_RecentAccounts_ContactID_Contact_ContactID: [dbo].[Contact].ContactIDContactIDint4
False
Foreign Keys FK_RecentAccounts_VisitedAccountID_Account_AccountID: [dbo].[Account].VisitedAccountIDVisitedAccountIDint4
False
Rankint4
True
Datedatetime8
True
KeyNameKey ColumnsUnique
Cluster Primary Key PK_RecentAccounts_ID: IDPK_RecentAccounts_IDID
True
NameDeleteColumns
FK_RecentAccounts_ContactID_Contact_ContactIDContactID->[dbo].[Contact].[ContactID]
FK_RecentAccounts_VisitedAccountID_Account_AccountIDCascadeVisitedAccountID->[dbo].[Account].[AccountID]
CREATE TABLE [dbo].[RecentAccounts]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[ContactID] [int] NOT NULL,
[VisitedAccountID] [int] NOT NULL,
[Rank] [int] NULL,
[Date] [datetime] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RecentAccounts] ADD CONSTRAINT [PK_RecentAccounts_ID] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RecentAccounts] ADD CONSTRAINT [FK_RecentAccounts_ContactID_Contact_ContactID] FOREIGN KEY ([ContactID]) REFERENCES [dbo].[Contact] ([ContactID])
GO
ALTER TABLE [dbo].[RecentAccounts] ADD CONSTRAINT [FK_RecentAccounts_VisitedAccountID_Account_AccountID] FOREIGN KEY ([VisitedAccountID]) REFERENCES [dbo].[Account] ([AccountID]) ON DELETE CASCADE
GO