Tables [dbo].[AccountProfilePresetPhoneNumber]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created8:20:47 AM Friday, December 7, 2018
Last Modified8:20:48 AM Friday, December 7, 2018
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_AccountProfilePresetPhoneNumber: AccountProfilePresetPhoneNumberIDAccountProfilePresetPhoneNumberIDint4
No
1 - 1
Foreign Keys FK_AccountProfilePresetPhoneNumber_AccountProfilePreset: [dbo].[AccountProfilePreset].AccountProfilePresetFIDIndexes IX_AccountProfilePresetPhoneNumber_AccountProfilePresetFID: AccountProfilePresetFIDAccountProfilePresetFIDint4
No
Foreign Keys FK_AccountProfilePresetPhoneNumber_CountryCodeStandard: [dbo].[CountryCodeStandard].CountryCodeStandardFIDCountryCodeStandardFIDint4
Yes
AreaCode[dbo].[PhoneAreaCode]4
Yes
LocalNumber[dbo].[PhoneLocalNumber]20
Yes
Extension[dbo].[PhoneExtension]10
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK_AccountProfilePresetPhoneNumber: AccountProfilePresetPhoneNumberIDPK_AccountProfilePresetPhoneNumberAccountProfilePresetPhoneNumberID
Yes
IX_AccountProfilePresetPhoneNumber_AccountProfilePresetFIDAccountProfilePresetFID
Yes
Foreign Keys Foreign Keys
NameDeleteColumns
FK_AccountProfilePresetPhoneNumber_AccountProfilePresetCascadeAccountProfilePresetFID->[dbo].[AccountProfilePreset].[AccountProfilePresetID]
FK_AccountProfilePresetPhoneNumber_CountryCodeStandardCountryCodeStandardFID->[dbo].[CountryCodeStandard].[CountryCodeStandardID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[AccountProfilePresetPhoneNumber]
(
[AccountProfilePresetPhoneNumberID] [int] NOT NULL IDENTITY(1, 1),
[AccountProfilePresetFID] [int] NOT NULL,
[CountryCodeStandardFID] [int] NULL,
[AreaCode] [dbo].[PhoneAreaCode] NULL,
[LocalNumber] [dbo].[PhoneLocalNumber] NULL,
[Extension] [dbo].[PhoneExtension] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfilePresetPhoneNumber] ADD CONSTRAINT [PK_AccountProfilePresetPhoneNumber] PRIMARY KEY NONCLUSTERED  ([AccountProfilePresetPhoneNumberID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_AccountProfilePresetPhoneNumber_AccountProfilePresetFID] ON [dbo].[AccountProfilePresetPhoneNumber] ([AccountProfilePresetFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountProfilePresetPhoneNumber] ADD CONSTRAINT [FK_AccountProfilePresetPhoneNumber_AccountProfilePreset] FOREIGN KEY ([AccountProfilePresetFID]) REFERENCES [dbo].[AccountProfilePreset] ([AccountProfilePresetID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[AccountProfilePresetPhoneNumber] ADD CONSTRAINT [FK_AccountProfilePresetPhoneNumber_CountryCodeStandard] FOREIGN KEY ([CountryCodeStandardFID]) REFERENCES [dbo].[CountryCodeStandard] ([CountryCodeStandardID])
GO
GRANT SELECT ON  [dbo].[AccountProfilePresetPhoneNumber] TO [MssExec]
GRANT INSERT ON  [dbo].[AccountProfilePresetPhoneNumber] TO [MssExec]
GRANT DELETE ON  [dbo].[AccountProfilePresetPhoneNumber] TO [MssExec]
GRANT UPDATE ON  [dbo].[AccountProfilePresetPhoneNumber] TO [MssExec]
GO
Uses