Whatsapp Chat

테이블 (7)

닥터모델 (DoctorModel)

  • 의사아이디 (id) — GUID — 기본 키 — NOT NULL
  • 이름 (fullName) — string

매니저모델 (ManagerModel)

  • 매니저아이디 (id) — GUID — 기본 키 — NOT NULL
  • 이름 (fullName) — string

메시지모델 (MessageModel)

  • 메세지 아이디 (messageId) — GUID — 기본 키 — NOT NULL
  • 채팅아이디 (chatid) — GUID — 외래 키 → 채팅모델.채팅아이디 — NOT NULL
  • 메세지 송신자 (user) — UserModel
  • 컨텐츠 (cotent) — string
  • 타임스탬프 (timestamp) — Date
  • 메세지 상태 (status) — string
  • 메세지 타입 (type) — string

채팅리스트 (ChatListModel)

  • 데이터 (items) — List<ChatListItemModel>
  • 메타데이터 (metadata) — PagedListMetaData

채팅모델 (ChatModel)

  • 채팅아이디 (chatid) — GUID — 기본 키 — NOT NULL
  • 메세지 송신자 (user) — UserModel
  • 최근메세지 (lastestMessage) — string
  • 시간 (time) — Date
  • 할당여부 (isTaken) — boolean
  • 할당요원 (takenBy) — ManagerModel | DoctorModel
  • 안읽은 메세지 카운트 (unreadCount) — number
  • 메세지 (messages) — List<MessageModel>

채팅아이템모델 (ChatListItemModel)

  • 채팅아이디 (chatId) — GUID — 외래 키 → 채팅모델.채팅아이디 — NOT NULL
  • 유저아이디 (userId) — GUID
  • 프로필사진 (photoThumbnail) — string
  • 이름 (fullName) — string
  • 최근메세지 (lastestMessage) — string
  • 시간 (time) — Date
  • 할당여부 (isTaken) — boolean
  • 할당요원 (takenBy) — ManagerModel | DoctorModel
  • 안읽은 메세지 카운트 (unreadCount) — number

채팅옵션모델 (ChatOptionModel)

  • 병원 아이디 (HospitalId) — guid — 기본 키 — NOT NULL
  • 자동 채팅 닫기 (autoClosing) — number
  • 알림 (notification) — boolean
  • Field