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

28 lines
1.1 KiB
Transact-SQL

CREATE TABLE [dbo].[mfr__contacts] (
[Id] BIGINT NOT NULL,
[CustomValues] NVARCHAR (MAX) NOT NULL,
[FirstName] NVARCHAR (255) NULL,
[LastName] NVARCHAR (255) NULL,
[Email] NVARCHAR (255) NULL,
[JobTitle] NVARCHAR (255) NULL,
[MobilePhone] NVARCHAR (255) NULL,
[Telephone] NVARCHAR (255) NULL,
[Fax] NVARCHAR (255) NULL,
[Note] NVARCHAR (1000) NULL,
[DateModified] DATETIME NOT NULL,
[Version] INT NOT NULL,
[CompanyId] BIGINT NOT NULL,
[IsUser] BIT NOT NULL,
[ExternalId] NVARCHAR (255) NULL,
[Gender] NVARCHAR (255) NULL,
[UserId] BIGINT NOT NULL,
CONSTRAINT [PK_mfr__contact] PRIMARY KEY CLUSTERED ([Id] ASC)
);
GO
CREATE NONCLUSTERED INDEX [mfr__contacts__ix1]
ON [dbo].[mfr__contacts]([CompanyId] ASC)
INCLUDE([CustomValues], [FirstName], [LastName], [Email], [JobTitle], [MobilePhone], [Telephone], [Fax], [Note], [DateModified], [Version], [IsUser], [ExternalId], [Gender], [UserId]);