DU-Sales-Management

Tables (4)

invited_postmans (포스트맨 그룹 초대 관리)

  • _id (기본 고유 값) — ObjectId — Primary key — NOT NULL
  • isAccepted (수락 여부) — Boolean
  • userId (포스트맨 회원 ObjectId) — ObjectId — Foreign key → postman_users._id — NOT NULL
  • groupId (초대된 그룹 고유 ObjectId) — ObjectId — Foreign key → postman_groups._id — NOT NULL
  • receiverName (초대받은 사람의 이름) — String
  • receiverPhone (초대받은 사람의 전화번호) — String
  • invitedAt (초대된 날짜) — Date
  • acceptedAt (수락한 날짜) — Date

postman_group_managements (포스트맨 그룹 멤버 관리)

  • _id (기본 고유 값) — ObjectId — Primary key — NOT NULL
  • userId (포스트맨 회원 ObjectId) — ObjectId — Foreign key → postman_users._id — NOT NULL
  • groupId (그룹 고유 ObjectId) — ObjectId — Foreign key → postman_groups._id — NOT NULL
  • postboxUserId (우편함 유저 아이디) — ObjectId
  • memberRole (그룹에서의 역할) — String
  • isActive (그룹 가입 상태 활성화 여부) — Boolean

postman_groups (포스트맨 그룹 정보)

  • _id (기본 고유 값) — ObjectId — Primary key — NOT NULL
  • name (그룹명) — String
  • registrationNumber (고유 등록 번호) — String
  • code (그룹 고유 코드) — String
  • type (그룹 분야) — String
  • masterUserId (그룹 생성 마스터 ObjectId) — ObjectId — Foreign key → postman_users._id — NOT NULL
  • createdAt (그룹 생성 일자) — Date
  • updatedAt (그룹 정보 수정 일자) — Date
  • isActive (그룹 활성화 여부) — Boolean

postman_users (포스트맨 회원 정보)

  • _id (기본 고유 값) — ObjectId — Primary key — NOT NULL
  • userId (우편함 유저 ObjectId) — ObjectId
  • createdAt (계정 생성 일자) — Date
  • updatedAt (계정 정보 수정 일자) — Date
  • isAcitve (계정 활성화 여부) — Boolean