Tables [dbo].[DashboardModels]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:20:02 AM Thursday, March 21, 2019
Last Modified1:20:15 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_DashboardModels_AccountID_Model: AccountID\ModelForeign Keys FK_DashboardModels_AccountID_Account_AccountID: [dbo].[Account].AccountIDAccountIDint4
False
Cluster Primary Key PK_DashboardModels_AccountID_Model: AccountID\ModelModelvarchar(201)201
False
DevicesPerModelbigint8
False
PagesPerModelbigint8
False
KeyNameKey ColumnsUnique
Cluster Primary Key PK_DashboardModels_AccountID_Model: AccountID\ModelPK_DashboardModels_AccountID_ModelAccountID, Model
True
NameUpdateDeleteColumns
FK_DashboardModels_AccountID_Account_AccountIDCascadeCascadeAccountID->[dbo].[Account].[AccountID]
CREATE TABLE [dbo].[DashboardModels]
(
[AccountID] [int] NOT NULL,
[Model] [varchar] (201) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DevicesPerModel] [bigint] NOT NULL,
[PagesPerModel] [bigint] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DashboardModels] ADD CONSTRAINT [PK_DashboardModels_AccountID_Model] PRIMARY KEY CLUSTERED  ([AccountID], [Model]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DashboardModels] ADD CONSTRAINT [FK_DashboardModels_AccountID_Account_AccountID] FOREIGN KEY ([AccountID]) REFERENCES [dbo].[Account] ([AccountID]) ON DELETE CASCADE ON UPDATE CASCADE
GO