Tables [dbo].[SakariContactSysuserMap]
Properties
PropertyValue
Row Count (~)0
Created7:26:50 PM Tuesday, June 11, 2024
Last Modified7:26:50 PM Tuesday, June 11, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_SakariContactSysuserMapID: SakariContactSysuserMapIDSakariContactSysuserMapIDint4
No
1 - 1
Cluster Key IX_SakariContactSysuserMap_SysuserFID_SakariContactFID: SysuserFID\SakariContactFIDForeign Keys FK_SakariContactSysuserMap_Sysuser: [dbo].[Sysuser].SysuserFIDSysuserFIDint4
No
Cluster Key IX_SakariContactSysuserMap_SysuserFID_SakariContactFID: SysuserFID\SakariContactFIDForeign Keys FK_SakariContactSysuserMap_SakariContact: [dbo].[SakariContact].SakariContactFIDSakariContactFIDint4
No
LastReadAtdatetimeoffset10
No
Indexes Indexes
NameColumnsUnique
Primary Key PK_SakariContactSysuserMapID: SakariContactSysuserMapIDPK_SakariContactSysuserMapIDSakariContactSysuserMapID
Yes
Cluster Key IX_SakariContactSysuserMap_SysuserFID_SakariContactFID: SysuserFID\SakariContactFIDIX_SakariContactSysuserMap_SysuserFID_SakariContactFIDSysuserFID, SakariContactFID
Yes
Foreign Keys Foreign Keys
NameColumns
FK_SakariContactSysuserMap_SakariContactSakariContactFID->[dbo].[SakariContact].[SakariContactID]
FK_SakariContactSysuserMap_SysuserSysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[SakariContactSysuserMap]
(
[SakariContactSysuserMapID] [int] NOT NULL IDENTITY(1, 1),
[SysuserFID] [int] NOT NULL,
[SakariContactFID] [int] NOT NULL,
[LastReadAt] [datetimeoffset] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactSysuserMap] ADD CONSTRAINT [PK_SakariContactSysuserMapID] PRIMARY KEY NONCLUSTERED  ([SakariContactSysuserMapID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactSysuserMap] ADD CONSTRAINT [IX_SakariContactSysuserMap_SysuserFID_SakariContactFID] UNIQUE CLUSTERED  ([SysuserFID], [SakariContactFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[SakariContactSysuserMap] ADD CONSTRAINT [FK_SakariContactSysuserMap_SakariContact] FOREIGN KEY ([SakariContactFID]) REFERENCES [dbo].[SakariContact] ([SakariContactID])
GO
ALTER TABLE [dbo].[SakariContactSysuserMap] ADD CONSTRAINT [FK_SakariContactSysuserMap_Sysuser] FOREIGN KEY ([SysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[SakariContactSysuserMap] TO [MssExec]
GRANT INSERT ON  [dbo].[SakariContactSysuserMap] TO [MssExec]
GRANT DELETE ON  [dbo].[SakariContactSysuserMap] TO [MssExec]
GRANT UPDATE ON  [dbo].[SakariContactSysuserMap] TO [MssExec]
GO
Uses
Used By