Tables [dbo].[DashboardDeviceTypes]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:20:02 AM Thursday, March 21, 2019
Last Modified1:20:14 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_DashboardDeviceTypes_AccountID_DeviceType: AccountID\DeviceTypeForeign Keys FK_DashboardDeviceTypes_AccountID_Account_AccountID: [dbo].[Account].AccountIDAccountIDint4
False
Cluster Primary Key PK_DashboardDeviceTypes_AccountID_DeviceType: AccountID\DeviceTypeDeviceTypevarchar(100)100
False
DevicesPerDeviceTypebigint8
False
PagesPerDeviceTypebigint8
False
KeyNameKey ColumnsUnique
Cluster Primary Key PK_DashboardDeviceTypes_AccountID_DeviceType: AccountID\DeviceTypePK_DashboardDeviceTypes_AccountID_DeviceTypeAccountID, DeviceType
True
NameUpdateDeleteColumns
FK_DashboardDeviceTypes_AccountID_Account_AccountIDCascadeCascadeAccountID->[dbo].[Account].[AccountID]
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