columns:
  ajustement:
    type: character(1)
    default: "'0'::bpchar"
  cle_originale:
    type: character varying(255)
    default: "''::character varying"
  clinique_honoraire:
    type: character(1)
  comptabilisee:
    type: character(1)
    default: "'1'::bpchar"
  compte_budget_id:
    type: bigint
    default: "0"
  compte_contrepartie_id:
    type: bigint
    default: "0"
  compte_extra_id:
    type: bigint
  compte_id:
    type: bigint
    not_null: NOT NULL
  date_echeance:
    type: date
  date_ecriture:
    type: date
    not_null: NOT NULL
  date_facture_fournisseur:
    type: date
  dossier:
    type: character varying(255)
    default: "''::character varying"
  ecriture_consolidee:
    type: character(1)
    default: "'0'::bpchar"
  exercice_comptable:
    type: numeric(4,0)
  fin_exercice:
    type: character(1)
    default: "'0'::bpchar"
  identifiant_operation:
    type: character varying(255)
    default: "''::character varying"
  inter_site:
    type: character(1)
    default: "'0'::bpchar"
  is_budget:
    type: text
    default: "'0'::text"
  journal_id:
    type: bigint
  journal_paiement_id:
    type: bigint
    default: "0"
  mode_paiement_id:
    type: bigint
    default: "0"
  mois_comptable:
    type: numeric(6,0)
  montant_credit:
    type: numeric
  montant_debit:
    type: numeric
  numero_cheque:
    type: character varying(10)
  partenaire_id:
    type: bigint
    default: "0"
  piece:
    type: character varying(255)
    default: "''::character varying"
  pole_id:
    type: bigint
    default: "0"
  pole_rule_id:
    type: bigint
    default: "0"
  section_analytique_2_id:
    type: bigint
    default: (0)::bigint
  section_analytique_3_id:
    type: bigint
    default: (0)::bigint
  section_analytique_4_id:
    type: bigint
    default: (0)::bigint
  section_analytique_5_id:
    type: bigint
    default: (0)::bigint
  section_analytique_6_id:
    type: bigint
    default: (0)::bigint
  section_analytique_7_id:
    type: bigint
    default: (0)::bigint
  section_analytique_8_id:
    type: bigint
    default: (0)::bigint
  section_analytique_9_id:
    type: bigint
    default: (0)::bigint
  section_analytique_id:
    type: bigint
  site_id:
    type: bigint
    default: "0"
  texte:
    type: character varying(255)
  type_compta_id:
    type: bigint
indexes:
  i_historique_ecritures_1:
    column: mois_comptable
    method: btree
  i_historique_ecritures_10:
    column: fin_exercice
    method: btree
  i_historique_ecritures_11:
    column: ajustement
    method: btree
  i_historique_ecritures_12:
    column: partenaire_id
    method: btree
  i_historique_ecritures_13:
    column: identifiant_operation
    method: btree
  i_historique_ecritures_2:
    column: compte_id
    method: btree
  i_historique_ecritures_3:
    column: comptabilisee
    method: btree
  i_historique_ecritures_4:
    column: compte_extra_id
    method: btree
  i_historique_ecritures_5:
    column: cle_originale
    method: btree
  i_historique_ecritures_6:
    column: journal_id
    method: btree
  i_historique_ecritures_7:
    column: date_ecriture
    method: btree
  i_historique_ecritures_8:
    column: dossier
    method: btree
  i_historique_ecritures_9:
    column: site_id
    method: btree
  i_historique_ecritures_compte_budget_id:
    column: compte_budget_id
    method: btree
  i_historique_ecritures_pole_id:
    column: pole_id
    method: btree