Tables [dbo].[SakariConversation]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created8:43:58 AM Thursday, December 5, 2024
Last Modified8:44:48 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_SakariConversationID: SakariConversationIDSakariConversationIDint4
No
1 - 1
Foreign Keys FK_SakariConversation_SakariAccount: [dbo].[SakariAccount].SakariAccountFIDIndexes IX_SakariConversation_SakariAccountFID_ConversationID: SakariAccountFID\ConversationIDSakariAccountFIDint4
No
Foreign Keys FK_SakariConversation_SakariContactFID: [dbo].[SakariContact].SakariContactFIDSakariContactFIDint4
No
Indexes IX_SakariConversation_SakariAccountFID_ConversationID: SakariAccountFID\ConversationIDConversationIDvarchar(32)32
No
ClosesAtdatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_SakariConversationID: SakariConversationIDPK_SakariConversationIDSakariConversationID
Yes
IX_SakariConversation_SakariAccountFID_ConversationIDSakariAccountFID, ConversationID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SakariConversation_SakariAccountSakariAccountFID->[dbo].[SakariAccount].[SakariAccountID]
FK_SakariConversation_SakariContactFIDSakariContactFID->[dbo].[SakariContact].[SakariContactID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SakariConversation]
(
[SakariConversationID] [int] NOT NULL IDENTITY(1, 1),
[SakariAccountFID] [int] NOT NULL,
[SakariContactFID] [int] NOT NULL,
[ConversationID] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[ClosesAt] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariConversation] ADD CONSTRAINT [PK_SakariConversationID] PRIMARY KEY CLUSTERED  ([SakariConversationID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariConversation] ADD CONSTRAINT [IX_SakariConversation_SakariAccountFID_ConversationID] UNIQUE NONCLUSTERED  ([SakariAccountFID], [ConversationID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariConversation] ADD CONSTRAINT [FK_SakariConversation_SakariAccount] FOREIGN KEY ([SakariAccountFID]) REFERENCES [dbo].[SakariAccount] ([SakariAccountID])
GO
ALTER TABLE [dbo].[SakariConversation] ADD CONSTRAINT [FK_SakariConversation_SakariContactFID] FOREIGN KEY ([SakariContactFID]) REFERENCES [dbo].[SakariContact] ([SakariContactID])
GO
GRANT SELECT ON  [dbo].[SakariConversation] TO [MssExec]
GRANT INSERT ON  [dbo].[SakariConversation] TO [MssExec]
GRANT DELETE ON  [dbo].[SakariConversation] TO [MssExec]
GRANT UPDATE ON  [dbo].[SakariConversation] TO [MssExec]
GO
Uses
Used By