Files
Stefan 10ecdfa2e4 Add Fuchs_Database SSDT project (schema source of truth)
Adds the SQL Server Data Tools project for the fuchs_fds database — tables,
table types, functions and stored procedures that the backend calls (e.g.
fds__getInvoice, fds__merge_bankingtransactions, fds__tt__bankingtransactions,
fds__admin_getReportCatalog, fis_* auth). Build/model caches (bin, obj,
*.dbmdl, *.jfm, *.user) are git-ignored.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 14:50:54 +02:00

29 lines
1.3 KiB
Transact-SQL

CREATE TABLE [dbo].[mfr__steps] (
[Id] BIGINT NOT NULL,
[MobileId] BIGINT NULL,
[Version] INT NOT NULL,
[Name] NVARCHAR (255) NULL,
[IsDone] BIT NOT NULL,
[HasError] BIT NOT NULL,
[TrackingId] NVARCHAR (255) NULL,
[Type] NVARCHAR (255) NULL,
[SortOrder] INT NOT NULL,
[Data] NVARCHAR (MAX) NULL,
[DateModifiedOffline] DATETIME NULL,
[ServiceRequestId] BIGINT NULL,
[Description] NVARCHAR (MAX) NULL,
[Comment] NVARCHAR (MAX) NULL,
[InternalComment] NVARCHAR (MAX) NULL,
[ServiceObjectId] BIGINT NULL,
[StepListTemplateId] BIGINT NULL,
[ParentId] BIGINT NULL,
CONSTRAINT [PK_mfr__step] PRIMARY KEY CLUSTERED ([Id] ASC)
);
GO
CREATE NONCLUSTERED INDEX [mfr__steps__ix1]
ON [dbo].[mfr__steps]([ServiceRequestId] ASC)
INCLUDE([MobileId], [Version], [Name], [IsDone], [HasError], [TrackingId], [Type], [SortOrder], [Data], [DateModifiedOffline], [Description], [Comment], [InternalComment], [ServiceObjectId], [StepListTemplateId], [ParentId]);