Tables [dbo].[ActionDef]
PropertyValue
Row Count (~)0
Created1:20:01 AM Thursday, March 21, 2019
Last Modified1:20:10 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ActionDef_ID: IDIDint4
False
1 - 1
Foreign Keys FK_ActionDef_AlertDefID_AlertDefinition_ID: [dbo].[AlertDefinition].AlertDefIDAlertDefIDint4
False
Foreign Keys FK_ActionDef_DealerID_Account_AccountID: [dbo].[Account].DealerIDDealerIDint4
True
ActionTypesmallint2
False
ActionResultsmallint2
False
Ordinalsmallint2
False
RequiresApprovalbit1
False
((0))
Enabledbit1
False
NoOfRetriessmallint2
False
IsArchivedbit1
False
((0))
DependsOnActionOrdinalint4
False
((0))
MarkAsManagedbit1
True
((0))
KeyNameKey ColumnsUnique
Cluster Primary Key PK_ActionDef_ID: IDPK_ActionDef_IDID
True
NameDeleteColumns
FK_ActionDef_AlertDefID_AlertDefinition_IDCascadeAlertDefID->[dbo].[AlertDefinition].[ID]
FK_ActionDef_DealerID_Account_AccountIDDealerID->[dbo].[Account].[AccountID]
CREATE TABLE [dbo].[ActionDef]
(
[ID] [int] NOT NULL IDENTITY(1, 1),
[AlertDefID] [int] NOT NULL,
[DealerID] [int] NULL,
[ActionType] [smallint] NOT NULL,
[ActionResult] [smallint] NOT NULL,
[Ordinal] [smallint] NOT NULL,
[RequiresApproval] [bit] NOT NULL CONSTRAINT [DF_ActionDef_RequiresApproval] DEFAULT ((0)),
[Enabled] [bit] NOT NULL,
[NoOfRetries] [smallint] NOT NULL,
[IsArchived] [bit] NOT NULL CONSTRAINT [DF_ActionDef_IsArchived] DEFAULT ((0)),
[DependsOnActionOrdinal] [int] NOT NULL CONSTRAINT [DF_ActionDef_DependsOnActionOrdinal] DEFAULT ((0)),
[MarkAsManaged] [bit] NULL CONSTRAINT [DF_ActionDef_MarkAsManaged] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ActionDef] ADD CONSTRAINT [PK_ActionDef_ID] PRIMARY KEY CLUSTERED  ([ID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ActionDef] ADD CONSTRAINT [FK_ActionDef_AlertDefID_AlertDefinition_ID] FOREIGN KEY ([AlertDefID]) REFERENCES [dbo].[AlertDefinition] ([ID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ActionDef] ADD CONSTRAINT [FK_ActionDef_DealerID_Account_AccountID] FOREIGN KEY ([DealerID]) REFERENCES [dbo].[Account] ([AccountID])
GO