﻿CREATE TABLE [dbo].[fds__bankingtransactions] (
    [taID]                              VARCHAR (10)   NOT NULL,
    [AccountIdentification]             VARCHAR (50)   NULL,
    [ValueDate]                         DATE           NULL,
    [Amount]                            NUMERIC (9, 2) NULL,
    [FundsCode]                         VARCHAR (1)    NULL,
    [AccountNumberOfPayer]              VARCHAR (30)   NULL,
    [BankCodeOfPayer]                   VARCHAR (11)   NULL,
    [CompensationAmount]                VARCHAR (50)   NULL,
    [CreditorReference]                 VARCHAR (30)   NULL,
    [CreditorsReferenceParty]           VARCHAR (50)   NULL,
    [CustomerReference]                 VARCHAR (50)   NULL,
    [EndToEndReference]                 VARCHAR (50)   NULL,
    [JournalNumber]                     VARCHAR (10)   NULL,
    [MandateReference]                  VARCHAR (50)   NULL,
    [NameOfPayer]                       NVARCHAR (60)  NULL,
    [OriginalAmount]                    VARCHAR (150)  NULL,
    [OriginatorsIdentificationCode]     VARCHAR (150)  NULL,
    [PayersReferenceParty]              VARCHAR (150)  NULL,
    [PostingText]                       VARCHAR (30)   NULL,
    [SepaRemittanceInformation]         VARCHAR (200)  NULL,
    [TextKeyAddition]                   INT            NULL,
    [TransactionCode]                   INT            NULL,
    [IsUnstructuredData]                BIT            NULL,
    [UnstructuredData]                  NVARCHAR (390) NULL,
    [UnstructuredRemittanceInformation] NVARCHAR (390) NULL,
    [DebitCreditMark]                   VARCHAR (2)    NULL,
    [TransactionTypeIdCode]             VARCHAR (3)    NULL,
    CONSTRAINT [PK_fds__bankingtransactions] PRIMARY KEY CLUSTERED ([taID] ASC)
);


GO
CREATE NONCLUSTERED INDEX [fds__bankingtransactions__ix1]
    ON [dbo].[fds__bankingtransactions]([taID] ASC)
    INCLUDE([Amount]);

