Tables [dbo].[AccountInstanceEventLogging]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created1:20:00 AM Thursday, March 21, 2019
Last Modified1:20:08 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_AccountInstanceEventLogging_InstanceID_EventTime: InstanceID\EventTimeForeign Keys FK_AccountInstanceEventLogging_InstanceID_AccountOnsiteInstance_ID: [dbo].[AccountOnsiteInstance].InstanceIDInstanceIDint4
False
Cluster Primary Key PK_AccountInstanceEventLogging_InstanceID_EventTime: InstanceID\EventTimeEventTimedatetime8
False
LogDatanvarchar(max)max
False
KeyNameKey ColumnsUnique
Cluster Primary Key PK_AccountInstanceEventLogging_InstanceID_EventTime: InstanceID\EventTimePK_AccountInstanceEventLogging_InstanceID_EventTimeInstanceID, EventTime
True
NameUpdateDeleteColumns
FK_AccountInstanceEventLogging_InstanceID_AccountOnsiteInstance_IDCascadeCascadeInstanceID->[dbo].[AccountOnsiteInstance].[ID]
CREATE TABLE [dbo].[AccountInstanceEventLogging]
(
[InstanceID] [int] NOT NULL,
[EventTime] [datetime] NOT NULL,
[LogData] [nvarchar] (max) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountInstanceEventLogging] ADD CONSTRAINT [PK_AccountInstanceEventLogging_InstanceID_EventTime] PRIMARY KEY CLUSTERED  ([InstanceID], [EventTime]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[AccountInstanceEventLogging] ADD CONSTRAINT [FK_AccountInstanceEventLogging_InstanceID_AccountOnsiteInstance_ID] FOREIGN KEY ([InstanceID]) REFERENCES [dbo].[AccountOnsiteInstance] ([ID]) ON DELETE CASCADE ON UPDATE CASCADE
GO