SeeYouAgain
Tables (15)
ANIMAL (동물)
- animal_id (id) — auto_increment — Primary key — NOT NULL — id 값
- animal_location_id (animalLocationId) — auto_increment — Foreign key → ANIMAL_LOCATION.animal_location_id — NOT NULL — animal_location_id 값
- breed_type_id (breedTypeId) — auto_increment — Foreign key → BREED_TYPE.breed_type_id — NOT NULL — breed_type id값
- desertion_no (desertionNo) — 유기 고유 번호
- happen_date (happenDate) — 발생일
- happen_place (happenPlace) — 발견장소
- animal_type (animalType) — 이메일 — 실종/목격/유기 구분값
- city — 이메일 — 시
- town — 이메일 — 도
- species — 축종(개, 고양이, 기타)
- color — 색상
- birth — 태어난 연도
- weight — 몸무게
- notice_no (noticeNo) — 공고번호
- notice_start_date (noticeStartDate) — 공고 시작일
- notice_end_date (noticeEndDate) — 공고 종료일
- process_state (processState) — 보호유무
- sex — 성별
- neutered_state (neuteredState) — 중성화 유무
- special_mark (specialMark) — 특이점
- center_phone (centerPhone) — 전화번호
- final_updated_at (finalUpdatedAt) — 최종 업데이트 시간
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
ANIMAL_BY_KEYWORD (알림 키워드와 유기동물 키워드 연결)
- animal_by_keyword_id (id) — auto_increment — Primary key — NOT NULL — id값
- notification_keyword_id (notificationKeywordId) — auto_increment — Foreign key → NOTIFICATION_KEYWORD.notification_keyword_id — NOT NULL — noficication_keyword id 값
- animal_id (animalId) — auto_increment — Foreign key → ANIMAL.animal_id — NOT NULL — animal id 값
- created_at (createdAt) — 발생일 — 생성 시간
- updated_at (updatedAt) — 발생일 — 수정 시간
ANIMAL_LOCATION (동물 위치)
- animal_location_id (id) — auto_increment — Primary key — NOT NULL — id값
- name — 이메일 — 보호소 명
- address — 이메일 — 도로명 주소
- latitude — 위도 — 위도
- longitude — 위도 — 경도
- center_no (centerNo) — 이메일 — 보호소 고유 번호
ANIMAL_PROFILE (유기동물 프로필)
- animal_profile_id (id) — auto_increment — Primary key — NOT NULL — id 값
- animal_id (animalId) — auto_increment — Foreign key → ANIMAL.animal_id — NOT NULL — animal id 값
- profile — 이메일 — 프로필
- happen_date (happenDate) — 발생일 — 발생일
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
ANIMAL_S3_PROFILE (동물 S3 프로필)
- animal_s3_profile_id (id) — auto_increment — Primary key — NOT NULL — id 값
- animal_id (animalId) — auto_increment — Foreign key → ANIMAL.animal_id — NOT NULL — animal_id 값
- image_type (imageType) — 이메일 — 이미지 타입
- profile — 이메일 — url
- is_deleted (isDeleted) — 삭제 여부 — 삭제 여부
BOARD (게시물)
- board_id (id) — auto_increment — Primary key — NOT NULL — id값
- member_id (memberId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — member id 값
- animal_id (animalId) — auto_increment — Foreign key → ANIMAL.animal_id — NOT NULL — animal id값
- type — WITNESS/MISSING 타입 구분
- title — 제목
- content — 내용
- is_deleted (isDeleted) — 삭제 여부
- violated_status (violatedStatus) — 대기/위반/위반안함
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
BOARD_TAG (게시물 태그)
- board_tag_id (id) — auto_increment — Primary key — NOT NULL — id값
- board_id (boardId) — auto_increment — Foreign key → BOARD.board_id — NOT NULL — board id값
- name — 태그명
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
BOOK_MARK (북마크)
- book_mark_id (id) — auto_increment — Primary key — NOT NULL — id값
- member_id (memberId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — member id 값
- animal_id (animalId) — auto_increment — Foreign key → ANIMAL.animal_id — NOT NULL — animal id 값
- is_deleted (isDeleted) — 삭제 여부
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
BREED_TYPE (품종 타입)
- breed_type_id (id) — auto_increment — Primary key — NOT NULL — id값
- name — 품종명
- type — DOG/CAT/ETC 타입 구분
- code — 이메일 — 품종 코드
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
CHAT_MESSAGE (채팅메시지)
- chat_message_id (id) — auto_increment — Primary key — NOT NULL — id 값
- chat_room_id (chatRoomId) — auto_increment — Foreign key → CHAT_ROOM.chat_room_id — NOT NULL — chat_room id 값
- sender_id (senderId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — 메시지 발신자 ID
- content — 텍스트 메시지 내용 - messageType이 TEXT일 때 사용
- is_read (isRead) — 읽음 여부
- is_deleted (isDeleted) — 삭제 여부
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
CHAT_ROOM (채팅방)
- chat_room_id (id) — auto_increment — Primary key — NOT NULL — id 값
- sender_id (senderId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — 채팅을 시작한 사용자 ID
- receiver_id (receiverId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — receiverId는 해당 boardId의 작성자(Board.memberId)와 동일해야 함
- board_id (boardId) — auto_increment — Foreign key → BOARD.board_id — NOT NULL — 게시물 ID의 타입때문에 받아와야 함
- type — WITNESS/MISSING 구분
- last_message_at (lastMessageAt) — 마지막 메시지 전송 시간 - 채팅방 목록 정렬용
- is_deleted (isDeleted) — 삭제 여부
- violated_status (violatedStatus) — 대기/위반/위반안함
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
FCM_TOKEN (FCM 토큰)
- fcm_token_id (id) — auto_increment — Primary key — NOT NULL — id값
- member_id (memberId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — member id 값
- token — token
- device_id (deviceId) — 이메일 — 기기 id
- device_type (deviceType) — 이메일 — WEB/ANDROID/IOS 기기 타입
- last_used_at (lastUsedAt) — 발생일 — 마지막으로 해당 토큰을 사용한 시간
- created_at (createdAt) — 발생일 — 생성 시간
- updated_at (updatedAt) — 발생일 — 수정 시간
MEMBER (사용자)
- member_id (id) — auto_increment — Primary key — NOT NULL — id값
- login_id (loginId) — 이메일 — 로그인 아이디
- password — 비밀번호
- nick_name (nickName) — 닉네임
- phone_number (phoneNumber) — 휴대폰
- profile — 프로필
- role — ADMIN, USER
- uuid — 고유 식별값
- social_id_kakao (socialIdKakao) — 이메일 — 카카오 소셜 id
- social_id_naver (socialIdNaver) — 이메일 — 네이버 소셜 id
- social_id_google (socialIdGoogle) — 이메일 — 구글 소셜 id
- google_refresh_token (googleRefreshToken) — 이메일 — 구글 리프레시 토큰
- naver_refresh_token (naverRefreshToken) — 이메일 — 네이버 리프레시 토큰
- violated_count (violatedCount) — 위반 횟수
- is_push_enabled (isPushEnabled) — 푸시 알림 여부
- is_deleted (isDeleted) — 삭제 여부 — 해당 유저 삭제 여부
- is_banned (isBanned) — 삭제 여부 — 신고로 차단 유무
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
NOTIFICATION_KEYWORD (알림 키워드)
- notification_keyword_id (id) — auto_increment — Primary key — NOT NULL — id값
- member_id (memberId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — member id 값
- keyword — 키워드
- keyword_type (keywordType) — 이메일 — 유기/목격
- keyword_category_type (keywordCategoryType) — 이메일 — 품종/지역
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간
VIOLATION (신고내역)
- violation_id (id) — auto_increment — Primary key — NOT NULL — id값
- reporter_id (reporterId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — 신고한 사람
- reported_member_id (reportedMembeId) — auto_increment — Foreign key → MEMBER.member_id — NOT NULL — 신고당한 사람
- board_id (boardId) — auto_increment — Foreign key → BOARD.board_id — NOT NULL — board_id가 null이고 chat_room_id가 있으면 채팅방 관련 신고임
- chat_room_id (chatRoomId) — auto_increment — Foreign key → CHAT_ROOM.chat_room_id — NOT NULL — chat_room id 값
- violated_status (violatedStatus) — 대기/위반/위반안함
- reason — 신고 사유
- detail_reason (detailReason) — 신고 상세 내용
- created_at (createdAt) — 생성 시간
- updated_at (updatedAt) — 수정 시간