Medicine

Tables (7)

Medicine (의약품)

  • 의약품ID (medicine_id) — bigint — Primary key — NOT NULL
  • 품목기준코드 (item_standard_code) — String — NOT NULL
  • 표준코드 (standard_code) — String
  • 제품명 (product_name) — String
  • 회수의무자 (recall_obligator) — String
  • 생성 시간 (created_at) — TimeStamp — NOT NULL
  • 업데이트 시간 (updated_at) — TimeStamp — NOT NULL

Notification (알림)

  • 알림 ID (notification_id) — bigint — Primary key — NOT NULL
  • 사용자 ID (user_id) — bigint — Foreign key → User.사용자 ID — NOT NULL
  • 알림 종류 (type) — Varchar
  • 메세지 (message) — text
  • 읽음 여부 (is_read) — boolean
  • 알림 발생 시간 (created_at) — timestamp — NOT NULL

Recall_Batch (회수 배치)

  • 회수 배치 ID (recall_batch_id) — bigint — Primary key — NOT NULL
  • 의약품ID (medicine_id) — bigint — Foreign key → Medicine.의약품ID — NOT NULL
  • 회수 사유 (recall_reason) — String — NOT NULL
  • 제조번호 (lot_number) — String — NOT NULL
  • 위험도 (danger_level) — String
  • 회수일 (recall_date) — TImeStamp
  • 회수종료일 (recall_end_date) — TimeStamp
  • 만료기간 (expiration_date) — TimeStamp
  • 생성 시간 (created_at) — TImeStamp — NOT NULL

Side_Effect (부작용)

  • 부작용ID (side_effect_id) — bigint — Primary key — NOT NULL
  • 의약품ID (medicine_id) — bigint — Foreign key → Medicine.의약품ID — NOT NULL
  • 원본 회수 사유 (recall_reason_raw) — String — NOT NULL

User (사용자)

  • 사용자 ID (user_id) — bigint — Primary key — NOT NULL
  • 사용자 정보 (user_information) — String — NOT NULL
  • 별명 (nickname) — String

User_Medicine (사용자 의약품)

  • 사용자 의약품 ID (user_medicine_id) — bigint — Primary key — NOT NULL
  • 사용자 ID (user_id) — bigint — Foreign key → User.사용자 ID — NOT NULL
  • 의약품ID (medicine_id2) — bigint — Foreign key → Medicine.의약품ID — NOT NULL
  • 약 복용 시작일 (taking_start_date) — TimeStamp
  • 현재 복용 여부 (is_active) — boolean
  • 제조번호 (lot_number) — String

Verification (확인)

  • 확인 ID (verification) — bigint — Primary key — NOT NULL
  • 처리 상태 (status) — varcher — NOT NULL
  • 입력 데이터 (input_text) — Text — NOT NULL
  • 제조번호 (lot_number) — varchar
  • 처리 결과 (result) — Text
  • 에러 메세지 (error_message) — Text
  • 생성 시간 (created_at) — TIMESTAMP — NOT NULL
  • 수정 시간 (updated_at) — TIMESTAMP — NOT NULL