DDM
테이블 (7)
건물 (building)
- Key (id) — 기본 키 — NOT NULL
- 건물이름 (buildingName) — string
- 시작 층 (startFloor) — number — ex) -1 = 지하1층, 1 = 1층
- 마지막 층 (endFloor) — number — ex) 10 = 10층
- 층별 마지막 호수 (endRoomNumber) — number — 층 + 호수 임을 주의
- 층별 시작 호수 (startRoomNumber) — number — 층 + 호수 임을 주의
문의 (qna)
- Key (id) — number — 기본 키 — NOT NULL
- Key (sellerId) — number — 외래 키 → 셀러.Key — NOT NULL
- Key (buyerId) — number — 외래 키 → 바이어.Key — NOT NULL
- 제목 (title) — string
- 질문 (question) — string
- 답변 (answer) — string
바이어 (buyer)
- Key (id) — number — 기본 키 — NOT NULL
- uid — string — 파이어베이스 UID
- 타입 (userType) — string — seller | buyer
- 이름 (username) — string
- 전화번호 (phone) — string
- 에이전시 (agency) — string
- 푸시알림동의 (notificationAgree) — boolean
- FCM토큰 (fcmToken) — string
- 마지막 활동날짜 (lastActiveDateTime) — datetime
- 랭크 (rank) — number — 권한용도로 사용한다고함
- 지역 (region) — string
- 프로필사진 (Field) — string
섹션 (section)
- Key — 기본 키 — NOT NULL
- Key (buildingId) — number — 외래 키 → 건물.Key — NOT NULL — 건물 아이디
- 섹션 (sectionName) — string — 섹션이름
셀러 (seller)
- Key (id) — number — 기본 키 — NOT NULL
- uid — string — 파이어베이스 UID
- 타입 (userType) — string — seller | buyer
- 이름 (username) — string
- 건물 (building) — string
- 층 (floor) — number
- 섹션 (section) — string
- 호수 (room) — number
- 전화번호 (phone) — string
- FCM토큰 (fcmToken) — string
- 마지막 활동날짜 (lastActiveDateTime) — datetime — 라이브요청이 성사된 순간 업데이트
- 푸시알림동의 (notificationAgree) — boolean
- 사업자등록증 (businessRegistrationImageUrl) — string
- 위챗 (weChatImageUrl) — string
- 카카오톡 ID (kakoId) — string
- 인스타그램 아이디 (instagramId) — string
- 설명 (description) — text
- 태그 (tags) — string — #태그1#태그2#태그3
- 랭크 (rank) — number — 권한용도로 사용한다고함
- 카테고리 (category) — string
- 프로필사진 (profileImage) — string
예약 (reservation)
- Key (id) — number — 기본 키 — NOT NULL
- Key (sellerId) — number — 외래 키 → 셀러.Key — NOT NULL — 셀러 ID
- Key (buyerId) — number — 외래 키 → 바이어.Key — NOT NULL — 신청인 ID
- 시작시간 (startDateTime) — datetime — 시작 날짜 및 시간
- 끝 시간 (endDateTime) — datetime — 끝나는 날짜 및 시간
- 상태 (status) — number — -2 : 취소,-1 : 거절, 0 : 신청, 1: 승인
- 취소한사람 (cenceler) — string — buyer | seller | null
친구 (friend)
- Key (id) — 기본 키 — NOT NULL
- Key (buyerId) — number — 외래 키 → 바이어.Key — NOT NULL — 바이어 ID
- Key (sellerId) — number — 외래 키 → 셀러.Key — NOT NULL — 셀러 ID
- 요청한사람 타입 (senderType) — string — buyer | seller
- 받은사람 타입 (receiverType) — string — buyer | seller
- 상태 (status) — number — 0 : 대기, 1: 승인
- 셀러가 즐찾한지 여부 (isSellerBookMark) — boolean
- 바이어가 즐찾한지 여부 (isBuyerBookMark) — boolean