Tables [dbo].[SakariContactSysuserMap]
Properties
PropertyValue
Row Count (~)0
Created8:43:58 AM Thursday, December 5, 2024
Last Modified8:55:20 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
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
Subscribedbit1
No
((0))
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,
[Subscribed] [bit] NOT NULL CONSTRAINT [DF_SakariContactSysuserMap_Subscribed] DEFAULT ((0))
) 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