전기요금

테이블 (5)

electricity_price_ami (가정용 전기 요금)

  • price_ami_id — bigint — 기본 키 — NOT NULL
  • p_id (프로그램 아이디) — varchar(12) — 외래 키 → program.p_id — NOT NULL
  • title (제목) — varchar
  • apply_date (적용일자) — timestamp
  • description (설명) — text
  • metadata — jsonb
  • created (생성일자) — timestamp
  • modified (수정일자) — timestamp

program (프로그램)

  • p_id (프로그램 아이디) — varchar(12) — 기본 키 — NOT NULL

season_range (계절 범위)

  • season_range_id — bigint — 기본 키 — NOT NULL
  • season_type_id — bigint — 외래 키 → season_type.season_type_id — NOT NULL
  • start_month (시작 달) — smallint
  • end_month (종료 달) — smallint

season_type (계절 종류)

  • season_type_id — bigint — 기본 키 — NOT NULL
  • price_ami_id — bigint — 외래 키 → electricity_price_ami.price_ami_id — NOT NULL
  • season_type (계절종류) — varchar

usage_price (사용량에 따른 가격)

  • usage_price_id — bigint — 기본 키 — NOT NULL
  • season_type_id — bigint — 외래 키 → season_type.season_type_id — NOT NULL
  • progressive_level (누진단계) — smallint
  • from (누진단계 시작범위) — numeric
  • to (누진단계 종료범위) — numeric
  • base_price (기본요금) — numeric
  • unit_price (전력량 단가) — numeric