CREATE TABLE [dbo].[DashboardDeviceTypes]
(
[AccountID] [int] NOT NULL,
[DeviceType] [varchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DevicesPerDeviceType] [bigint] NOT NULL,
[PagesPerDeviceType] [bigint] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DashboardDeviceTypes] ADD CONSTRAINT [PK_DashboardDeviceTypes_AccountID_DeviceType] PRIMARY KEY CLUSTERED ([AccountID], [DeviceType]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[DashboardDeviceTypes] ADD CONSTRAINT [FK_DashboardDeviceTypes_AccountID_Account_AccountID] FOREIGN KEY ([AccountID]) REFERENCES [dbo].[Account] ([AccountID]) ON DELETE CASCADE ON UPDATE CASCADE
GO