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