약알

테이블 (13)

게시판 (Untitled3)

  • Key (id) — integer — 기본 키 — NOT NULL
  • 작성자 (user_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 제목 (title) — char(300) — NOT NULL
  • 내용 (content) — char(300) — NOT NULL
  • 생성날짜 (created_date) — date — NOT NULL
  • 수정여부 (is_update) — boolean
  • 삭제날짜 (expiration_date) — date
  • 지역 (region) — char(50) — NOT NULL
  • 조회수 (view_cnt) — integer — NOT NULL
  • 좋아요 (like) — integer — NOT NULL

댓글 (CopyOfUntitled3)

  • Key (id) — integer — 기본 키 — NOT NULL
  • 작성자 (user_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 게시판아이디 (board_id) — integer — 외래 키 → 게시판.Key — NOT NULL
  • 댓글부모 (root_comment) — integer — 외래 키 → 댓글.Key — NOT NULL
  • 내용 (content) — char(200) — NOT NULL
  • 생성날짜 (created_date) — date
  • 수정여부 (is_update) — boolean
  • 삭제날짜 (expiration_date) — date

보호자 (Untitled6)

  • key (id) — integer — 기본 키 — NOT NULL
  • 보호자아이디 (protector_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 환자아이디 (patient_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 관계 (Field3) — char(20)
  • 승인여부 (Field4) — boolean — 환자의 정보를 열람할 수 있는지에 대한 승인 여부

사진 (image)

  • Key (id) — integer — 기본 키 — NOT NULL
  • 원래파일명 (origin_name) — String — NOT NULL
  • 고유이름 (uuid_image_name) — String — NOT NULL
  • 폴더경로 (path) — String — NOT NULL
  • 파일타입 (type) — String — NOT NULL
  • Key (user) — integer — 외래 키 → 유저.Key — 식별자

시도 행정지역 (CopyOfCopyOfUntitled9)

  • 지역 ID (Key) — 기본 키 — NOT NULL
  • 행정지역 코드 (Field)
  • 행정지역명 (Field2)
  • 정보버전 (Field3)

알림 (Untitled10)

  • Key — 기본 키 — NOT NULL
  • 환자 (id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 알림제목 (Field5) — char(30) — NOT NULL
  • 알림메시지 (Field) — char(100) — NOT NULL
  • 읽기여부 (Field2) — boolean — NOT NULL
  • 알림타입 (Field3) — NOT NULL
  • 생성시간 (Field4) — date

약 (medicine)

  • PK (Key) — integer — 기본 키 — NOT NULL
  • 약봉투id (prescription_id) — integer — 외래 키 → 약봉투.Key — NOT NULL
  • 유저아이디 (user_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 중복성분아이디 (Key2) — 외래 키 → 중복성분약.성분코드 — NOT NULL
  • 약이름(코드) (pill_name) — char(100) — NOT NULL — 동화디트로판정(옥시부티닌염산염)
  • 복용날짜 (date) — date — NOT NULL
  • 복용했는지 (is_taken) — boolean — NOT NULL
  • 개수 (pill_cnt) — integer — NOT NULL
  • 반알여부 (is_half) — boolean — NOT NULL
  • 성분중복여부 (is_overlap)

약국 (CopyOfUntitled7)

  • Key (id) — integer — 기본 키 — NOT NULL
  • userid (user_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 좌표 (point) — point — NOT NULL
  • 이름 (name) — char(50) — NOT NULL
  • 소개 (introduce) — char(300)
  • 타입 (Field) — enum(''hospital,'pharmacy') — NOT NULL

약봉투 (Untitled)

  • Key (id) — 기본 키 — NOT NULL
  • 유저아이디 (user_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 약국이름 (pharmacy_name) — char(30)
  • 처방날짜 (prescribed_date) — date
  • 생성날짜 (created_date) — date — NOT NULL
  • 총복용횟수 (total_cnt) — integer — NOT NULL — Time단위

유저 (User)

  • Key (id) — integer — 기본 키 — NOT NULL — 식별자
  • 소셜아이디 (social_id) — char(100) — NOT NULL
  • 로그인타입 (login_provider) — enum('KAKAO','GOOGLE','APPLE') — NOT NULL — KAKAO,GOOGLE,APPLE
  • 유저이름 (name) — char(20)
  • 휴대폰번호 (tel) — char(15)
  • 생년월일 (birthdday) — char(20)
  • 유저타입 (usertype) — enum('USER','ADMIN') — NOT NULL
  • 성별 (sex) — enum('MAN','WOMAN')
  • 직업 (job) — enum("PATIENT","DOCTOR","PHARMACIST","DIETITIAN")
  • 생성날짜 (create_date) — date — NOT NULL
  • 리프레시토큰 (refresh_token) — char(300) — NOT NULL
  • 디바이스토큰 (device_token) — char(300)
  • 로그인여부 (is_login) — boolean
  • IOS여부 (is_ios) — boolean
  • 탈퇴날짜 (expiration_date) — date

중복성분약 (Untitled2)

  • 성분코드 (atc) — 기본 키 — NOT NULL
  • 위험도 (risk)

환자 전문가 채팅 (CopyOfUntitled32)

  • Key (id) — integer — 기본 키 — NOT NULL
  • 전문가아이디 (expert_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 환자아이디 (patient_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 생성날짜 (created_date) — date

환자 전문가 채팅 내역 (CopyOfCopyOfUntitled32)

  • Key (id) — integer — 기본 키 — NOT NULL
  • 채팅방 아이디 (room_id) — integer — 외래 키 → 환자 전문가 채팅.Key — NOT NULL
  • 채팅친사람아이디 (chatter_id) — integer — 외래 키 → 유저.Key — NOT NULL — 식별자
  • 생성날짜 (created_date) — date
  • Field (content) — char(300)