LiverGuardAI

Tables (16)

announcements

  • announcements_id — bigint — Primary key — NOT NULL — 공지사항 ID
  • title — varchar(200) — NOT NULL — 제목
  • content — longtext — NOT NULL — 내용
  • is_active — tinyint — 활성화
  • created_at — datetime — NOT NULL — 생성일
  • updated_at — datetime — 수정일

auth_users

  • user_id — int — Primary key — NOT NULL — 유저 ID
  • id — varchar(150) — ID
  • password — varchar(255) — NOT NULL — PW
  • last_login — datetime — 최근접속일
  • is_superuser — tinyint(1) — NOT NULL — 관리자 여부
  • username — varchar(150) — NOT NULL — 이름
  • first_name — varchar(150) — NOT NULL — 이름
  • last_name — varchar(150) — NOT NULL — 성
  • email — varchar(254) — NOT NULL — 이메일
  • is_staff — tinyint(1) — NOT NULL — 스태프 여부
  • is_active — tinyint(1) — NOT NULL — 활성화 여부
  • date_joined — datetime — NOT NULL — 가입일
  • doctor_id — int — Foreign key → doctor_profiles.doctor_id — NOT NULL — 의사 ID

blood_results

  • blood_id — int — Primary key — NOT NULL — 혈액검사 ID
  • AST — decimal(10, 2) — AST (U/L)
  • ALT — decimal(10, 2) — ALT (U/L)
  • ALP — decimal(10, 2) — ALP (U/L)
  • GGT — decimal(10, 2) — GGT (U/L)
  • Bilirubin — decimal(10, 2) — Total Bilirubin(mg/dL)
  • Albumin — decimal(10, 2) — Albumin (g/dL)
  • INR — decimal(10, 3) — INR
  • Platelet — decimal(10, 2) — Platelet (x10^3/uL)
  • AFP — decimal(10, 2) — AFP (ng/mL)
  • taken_at — datetime — 채혈 시각
  • created_at — datetime — 생성일
  • record_id — int — Foreign key → medical_records.record_id — NOT NULL — 진료기록 ID

departments

  • departments_id — int — Primary key — NOT NULL — 부서 ID
  • department_code — varchar(10) — 부서코드
  • department — varchar(50) — 부서

doctor_profiles

  • doctor_id — int — Primary key — NOT NULL — 의사 ID
  • name — varchar(50) — NOT NULL — 이름
  • sex — enum('male', 'female') — NOT NULL — 성별
  • phone — varchar(11) — 연락처
  • email — varchar(100) — 이메일
  • status — enum('on_duty', 'available', 'off_duty') — NOT NULL — 근무상태
  • profile_image — blob — 프로필 이미지
  • license_number — varchar(50) — 의사 면허번호
  • position — varchar(50) — 직책
  • created_at — datetime — NOT NULL — 생성일
  • updated_at — datetime — 수정일
  • departments_id — int — Foreign key → departments.departments_id — NOT NULL — 부서 ID

druginteraction

  • id — bigint — Primary key — NOT NULL
  • drug_name — varchar(200) — NOT NULL
  • risk_level — varchar(20) — NOT NULL
  • side_effect — varchar(200) — NOT NULL
  • probability — int — NOT NULL
  • color_code — varchar(20) — NOT NULL
  • action_plan — longtext — NOT NULL
  • created_at — datetime(6) — NOT NULL
  • monitoring — longtext — NOT NULL

drugs

  • drug_id — int — Primary key — NOT NULL — 약물 ID
  • name_kr — text — NOT NULL — 한글 이름
  • name_eng — text — NOT NULL — 영문 이름
  • drug_category — varchar(100) — NOT NULL — 약물 분류
  • dosage — longtext — NOT NULL — 권장 복용량
  • frequency — enum('qd', 'bid', 'tid', 'qid', 'qod') — 복약 주기
  • instructions — text — 복약 지침
  • efficacy — longtext — NOT NULL — 효능/효과
  • precautions — longtext — NOT NULL — 주의사항
  • common_side_effects — longtext — NOT NULL — 흔한 부작용
  • serious_side_effects — longtext — NOT NULL — 심각한 부작용
  • contraindications — longtext — NOT NULL — 금기사항
  • interactions — longtext — NOT NULL — 약물 상호작용 요약
  • smiles — text — 분자구조
  • created_at — datetime(6) — NOT NULL — 생성일
  • updated_at — datetime(6) — NOT NULL — 수정일

medical_diagnosis

  • diagnosis_id — int — Primary key — NOT NULL — 질단 ID
  • icd_code — varchar(10) — 진단 코드
  • diagnosis_name — varchar(255) — 진단명
  • is_primary — boolean — 주진단 여부
  • record_id — int — Foreign key → medical_records.record_id — NOT NULL — 진료기록 ID

medical_images

  • image_id — int — Primary key — NOT NULL — 이미지 ID
  • modality — enum('CT', 'MRI', 'US') — 영상 타입
  • body_part — varchar(50) — 부위
  • file_path — varchar(255) — 파일 경로
  • thumbnail_path — varchar(255) — 썸네일 파일 경로
  • description — text — 설명
  • is_analyzed — boolean — AI 분석 여부
  • classification_result — json — AI 분석 결과
  • taken_at — datetime — 촬영 시각
  • created_at — datetime — 생성일
  • record_id — int — Foreign key → medical_records.record_id — NOT NULL — 진료기록 ID

medical_records

  • record_id — int — Primary key — NOT NULL — 진료기록 ID
  • visit_date — datetime — NOT NULL — 진료일
  • chief_complatint — varchar(255) — 주증상
  • subjective_note — text — 환자 진술
  • objective_note — text — 의사 관찰
  • assessment — text — 진단 소견
  • plan — text — 치료 계획
  • doctor_id — varchar(50) — Foreign key → doctor_profiles.doctor_id — NOT NULL — 의사 ID
  • patient_id — bigint — Foreign key → patients.patient_id — NOT NULL — 환자 ID
  • prescription_id — int — Foreign key → prescriptions.prescription_id — NOT NULL — 처방전 ID

medical_vitals

  • vital_id — int — Primary key — NOT NULL — 바이탈 ID
  • height — decimal(5, 2) — 신장(cm)
  • weight — decimal(5, 2) — 체중(kg)
  • bp_systolic — tinyint — 수축기 혈압(mmHg)
  • bp_diastolic — tinyint — 이완기 혈압(mmHg)
  • heart_rate — tinyint — 심박수(bpm)
  • resp_rate — tinyint — 호흡수(회/분)
  • temperature — decimal(4, 1) — 체온(℃)
  • oxygen_saturation — tinyint — 산소포화도(%)
  • measured_at — tinyint — 바이탈 측정 시각
  • record_id — int — Foreign key → medical_records.record_id — NOT NULL — 진료기록 ID

nurse_profiles

  • nurse_id — int — Primary key — NOT NULL — 계정 ID
  • name — varchar(50) — 이름
  • sex — enum('male', 'female') — 성별
  • phone — varchar(11) — 연락처
  • email — varchar(100) — 이메일
  • status — enum('on_duty', 'available', 'off_duty') — 근무상태
  • profile_image — blob — 프로필 이미지
  • license_number — varchar(50) — 간호사 면허번호
  • shift_type — enum('day', 'evening', 'night') — 근무조
  • created_at — datetime — 생성일
  • updated_at — datetime — 수정일
  • departments_id — int — Foreign key → departments.departments_id — NOT NULL — 부서 ID

nursing_notes

  • note_id — int — Primary key — NOT NULL — 간호기록 ID
  • note_type — enum('monitoring', 'intervention', 'education', 'report') — 기록 유형
  • subjective_note — text — 환자진술
  • objective_note — text — 관찰소견
  • assessment — text — 진단소견
  • plan — text — 간호계획
  • intervention — text — 처치내용
  • abnormal_flag — enum('normal', 'abnormal') — 이상징후 여부
  • next_action — text — 추가 관찰/보고/지시 예정
  • created_at — datetime — 기록 시각
  • patient_id — bigint — Foreign key → patients.patient_id — NOT NULL — 환자 ID
  • nurse_id — int — Foreign key → nurse_profiles.nurse_id — NOT NULL — 계정 ID

patients

  • patient_id — bigint — Primary key — NOT NULL — 환자 ID
  • name — varchar(100) — NOT NULL — 이름
  • birth_date — date — NOT NULL — 생년월일
  • sex — enum('male', 'female') — NOT NULL — 성별
  • phone — varchar(11) — NOT NULL — 연락처
  • address — varchar(255) — 주소
  • diagnosis_date — date
  • bclc_stage — varchar(10)
  • tumor_size — double
  • tumor_count — int
  • vascular_invasion — tinyint(1) — NOT NULL
  • child_pugh — varchar(1)
  • afp_initial — double
  • afp_current — double
  • treatment_type — varchar(50)
  • treatment_start_date — date
  • survival_1year — double
  • survival_3year — double
  • survival_5year — double
  • recurrence_risk — varchar(10)
  • next_ct_date — date
  • next_blood_test_date — date
  • created_at — datetime(6) — NOT NULL — 생성일
  • updated_at — datetime(6) — NOT NULL — 수정일
  • doctor_id — varchar(50) — Foreign key → doctor_profiles.doctor_id — 의사 ID

prescription_drug

  • prescription_id — int — Primary key — NOT NULL — 처방전 ID
  • drug_id — int — Primary key — NOT NULL — 약물 ID
  • prescription_id (prescription_id2) — int — Foreign key → prescriptions.prescription_id — NOT NULL
  • drug_id (drug_id2) — int — Foreign key → drugs.drug_id — NOT NULL

prescriptions

  • prescription_id — int — Primary key — NOT NULL — 처방전 ID
  • status — enum('active', 'expired', 'canceled') — 진행 상태
  • comment — text — 처방 메모
  • due_date — datetime — NOT NULL — 복용 종료일
  • created_at — datetime — 생성일
  • updated_at — datetime — 수정일