columns:
  clinique_honoraire:
    type: text
  code_erreur:
    type: text
    default: "''::text"
  code_original:
    type: text
    default: "''::text"
  compte_id:
    type: bigint
    default: "0"
  date_comptable:
    type: date
    not_null: NOT NULL
    default: "'2099-12-31'::date"
  est_comptabilise:
    type: text
    default: "'1'::text"
  facture_id:
    type: bigint
    default: "0"
  journal_id:
    type: bigint
    default: "0"
  medecin_id:
    type: bigint
    default: "0"
  mode_reglement_code:
    type: text
    default: "''::text"
  montant_credit:
    type: numeric
    default: "0"
  montant_debit:
    type: numeric
    default: "0"
  no_facture:
    type: text
    default: "''::text"
  no_sejour:
    type: text
    default: "''::text"
  piece:
    type: text
    default: "''::text"
  provider_id:
    type: bigint
    not_null: NOT NULL
    default: "0"
  sejour_id:
    type: bigint
    default: "0"
  taux_tva:
    type: numeric
    default: "0"
  texte:
    type: text
    default: "''::text"
  tiers_payant_id:
    type: bigint
    default: "0"
  type_ecriture:
    type: text
    default: "''::text"
  type_piece:
    type: text
    default: "''::text"
indexes:
  i_ecriture_comptable_1:
    column: code_original
    method: btree
  i_ecriture_comptable_2:
    column: piece
    method: btree