CREATE TABLE [dbo].[mfr__companies] ( [Id] BIGINT NOT NULL, [Location#ID] BIGINT NULL, [Version] INT NOT NULL, [IsPhysicalPerson] BIT NOT NULL, [IsOwner] BIT NOT NULL, [IsEmailInvoicingActive] BIT NOT NULL, [IsSupplier] BIT NOT NULL, [MappingId] NVARCHAR (255) NULL, [ExternalId] NVARCHAR (255) NULL, [Name] NVARCHAR (255) NULL, [Note] NVARCHAR (255) NULL, [SupportTelephone] NVARCHAR (255) NULL, [SupportFax] NVARCHAR (255) NULL, [SupportMail] NVARCHAR (255) NULL, [QuickSearch] NVARCHAR (255) NULL, [DateModified] DATETIME NOT NULL, [CustomValues] NVARCHAR (MAX) NULL, [MainContactId] BIGINT NULL, CONSTRAINT [PK_mfr__company] PRIMARY KEY CLUSTERED ([Id] ASC) );