columns:
  ajustement:
    type: character(1)
    default: "'0'::bpchar"
  clinique_honoraire:
    type: character(1)
  comptabilisee:
    type: character(1)
    default: "'1'::bpchar"
  compte_budget_id:
    type: bigint
    default: "0"
  compte_extra_id:
    type: bigint
  compte_id:
    type: bigint
    not_null: NOT NULL
  ecriture_consolidee:
    type: character(1)
    default: "'0'::bpchar"
  exercice_comptable:
    type: numeric(4,0)
  fin_exercice:
    type: character(1)
    default: "'0'::bpchar"
  inter_site:
    type: character(1)
    default: "0"
  is_budget:
    type: text
    default: "'0'::text"
  journal_id:
    type: bigint
  mois_comptable:
    type: numeric(6,0)
  montant_credit:
    type: numeric
  montant_debit:
    type: numeric
  nombre_ecritures:
    type: bigint
    default: "0"
  partenaire_id:
    type: bigint
    default: "0"
  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"
  type_compta_id:
    type: bigint
indexes:
  i_historique_ecritures_total_1:
    column: clinique_honoraire, compte_extra_id, compte_id, journal_id, mois_comptable, section_analytique_id
    method: btree
  i_historique_ecritures_total_10:
    column: fin_exercice
    method: btree
  i_historique_ecritures_total_11:
    column: ajustement
    method: btree
  i_historique_ecritures_total_2:
    column: compte_id
    method: btree
  i_historique_ecritures_total_3:
    column: comptabilisee
    method: btree
  i_historique_ecritures_total_4:
    column: compte_extra_id
    method: btree
  i_historique_ecritures_total_5:
    column: partenaire_id
    method: btree
  i_historique_ecritures_total_6:
    column: journal_id
    method: btree
  i_historique_ecritures_total_7:
    column: site_id
    method: btree
  i_historique_ecritures_total_9:
    column: inter_site
    method: btree
  i_historique_ecritures_total_compte_budget_id:
    column: compte_budget_id
    method: btree
  i_historique_ecritures_total_pole_id:
    column: pole_id
    method: btree
  i_historique_ecritures_total_section_analytique_2_id:
    column: section_analytique_2_id
    method: btree
  i_historique_ecritures_total_section_analytique_3_id:
    column: section_analytique_3_id
    method: btree
  i_historique_ecritures_total_section_analytique_4_id:
    column: section_analytique_4_id
    method: btree
  i_historique_ecritures_total_section_analytique_5_id:
    column: section_analytique_5_id
    method: btree
  i_historique_ecritures_total_section_analytique_6_id:
    column: section_analytique_6_id
    method: btree
  i_historique_ecritures_total_section_analytique_id:
    column: section_analytique_id
    method: btree