Tables [dbo].[SakariContact]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created7:26:50 PM Tuesday, June 11, 2024
Last Modified7:30:05 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_SakariContact: SakariContactIDSakariContactIDint4
No
1 - 1
Foreign Keys FK_SakariContact_SakariAccount: [dbo].[SakariAccount].SakariAccountFIDIndexes IX_SakariContact_SakariAccountFID_ContactID: SakariAccountFID\ContactIDIndexes IX_SakariContact_SakariAccountFID_PhoneNumber: SakariAccountFID\PhoneNumberSakariAccountFIDint4
No
ContactNamevarchar(128)128
Yes
Indexes IX_SakariContact_SakariAccountFID_ContactID: SakariAccountFID\ContactIDContactIDvarchar(32)32
No
Indexes IX_SakariContact_SakariAccountFID_PhoneNumber: SakariAccountFID\PhoneNumberPhoneNumbervarchar(16)16
No
LastUpdatedAtdatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_SakariContact: SakariContactIDPK_SakariContactSakariContactID
Yes
IX_SakariContact_SakariAccountFID_ContactIDSakariAccountFID, ContactID
Yes
IX_SakariContact_SakariAccountFID_PhoneNumberSakariAccountFID, PhoneNumber
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SakariContact_SakariAccountSakariAccountFID->[dbo].[SakariAccount].[SakariAccountID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SakariContact]
(
[SakariContactID] [int] NOT NULL IDENTITY(1, 1),
[SakariAccountFID] [int] NOT NULL,
[ContactName] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[ContactID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[PhoneNumber] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastUpdatedAt] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContact] ADD CONSTRAINT [PK_SakariContact] PRIMARY KEY CLUSTERED  ([SakariContactID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_SakariContact_SakariAccountFID_ContactID] ON [dbo].[SakariContact] ([SakariAccountFID], [ContactID]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_SakariContact_SakariAccountFID_PhoneNumber] ON [dbo].[SakariContact] ([SakariAccountFID], [PhoneNumber]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContact] ADD CONSTRAINT [FK_SakariContact_SakariAccount] FOREIGN KEY ([SakariAccountFID]) REFERENCES [dbo].[SakariAccount] ([SakariAccountID])
GO
GRANT SELECT ON  [dbo].[SakariContact] TO [MssExec]
GRANT INSERT ON  [dbo].[SakariContact] TO [MssExec]
GRANT DELETE ON  [dbo].[SakariContact] TO [MssExec]
GRANT UPDATE ON  [dbo].[SakariContact] TO [MssExec]
GO
Uses
Used By