Tables [dbo].[XLedgerSyncHistory]
Properties
PropertyValue
Row Count (~)0
Created8:55:50 AM Thursday, December 5, 2024
Last Modified8:55:50 AM Thursday, December 5, 2024
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key PK_XLedgerSyncHistory: XLedgerSyncHistoryIdXLedgerSyncHistoryIdint4
No
1 - 1
Foreign Keys FK_XLedgerSyncHistory_XLedgerSyncEntityType: [dbo].[XLedgerSyncEntityType].XLedgerSyncEntityTypeFidXLedgerSyncEntityTypeFidint4
No
SyncStarteddatetimeoffset10
No
SyncCompleteddatetimeoffset10
Yes
UpToDateAsOfdatetimeoffset10
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_XLedgerSyncHistory: XLedgerSyncHistoryIdPK_XLedgerSyncHistoryXLedgerSyncHistoryId
Yes
Foreign Keys Foreign Keys
NameColumns
FK_XLedgerSyncHistory_XLedgerSyncEntityTypeXLedgerSyncEntityTypeFid->[dbo].[XLedgerSyncEntityType].[XLedgerSyncEntityTypeId]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[XLedgerSyncHistory]
(
[XLedgerSyncHistoryId] [int] NOT NULL IDENTITY(1, 1),
[XLedgerSyncEntityTypeFid] [int] NOT NULL,
[SyncStarted] [datetimeoffset] NOT NULL,
[SyncCompleted] [datetimeoffset] NULL,
[UpToDateAsOf] [datetimeoffset] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerSyncHistory] ADD CONSTRAINT [PK_XLedgerSyncHistory] PRIMARY KEY CLUSTERED  ([XLedgerSyncHistoryId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[XLedgerSyncHistory] ADD CONSTRAINT [FK_XLedgerSyncHistory_XLedgerSyncEntityType] FOREIGN KEY ([XLedgerSyncEntityTypeFid]) REFERENCES [dbo].[XLedgerSyncEntityType] ([XLedgerSyncEntityTypeId])
GO
GRANT SELECT ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT INSERT ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT DELETE ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GRANT UPDATE ON  [dbo].[XLedgerSyncHistory] TO [MssExec]
GO
Uses
Used By