kinover
Tables (15)
Attachment (첨부파일)
- 첨부파일아이디 (attachment_id) — Primary key — NOT NULL
- 가족아이디 (family_id) — Foreign key → Family.가족아이디 — NOT NULL
- 타겟아이디 (target_id)
- 타겟유형 (target_type)
- 파일경로 (file_url)
- 파일유형 (file_type)
- 업로드일자 (uploaded_at)
Challenge (가족챌린지)
- 챌린지아이디 (challenge_id) — Primary key — NOT NULL
- 추천챌린지아이디 (RecChallenge_id) — Foreign key → RecChallnege.추천챌린지아이디 — NOT NULL
- 가족아이디 (family_id) — Foreign key → Family.가족아이디 — NOT NULL
- 상태 (status)
- 제목 (title)
- 시작일자 (start_at)
- 종료일자 (end_at)
ChatRoom (채팅방)
- 채팅방아이디 (chat_room_id) — Primary key — NOT NULL
- 방타입 (room_type) — 개인, 그룹
- 생성일자 (created_at)
- 방이름 (name)
Comment (댓글)
- 댓글아이디 (comment_id) — Primary key — NOT NULL
- 추억아이디 (memory_id) — Foreign key → Memory.추억아이디 — NOT NULL
- 챌린지아이디 (challenge_id) — Foreign key → Challenge.챌린지아이디 — NOT NULL
- 작성자 (user_id) — Foreign key → User.유저아이디 — NOT NULL
- 생성일자 (created_at)
- 내용 (content)
- 타겟유형 (target_type)
- 타겟아이디 (target_id)
Family (가족)
- 가족아이디 (family_id) — Primary key — NOT NULL
- 가족명 (name) — NOT NULL
- 생성일자 (created_at)
- 수정일자 (updated_at)
FamilyUser (유저<->가족)
- 가족유저아이디 (family_user_id) — Primary key — NOT NULL
- 유저아이디 (user_id2) — Foreign key → User.유저아이디 — NOT NULL
- 가족아이디 (family_id) — Foreign key → Family.가족아이디 — NOT NULL
- 역할 (role) — NOT NULL
Memo (메모)
- 메모아이디 (memo_id) — Primary key — NOT NULL
- 채팅방아이디 (chat_room_id) — Foreign key → ChatRoom.채팅방아이디 — NOT NULL
- 내용 (content)
- 생성일자 (created_at)
Memory (추억)
- 추억아이디 (memory_id) — Primary key — NOT NULL
- 가족아이디 (family_id) — Foreign key → Family.가족아이디 — NOT NULL
- 작성자 (user_id) — Foreign key → User.유저아이디 — NOT NULL
- 날짜 (date)
- 제목 (title)
- 내용 (content)
- 생성일자 (created_at)
Message (메세지)
- 메세지아이디 (message_id) — Primary key — NOT NULL
- 채팅방아이디 (chat_room_id) — Foreign key → ChatRoom.채팅방아이디 — NOT NULL
- 발신자아이디 (user_id) — Foreign key → User.유저아이디 — NOT NULL
- 내용 (content)
- 생성일자 (created_at)
Notification (알림)
- 알림아이디 (notification_id) — Primary key — NOT NULL
- 알림유형 (notification_type)
- 읽기여부 (is_read)
- 알림제목 (title)
- 알림내용 (content)
- 생성일자 (created_at)
RecChallnege (추천챌린지)
- 추천챌린지아이디 (RecChallenge_id) — Primary key — NOT NULL
- 제목 (title)
- 종류 (category)
- 기간 (duration)
- 리워드 (reward)
- 설명 (description)
- 단계 (task)
Schedule (일정)
- 일정아이디 (schedule_id) — Primary key — NOT NULL
- 가족아이디 (family_id) — Foreign key → Family.가족아이디 — NOT NULL
- 유저아이디 (user_id) — Foreign key → User.유저아이디 — NOT NULL
- 시간 (time)
- 일정제목 (title)
- 일정날짜 (date)
- 개인일정여부 (is_personal)
- 메모 (memo)
TodayQuestion (오늘의 질문)
- 오늘의질문아이디 (today_question_id) — Primary key — NOT NULL
- 채팅방아이디 (chat_room_id) — Foreign key → ChatRoom.채팅방아이디 — NOT NULL
- 질문 (question)
User (유저)
- 유저아이디 (user_id) — Primary key — NOT NULL
- 이름 (name) — NOT NULL
- 생년월일 (birth) — NOT NULL
- 이메일 (email) — NOT NULL
- 비밀번호 (password) — NOT NULL
- 상태 (status)
- 프로필이미지 (profile_picture_url)
- 생성일자 (created_at)
- 수정일자 (updated_at)
- 전화번호 (phone_number)
UserChatRoom (채팅방<->유저)
- 유저채팅방아이디 (user_chat_room_id) — Primary key — NOT NULL
- 채팅방아이디 (chat_room_id2) — Foreign key → ChatRoom.채팅방아이디 — NOT NULL
- 유저아이디 (user_id) — Foreign key → User.유저아이디 — NOT NULL