Tables [dbo].[MobileUserLog]
Properties
PropertyValue
Row Count (~)0
Created8:34:14 AM Friday, December 7, 2018
Last Modified8:34:30 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_MobileUserLog: MobileUserLogIDMobileUserLogIDint4
No
1 - 1
Foreign Keys FK_MobileUserLog_MobileAccess: [dbo].[MobileAccess].MobileAccessFIDIndexes IX_MobileUserLog_MobileAccess_Year_Feature: MobileAccessFID\Year\FeatureSetMobileAccessFIDint4
No
Indexes IX_MobileUserLog_MobileAccess_Year_Feature: MobileAccessFID\Year\FeatureSetYearsmallint2
No
Indexes IX_MobileUserLog_MobileAccess_Year_Feature: MobileAccessFID\Year\FeatureSetFeatureSetint4
No
Janint4
No
Febint4
No
Marint4
No
Aprint4
No
Mayint4
No
Junint4
No
Julint4
No
Augint4
No
Sepint4
No
Octint4
No
Novint4
No
Decint4
No
Totalint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_MobileUserLog: MobileUserLogIDPK_MobileUserLogMobileUserLogID
Yes
IX_MobileUserLog_MobileAccess_Year_FeatureMobileAccessFID, Year, FeatureSet
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_MobileUserLog_MobileAccessCascadeMobileAccessFID->[dbo].[MobileAccess].[MobileAccessID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[MobileUserLog]
(
[MobileUserLogID] [int] NOT NULL IDENTITY(1, 1),
[MobileAccessFID] [int] NOT NULL,
[Year] [smallint] NOT NULL,
[FeatureSet] [int] NOT NULL,
[Jan] [int] NOT NULL,
[Feb] [int] NOT NULL,
[Mar] [int] NOT NULL,
[Apr] [int] NOT NULL,
[May] [int] NOT NULL,
[Jun] [int] NOT NULL,
[Jul] [int] NOT NULL,
[Aug] [int] NOT NULL,
[Sep] [int] NOT NULL,
[Oct] [int] NOT NULL,
[Nov] [int] NOT NULL,
[Dec] [int] NOT NULL,
[Total] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileUserLog] ADD CONSTRAINT [PK_MobileUserLog] PRIMARY KEY CLUSTERED  ([MobileUserLogID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileUserLog] ADD CONSTRAINT [IX_MobileUserLog_MobileAccess_Year_Feature] UNIQUE NONCLUSTERED  ([MobileAccessFID], [Year], [FeatureSet]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[MobileUserLog] ADD CONSTRAINT [FK_MobileUserLog_MobileAccess] FOREIGN KEY ([MobileAccessFID]) REFERENCES [dbo].[MobileAccess] ([MobileAccessID]) ON DELETE CASCADE
GO
GRANT SELECT ON  [dbo].[MobileUserLog] TO [MssExec]
GRANT INSERT ON  [dbo].[MobileUserLog] TO [MssExec]
GRANT DELETE ON  [dbo].[MobileUserLog] TO [MssExec]
GRANT UPDATE ON  [dbo].[MobileUserLog] TO [MssExec]
GO
Uses