create table ct_et_templates.w_ODS_TMS_CASHFLOW (
  a_key number(38, 0),
  a_workflow_history_key number(38, 0),
  param_13 varchar2(255 char),
  accrued_interest number(19,4),
  active_since date,
  active_until date,
  affect_number number(12, 0),
  agreed_amount number(19,4),
  amount number(19,4),
  audit_number number(12, 0),
  base_currency_id varchar2(255 char),
  batch_id number(12, 0),
  book_value number(19,4),
  cap binary_double,
  cashflow_flags varchar2(255 char),
  cashflow_flags_2 varchar2(255 char),
  cashflow_maturity_date date,
  cashflow_type_name varchar2(255 char),
  cashflow_value_date date,
  closing_date date,
  collateral_number number(12, 0),
  comment_ varchar2(255 char),
  comment_1 varchar2(255 char),
  comment_2 varchar2(255 char),
  comment_3 varchar2(255 char),
  comment_4 varchar2(255 char),
  contexts varchar2(255 char),
  cp_client_id varchar2(255 char),
  other_account_1_id varchar2(255 char),
  other_account_2_id varchar2(255 char),
  other_account_3_id varchar2(255 char),
  other_account_4_id varchar2(255 char),
  other_bank_1_id varchar2(255 char),
  other_bank_2_id varchar2(255 char),
  other_bank_2_swift_code varchar2(255 char),
  other_bank_3_id varchar2(255 char),
  other_bank_3_swift_code varchar2(255 char),
  other_bank_4_id varchar2(255 char),
  other_bank_4_swift_code varchar2(255 char),
  other_bank_1_swift_code varchar2(255 char),
  other_bank_1_unit_id varchar2(255 char),
  cp_portfolio_id varchar2(255 char),
  cp_trader_id varchar2(255 char),
  cp_client_unit_id varchar2(255 char),
  creator_tag varchar2(255 char),
  currency_id varchar2(255 char),
  currency_class_id varchar2(255 char),
  date_ date,
  date_basis varchar2(255 char),
  dattr_0 date,
  dattr_1 date,
  dattr_2 date,
  dattr_3 date,
  dattr_4 date,
  dattr_5 date,
  dattr_6 date,
  dattr_7 date,
  dattr_8 date,
  dattr_9 date,
  deal_price binary_double,
  deal_rate binary_double,
  param_1 varchar2(255 char),
  expiry_date date,
  fx_book_rate binary_double,
  mattr_4 number(19,4),
  fx_rate binary_double,
  fx_spot_rate binary_double,
  sattr_1 varchar2(255 char),
  factor binary_double,
  fattr_0 binary_double,
  fattr_1 binary_double,
  fattr_2 binary_double,
  fattr_3 binary_double,
  fattr_4 binary_double,
  fixing_offset varchar2(255 char),
  fixing_period_id varchar2(255 char),
  fixing_quote binary_double,
  fixing_rate_id varchar2(255 char),
  flags number(12, 0),
  flags_2 number(12, 0),
  flags_3 number(12, 0),
  floor binary_double,
  id number(12, 0),
  iattr_0 number(12, 0),
  iattr_1 number(12, 0),
  iattr_2 number(12, 0),
  iattr_3 number(12, 0),
  iattr_4 number(12, 0),
  iattr_5 number(12, 0),
  iattr_7 number(12, 0),
  iattr_8 number(12, 0),
  iattr_9 number(12, 0),
  instrument_id varchar2(255 char),
  instrument_group varchar2(255 char),
  instrument_type_id varchar2(255 char),
  issuer_id varchar2(255 char),
  issuer_unit_id varchar2(255 char),
  kind_id varchar2(255 char),
  leg_id varchar2(255 char),
  leg_group number(12, 0),
  sattr_4 varchar2(255 char),
  logical_number number(12, 0),
  sattr_3 varchar2(255 char),
  margin1 binary_double,
  margin2 binary_double,
  market_id varchar2(255 char),
  param_11 varchar2(255 char),
  mattr_0 number(19,4),
  mattr_1 number(19,4),
  mattr_2 number(19,4),
  mattr_3 number(19,4),
  maturity_date date,
  param_9 varchar2(255 char),
  nominal_amount number(19,4),
  nominal_rate binary_double,
  num number(12, 0),
  number_ number(12, 0),
  opening_date date,
  opening_time date,
  iattr_6 varchar2(255 char),
  param_10 varchar2(255 char),
  param_4 varchar2(255 char),
  owner_id varchar2(255 char),
  local_account_1_id varchar2(255 char),
  local_account_2_id varchar2(255 char),
  local_account_2_closing_date date,
  local_account_3_id varchar2(255 char),
  local_account_3_closing_date date,
  local_account_4_id varchar2(255 char),
  local_account_4_closing_date date,
  local_account_1_closing_date date,
  local_bank_1_id varchar2(255 char),
  local_bank_2_id varchar2(255 char),
  local_bank_2_swift_code varchar2(255 char),
  local_bank_3_id varchar2(255 char),
  local_bank_3_swift_code varchar2(255 char),
  local_bank_4_id varchar2(255 char),
  local_bank_4_swift_code varchar2(255 char),
  local_bank_1_swift_code varchar2(255 char),
  local_bank_1_unit_id varchar2(255 char),
  owner_unit_id varchar2(255 char),
  p_date_basis varchar2(255 char),
  package_id number(12, 0),
  package_main_type_id varchar2(255 char),
  package_type_id varchar2(255 char),
  param_18 varchar2(255 char),
  param_3 varchar2(255 char),
  param_5 varchar2(255 char),
  param_6 varchar2(255 char),
  param_7 varchar2(255 char),
  param_8 varchar2(255 char),
  param_19 varchar2(255 char),
  parent_number number(12, 0),
  payment_amount number(19,4),
  payment_currency_id varchar2(255 char),
  payment_date date,
  sattr_13 varchar2(255 char),
  portfolio_id varchar2(255 char),
  premium_amount number(19,4),
  premium_currency_id varchar2(255 char),
  premium_date date,
  premium_price binary_double,
  premium_type varchar2(255 char),
  rate_type varchar2(255 char),
  param_0 varchar2(255 char),
  reference_number number(12, 0),
  param_2 varchar2(255 char),
  sattr_0 varchar2(255 char),
  sattr_10 varchar2(255 char),
  sattr_11 varchar2(255 char),
  sattr_12 varchar2(255 char),
  sattr_14 varchar2(255 char),
  sattr_15 varchar2(255 char),
  sattr_16 varchar2(255 char),
  sattr_17 varchar2(255 char),
  sattr_18 varchar2(255 char),
  sattr_19 varchar2(255 char),
  sattr_5 varchar2(255 char),
  sattr_6 varchar2(255 char),
  sattr_7 varchar2(255 char),
  sattr_8 varchar2(255 char),
  sattr_9 varchar2(255 char),
  secondary_instrument_id varchar2(255 char),
  param_16 varchar2(255 char),
  actual_amount number(19,4),
  other_client_id varchar2(255 char),
  other_client_unit_id varchar2(255 char),
  actual_currency_id varchar2(255 char),
  settlement_date date,
  local_client_id varchar2(255 char),
  local_client_unit_id varchar2(255 char),
  sign_id varchar2(255 char),
  since_when date,
  spread binary_double,
  status varchar2(255 char),
  subtype_id number(12, 0),
  broker_id varchar2(255 char),
  top_portfolio_id varchar2(255 char),
  trader_id varchar2(255 char),
  trading_unit binary_double,
  sattr_2 varchar2(255 char),
  transaction_currency_id varchar2(255 char),
  transaction_currency_2_id varchar2(255 char),
  transaction_date date,
  transaction_maturity_date date,
  transaction_opening_date date,
  param_12 varchar2(255 char),
  param_14 varchar2(255 char),
  param_15 varchar2(255 char),
  param_17 varchar2(255 char),
  state_id varchar2(255 char),
  transaction_type_id varchar2(255 char),
  transaction_value_date date,
  type_id number(12, 0),
  units binary_double,
  until_when date,
  value_date date
)
