columns:
  code:
    type: text
  code_original:
    type: text
  est_sans_facturation:
    type: character(1)
    default: "''::bpchar"
    comment: 1 = Pas de facturation
  etage_force2_id:
    type: bigint
    default: "0"
  etage_force2_um_id_array:
    type: 'bigint[]'
  etage_force3_id:
    type: bigint
    default: "0"
  etage_force3_um_id_array:
    type: 'bigint[]'
  etage_force_id:
    type: bigint
    default: "0"
  etage_force_um_id_array:
    type: 'bigint[]'
  etage_par_defaut_id:
    type: bigint
    default: "0"
  finess_id:
    type: bigint
    default: "0"
  oid:
    type: bigint
    not_null: NOT NULL
    default: "nextval('s_unites_fonctionnelles'::regclass)"
  section_code:
    type: 'text[]'
  section_id:
    type: 'bigint[]'
  section_texte:
    type: 'text[]'
  texte:
    type: text
  texte_court:
    type: text
  type_eclatement:
    type: character(1)
    default: "''::bpchar"
    comment: |
      Eclatement : Le code est suffixé avec :
      1=Première unité médicale
      2=Spécialité du médecin séjour
constraints:
  t_unites_fonctionnelles_pkey:
    type: PRIMARY KEY
    column: oid
indexes:
  i_unites_fonctionnelles_1:
    column: code_original
    method: btree