-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
9dc09bb
commit 9e7d6da
Showing
4 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
CREATE TABLE [portal].[DataViewAction] ( | ||
[ActionID] INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_DataViewAction PRIMARY KEY NONCLUSTERED, | ||
[ViewID] INT NOT NULL, | ||
[ActionID] INT NOT NULL, | ||
[ActionLabel] NVARCHAR (100) NOT NULL, | ||
[ParentActionID] INT NULL, | ||
[ActionTooltip] NVARCHAR (300) NULL, | ||
[ActionDescription] NVARCHAR (1000) NULL, | ||
[ActionOrder] INT CONSTRAINT [DF_DataViewAction_ActionOrder] DEFAULT ((1)) NOT NULL, | ||
[RequireConfirmation] BIT CONSTRAINT [DF_DataViewAction_RequireConfirmation] DEFAULT ((1)) NOT NULL, | ||
[ActionUri] NVARCHAR (1000) NULL, | ||
[NgClick] NVARCHAR (1000) NULL, | ||
CONSTRAINT [PK_DataViewAction] PRIMARY KEY CLUSTERED ([ViewID] ASC, [ActionID] ASC) | ||
[ActionUri] NVARCHAR (1000) NULL, | ||
[UriTargetWindow] VARCHAR(25) NOT NULL DEFAULT '_blank', | ||
[NgClickJSCode] NVARCHAR (1000) NULL, | ||
[GlyphIcon] NVARCHAR(50) NULL, | ||
[DatabaseCommand] NVARCHAR(4000) NULL, | ||
[IsPerRow] BIT NOT NULL DEFAULT 0 | ||
); | ||
|
||
GO | ||
CREATE CLUSTERED INDEX [IX_DataViewAction_ViewID_ActionID] ON [portal].[DataViewAction] ([ViewID] ASC, [ActionID] ASC) |
20 changes: 20 additions & 0 deletions
20
src/CrudePortalDB/Tables/portal.DataViewActionParameters.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
CREATE TABLE [portal].[DataViewActionParameters] | ||
( | ||
[ActionParameterId] INT IDENTITY(1,1) NOT NULL CONSTRAINT PK_DataViewActionParameters PRIMARY KEY NONCLUSTERED, | ||
[ActionID] INT NOT NULL CONSTRAINT FK_DataViewActionParameters_DataViewAction FOREIGN KEY REFERENCES portal.DataViewAction (ActionID) ON DELETE CASCADE, | ||
[ParamSystemName] NVARCHAR(50) NOT NULL, | ||
[ParamLabel] NVARCHAR(100) NOT NULL, | ||
[ParamOrder] INT NOT NULL DEFAULT 1, | ||
[ParamIsRequired] BIT NOT NULL DEFAULT 1, | ||
[ParamDefaultValue] NVARCHAR(1000) NULL, | ||
[ParamTooltip] NVARCHAR(255) NULL, | ||
[ParamDescription] NVARCHAR(1000) NULL, | ||
[ParamDataType] INT NOT NULL, | ||
[ParamLinkedTable] NVARCHAR(1000) NULL, | ||
[ParamLinkedTableTitleField] NVARCHAR(200) NULL, | ||
[ParamLinkedTableValueField] NVARCHAR(200) NULL, | ||
[ParamLinkedTableGroupField] NVARCHAR(200) NULL, | ||
[ParamLinkedTableAddition] NVARCHAR(1000) NULL | ||
) | ||
GO | ||
CREATE CLUSTERED INDEX IX_DataViewActionParameters ON [portal].[DataViewActionParameters] (ActionID, ActionParameterID); |