columns:
  code_expedie_0:
    type: text
  code_expedie_1:
    type: character(1)
  code_expedie_2:
    type: character(1)
  code_facture:
    type: text
  code_sorti:
    type: numeric(1,0)
  code_vente:
    type: character(1)
  date_debut_facture:
    type: date
  date_entree:
    type: date
  date_expedition:
    type: date
  date_expedition_0:
    type: date
  date_expedition_1:
    type: date
  date_expedition_2:
    type: date
  date_facture:
    type: date
  date_fin_facture:
    type: date
  date_groupage:
    type: date
  date_solde:
    type: date
  date_solde_0:
    type: date
  date_solde_0_c:
    type: date
  date_solde_0_h:
    type: date
  date_solde_1:
    type: date
  date_solde_1_c:
    type: date
  date_solde_1_h:
    type: date
  date_solde_2:
    type: date
  date_solde_2_c:
    type: date
  date_solde_2_h:
    type: date
  date_solde_c:
    type: date
  date_solde_h:
    type: date
  date_sortie:
    type: date
  date_vente:
    type: date
  delai_expedition:
    type: numeric
  delai_expedition_0:
    type: numeric
  delai_expedition_1:
    type: numeric
  delai_expedition_2:
    type: numeric
  delai_facture:
    type: numeric
  delai_groupage:
    type: numeric
  delai_solde:
    type: numeric
  delai_solde_0:
    type: numeric
  delai_solde_0_c:
    type: numeric
  delai_solde_0_h:
    type: numeric
  delai_solde_1:
    type: numeric
  delai_solde_1_c:
    type: numeric
  delai_solde_1_h:
    type: numeric
  delai_solde_2:
    type: numeric
  delai_solde_2_c:
    type: numeric
  delai_solde_2_h:
    type: numeric
  delai_solde_c:
    type: numeric
  delai_solde_h:
    type: numeric
  facture_reference_id:
    type: bigint
  ghs_bebe1_id:
    type: bigint
  ghs_bebe2_id:
    type: bigint
  ghs_bebe3_id:
    type: bigint
  ghs_id:
    type: bigint
  gmt_id:
    type: bigint
    default: "0"
  lieu_sortie_id:
    type: bigint
    default: "0"
  montant_comptabilise:
    type: numeric
  montant_comptabilise_0:
    type: numeric
  montant_comptabilise_0_c:
    type: numeric
  montant_comptabilise_0_h:
    type: numeric
  montant_comptabilise_1:
    type: numeric
  montant_comptabilise_1_c:
    type: numeric
  montant_comptabilise_1_h:
    type: numeric
  montant_comptabilise_2:
    type: numeric
  montant_comptabilise_2_c:
    type: numeric
  montant_comptabilise_2_h:
    type: numeric
  montant_comptabilise_budget_global_c:
    type: numeric
  montant_comptabilise_c:
    type: numeric
  montant_comptabilise_h:
    type: numeric
  montant_encours:
    type: numeric
  montant_encours_0:
    type: numeric
  montant_encours_0_c:
    type: numeric
  montant_encours_0_h:
    type: numeric
  montant_encours_1:
    type: numeric
  montant_encours_1_c:
    type: numeric
  montant_encours_1_h:
    type: numeric
  montant_encours_2:
    type: numeric
  montant_encours_2_c:
    type: numeric
  montant_encours_2_h:
    type: numeric
  montant_encours_c:
    type: numeric
  montant_encours_h:
    type: numeric
  montant_facture:
    type: numeric
  montant_facture_0:
    type: numeric
  montant_facture_0_c:
    type: numeric
  montant_facture_0_h:
    type: numeric
  montant_facture_1:
    type: numeric
  montant_facture_1_c:
    type: numeric
  montant_facture_1_h:
    type: numeric
  montant_facture_2:
    type: numeric
  montant_facture_2_c:
    type: numeric
  montant_facture_2_h:
    type: numeric
  montant_facture_c:
    type: numeric
  montant_facture_c_actes_inclus_dans_sejour:
    type: numeric
  montant_facture_h:
    type: numeric
  montant_facture_h_actes_inclus_dans_sejour:
    type: numeric
  montant_regle:
    type: numeric
  montant_regle_0:
    type: numeric
  montant_regle_0_c:
    type: numeric
  montant_regle_0_h:
    type: numeric
  montant_regle_1:
    type: numeric
  montant_regle_1_c:
    type: numeric
  montant_regle_1_h:
    type: numeric
  montant_regle_2:
    type: numeric
  montant_regle_2_c:
    type: numeric
  montant_regle_2_h:
    type: numeric
  montant_regle_c:
    type: numeric
  montant_regle_h:
    type: numeric
  motif_non_facturation_comment:
    type: text
    default: "''::text"
  motif_non_facturation_id:
    type: bigint
    default: "0"
  nb_calculable:
    type: numeric
  nb_factures:
    type: bigint
  nb_factures_regularisation:
    type: bigint
  nb_groupe:
    type: numeric
  nb_non_calcules:
    type: integer
  nb_non_calcules_bg:
    type: integer
  nb_non_calcules_horsbg:
    type: integer
  nb_non_cloture:
    type: integer
  nb_non_cloture_0:
    type: integer
  nb_non_cloture_0_c:
    type: integer
  nb_non_cloture_0_h:
    type: integer
  nb_non_cloture_1:
    type: integer
  nb_non_cloture_1_c:
    type: integer
  nb_non_cloture_1_h:
    type: integer
  nb_non_cloture_2:
    type: integer
  nb_non_cloture_2_c:
    type: integer
  nb_non_cloture_2_h:
    type: integer
  nb_non_cloture_c:
    type: integer
  nb_non_cloture_h:
    type: integer
  nb_non_expedie:
    type: numeric
  nb_non_expedie_0:
    type: numeric
  nb_non_expedie_0_c:
    type: numeric
  nb_non_expedie_0_h:
    type: numeric
  nb_non_expedie_1:
    type: numeric
  nb_non_expedie_1_c:
    type: numeric
  nb_non_expedie_1_h:
    type: numeric
  nb_non_expedie_2:
    type: numeric
  nb_non_expedie_2_c:
    type: numeric
  nb_non_expedie_2_h:
    type: numeric
  nb_non_expedie_c:
    type: numeric
  nb_non_expedie_h:
    type: numeric
  nb_non_groupe:
    type: numeric
  nb_non_solde:
    type: numeric
  nb_non_solde_0:
    type: numeric
  nb_non_solde_0_c:
    type: numeric
  nb_non_solde_0_h:
    type: numeric
  nb_non_solde_1:
    type: numeric
  nb_non_solde_1_c:
    type: numeric
  nb_non_solde_1_h:
    type: numeric
  nb_non_solde_2:
    type: numeric
  nb_non_solde_2_c:
    type: numeric
  nb_non_solde_2_h:
    type: numeric
  nb_non_solde_c:
    type: numeric
  nb_non_solde_h:
    type: numeric
  nb_rejets:
    type: numeric
  no_bordereau_0:
    type: text
  no_bordereau_1:
    type: text
  no_bordereau_2:
    type: text
  no_facture_reference:
    type: text
  no_sejour:
    type: text
  pole_sortie_id:
    type: bigint
    default: "0"
  retard_facture:
    type: numeric
  retard_groupage:
    type: numeric
  sejour_id:
    type: bigint
  tiers_payant_id:
    type: bigint
  type_facture:
    type: character(1)
  type_t2a:
    type: character(1)
indexes:
  i_factures_reference_tiers_1:
    column: sejour_id
    method: btree
  i_factures_reference_tiers_2:
    column: no_sejour
    method: btree
  i_factures_reference_tiers_3:
    column: tiers_payant_id
    method: btree
  i_factures_reference_tiers_4:
    column: date_fin_facture
    method: btree