columns:
  aso:
    type: character(1)
    default: "'*'::bpchar"
  cas_id:
    type: bigint
    default: "0"
  cmd_id:
    type: bigint
    default: "0"
  code:
    type: character varying(10)
  code_fg11:
    type: character(1)
    default: "0"
  dms_1:
    type: numeric(10,5)
    default: "0"
  dms_2:
    type: numeric(10,5)
    default: "0"
  dms_3:
    type: numeric(10,5)
    default: "0"
  dms_hospidiag:
    type: numeric
    default: "0"
    comment: DMS Hospidiag (sansanté année N-1)
  ghm3:
    type: character(1)
    default: "'*'::bpchar"
  ghm5_id:
    type: bigint
    default: "0"
  ghs_1_id:
    type: bigint
    default: "0"
  ghs_2_id:
    type: bigint
    default: "0"
  ghs_3_id:
    type: bigint
    default: "0"
  ghs_4_id:
    type: bigint
    default: "0"
  ghs_5_id:
    type: bigint
    default: "0"
  ghs_6_id:
    type: bigint
    default: "0"
  ghs_7_id:
    type: bigint
    default: "0"
  ghs_8_id:
    type: bigint
    default: "0"
  ghs_9_id:
    type: bigint
    default: "0"
  groupe_activite_id:
    type: bigint
    default: "0"
  ht_fg11:
    type: character(1)
    default: "'0'::bpchar"
  ligne_oap_id:
    type: bigint
    default: "0"
  mco:
    type: character(1)
    default: "'*'::bpchar"
  oid:
    type: bigint
    not_null: NOT NULL
    default: "nextval('s_ghm'::regclass)"
  severite:
    type: character(1)
    default: "'*'::bpchar"
  statut:
    type: character(1)
    default: "' '::bpchar"
  taux_cma_national:
    type: numeric(15,13)
    default: "0"
  texte:
    type: character varying(255)
  version_groupage:
    type: character varying(10)
    default: "''::bpchar"
constraints:
  t_ghm_pkey:
    type: PRIMARY KEY
    column: oid
  t_ghm_ukey1:
    type: UNIQUE
    column: code
indexes:
  i_ghm_1:
    column: code
    method: btree
  i_ghm_2:
    column: ligne_oap_id
    method: btree
  i_ghm_3:
    column: groupe_activite_id
    method: btree
  i_ghm_4:
    column: mco
    method: btree
  i_ghm_5:
    column: cmd_id
    method: btree
  i_ghm_6:
    column: cas_id
    method: btree