FORPAW

Tables (26)

Alarm (알람)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • content (내용) — NOTNULL
  • isRead (확인 여부) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Animal (입양 동물)

  • desertionNo (유기번호) — NOTNULL — Primary key — NOT NULL
  • shelterId (보호소 아이디) — NOTNULL — Foreign key → Shelter.careRegNo — NOT NULL
  • name (동물 이름) — NOTNULL
  • happenDt (접수일) — NOTNULL
  • happenPlace (발견 장소) — NOTNULL
  • kind (품종) — NOTNULL
  • color (색상) — NOTNULL
  • age (나이) — NOTNULL
  • weight (체중) — NOTNULL
  • noticeSdt (공고시작일) — NOTNULL
  • noticeEdt (공고종료일) — NOTNULL
  • profileURL (동물 프로필 URL) — NOTNULL
  • processState (보호중 여부) — NOTNULL
  • gender (성별) — NOTNULL
  • neuter (중성화 여부) — NOTNULL
  • specialMark (특징) — NOTNULL
  • likeNum (좋아요 개수) — NOTNULL
  • inquiryNum (문의 횟수) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Apply (입양 지원서)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (지원자 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • animalId (동물 아이디) — NOTNULL — Foreign key → Animal.desertionNo — NOT NULL
  • status (진행 상태) — NOTNULL
  • name (이름) — NOTNULL
  • tel (연락처) — NOTNULL
  • residence (거주지) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

ChatRoom (채팅방)

  • id (아아디) — NOTNULL — Primary key — NOT NULL
  • groupId (그룹 아이디) — NOTNULL — Foreign key → Group.id — NOT NULL
  • name (채팅방 이름) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

ChatUser (참가자)

  • id (아아디) — NOTNULL — Primary key — NOT NULL
  • roomId (채팅방 아아디) — NOTNULL — Foreign key → ChatRoom.id — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Comment (댓글)

  • Key (아이디) — NOTNULL — Primary key — NOT NULL
  • postId (게시글 아이디) — NOTNULL — Foreign key → Post.id — NOT NULL
  • userId (작성자 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • content (댓글 내용) — NOTNULL
  • likeNum (좋아요 수) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

CommentLike (댓글 좋아요)

  • Key — Primary key — NOT NULL
  • commentId (댓글 아이디) — NOTNULL — Foreign key → Comment.Key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

FavoriteAnimal (관심동물)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • animalId (동물 아이디) — NOTNULL — Foreign key → Animal.desertionNo — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

FavoriteGroup (관심그룹)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • groupId (그룹 아이디) — NOTNULL — Foreign key → Group.id — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Group (그룹)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • name (모임 이름) — NOTNULL
  • region (광역시/시/군) — NOTNULL
  • subRegion (구/군) — NULL
  • description (모임 설명) — NOTNULL
  • category (그룹 카테고리) — NOTNULL
  • profileURL (그룹 프로필 URL) — NOTNULL
  • likeNum (좋아요 수) — NOTNULL
  • participationNum (참여자 수) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

GroupUser (그룹 맴버)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • groupId (그룹 아이디) — NOTNULL — Foreign key → Group.id — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • role (역할) — NOTNULL
  • greeting (가입 인사) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Inquiry (고객 문의)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • title (문의 제목) — NOTNULL
  • description (문의 내용) — NOTNULL
  • contactEmail (연락 메일) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

InquiryAnswer (답변)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • inquiryId (문의 아이디) — NOTNULL — Foreign key → Inquiry.id — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • answer (답변 내용) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

LoginAttempt (로그인 기록)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • clientIp (접속한 IP 주소) — NOTNULL
  • userAgent (접속 에이전트) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Meeting (정기 모임)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • groupId (그룹 아이디) — NOTNULL — Foreign key → Group.id — NOT NULL
  • userId (주최자 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • name (모임 이름) — NOTNULL
  • date (모임 날짜) — NOTNULL
  • location (모임 장소) — NOTNULL
  • cost (비용) — NOTNULL
  • participantNum (참여 인원수) — NOTNULL
  • maxNum (최대 참여 인원) — NOTNULL
  • description (설명) — NOTNULL
  • profileURL (모임 프로필 URL) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

MeetingUser (정기 모임 멤버)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • meetingId (모임 아이디) — NOTNULL — Foreign key → Meeting.id — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Message (메시지)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • roomId (채팅방 아이디) — NOTNULL — Foreign key → ChatRoom.id — NOT NULL
  • content (내용) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Post (게시글)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (작성자) — NOTNULL — Foreign key → User.id — NOT NULL
  • groupId (그룹 아이디) — NULL — Foreign key → Group.id — NOT NULL
  • type (게시글 유형) — NOTNULL
  • title (제목) — NOTNULL
  • content (내용) — NOTNULL
  • likeNum (좋아요 수) — NOTNULL
  • viewNum (조회수) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

PostImage (게시글 이미지)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • postID (게시글 아이디) — NOTNULL — Foreign key → Post.id — NOT NULL
  • imageURL (이미지 URL) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

PostLike (게시글 좋아요)

  • id (아아디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • postId (게시글 아이디) — NOTNULL — Foreign key → Post.id — NOT NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

RegionCode (시도군 코드)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • uprCd (시도 코드) — NOTNULL
  • orgCd (시군구 코드) — NOTNULL
  • orgdownNm (시군 이름) — NOTNULL

Report (신고)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • postId (게시글 아이디) — NOTNULL — Foreign key → Post.id — NOT NULL
  • commentId (댓글 아이디) — NOTNULL — Foreign key → Comment.Key — NOT NULL
  • reporter (신고자) — NOTNULL — Foreign key → User.id — NOT NULL
  • status (처리 상태) — NOTNULL
  • type (신고 유형) — NOTNULL
  • reson (신고 이유) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

Shelter (보호소)

  • careRegNo (보호소 번호) — NOTNULL — Primary key — NOT NULL
  • reginCodeId (시도군 코드 아이디) — NOTNULL — Foreign key → RegionCode.id — NOT NULL
  • name (보호소 이름) — NOTNULL
  • careTel (보호소 전화번호) — NOTNULL
  • careAddr (보호 장소) — NOTNULL
  • orgName (관할 지역명) — NOTNULL
  • latitude (위도) — NOTNULL
  • longitude (경도) — NOTNULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

User (사용자)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • name (이름) — NOTNULL
  • nickName (닉네임) — NOTNULL
  • email (이메일) — NOTNULL
  • password (비밀번호) — NOTNULL
  • role (역할) — NOTNULL
  • profileURL (유저 프로필 URL) — NULL
  • region (활동 지역, 시/도/군) — NOTNULL
  • subRegion (활동 지역, 군/구) — NULL
  • createdData (생성일자) — NOTNULL
  • updatedData (수정일자) — NOTNULL

UserStatus (유저 상태)

  • id (아이디) — NOTNULL — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • isActive (활성화 여부) — NOTNULL
  • suspensionStart (정지 시작 날짜) — NOTNULL
  • suspensionDays (정지 기간) — NOTNULL

VIsit (방문)

  • Key — Primary key — NOT NULL
  • userId (유저 아이디) — NOTNULL — Foreign key → User.id — NOT NULL
  • date (방문 날짜) — NOTNULL