CREATE TABLE TRANSACTION (
  ID char(64) NOT NULL,
  TDATE date NOT NULL,
  ACCOUNT_ID integer NOT NULL,
  MEMO varchar(64) NOT NULL,
  COUNTRY char(2),
  OUTFLOW decimal(20,2),
  INFLOW decimal(12,2),
  OWNER_ID integer,
  INSTALLMENT_NR integer,
  INSTALLMENT_TT integer,
  CREATED datetime NOT NULL,
  UPDATED datetime
)
ENGINE = MergeTree
PRIMARY KEY (ID)