Files
DbFirst/DbFirst.API/Data/Dashboards/DashboardStorage.sql
OlgunR 9db55fd2fd Switch dashboard storage to SQL Server
Replaced file-based dashboard storage with SQL Server-backed storage using the new SqlDashboardStorage class and TBDD_SMF_CONFIG table. Updated Program.cs to use the new storage and ensure default dashboards are loaded into the database. Simplified DefaultDashboard.xml to remove old items. Added SQL script for the dashboard storage table. Cleaned up unused folder references in the project file. This centralizes dashboard management and supports multi-instance scenarios.
2026-02-03 11:56:26 +01:00

18 lines
682 B
Transact-SQL

CREATE TABLE dbo.TBDD_SMF_CONFIG (
[GUID] [bigint] IDENTITY(1,1) NOT NULL,
[ACTIVE] [bit] NOT NULL,
DashboardId NVARCHAR(128) NOT NULL,
DashboardName NVARCHAR(256) NOT NULL,
DashboardData VARBINARY(MAX) NOT NULL,
--- INSERT YOUR COLUMNS HERE ---
[ADDED_WHO] [nvarchar](50) NOT NULL,
[ADDED_WHEN] [datetime] NOT NULL,
[CHANGED_WHO] [nvarchar](50) NULL,
[CHANGED_WHEN] [datetime] NULL,
CONSTRAINT [PK_TBDD_SMF_CONFIG_DashboardStorage] PRIMARY KEY CLUSTERED
(
[GUID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = ON, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
) ON [PRIMARY]
GO