CESCO_DB

Tables (4)

Case (약통)

  • PK (id) — int — Primary key — NOT NULL
  • 사용자 FK (user_id) — int — Foreign key → User.PK — 약통 소유자
  • 제품키 (serial_number) — char — NOT NULL
  • 활성화 여부 (is_active) — boolean — NOT NULL — 연결 여부

Log (복약 로그)

  • PK (id) — int — Primary key — NOT NULL
  • Field

Plan (복약 계획)

  • PK (id) — int — Primary key — NOT NULL
  • 사용자 FK (user_id) — int — Foreign key → User.PK — NOT NULL
  • 요일별 스케쥴 (daily_schedule) — set — 각 요일-시간대 hashSet
  • 시작일 (started_at) — datetime
  • 종료일 (ended_at) — datetime
  • Field

User (사용자)

  • PK (id) — int — Primary key — NOT NULL
  • 이름 (fullname) — char — NOT NULL
  • 주민등록번호 (identification_number) — int — NOT NULL
  • 전화번호 (phone_number) — char — NOT NULL