Pet

Tables (6)

AIGeneratedImage (AI 생성 포스터이미지)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • imageId (이미지 아이디) — BIGINT — Foreign key → Image.id — NOT NULL
  • reportId (접수 정보 아이디) — BIGINT — Foreign key → Report.id — NOT NULL
  • createdAt (생성 시간) — DATETIME — NOT NULL
  • updatedAt (수정 시간) — DATETIME — NOT NULL

Image (사진)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • createdAt (생성 시간) — DATETIME — NOT NULL
  • updatedAt (수정 시간) — DATETIME — NOT NULL

Location (위치)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • reportId (접수 정보 아이디) — BIGINT — Foreign key → Report.id — NOT NULL
  • coordinate (POINT) — 위치 정보 좌표 — NOT NULL
  • detail (TEXT) — 장소 관련 세부 추가정보

LocationMarkerImage (Untitled)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • imageId (이미지 아이디) — BIGINT — Foreign key → Image.id — NOT NULL
  • locationId (위치 아이디) — BIGINT — Foreign key → Location.id — NOT NULL
  • createdAt (생성 시간) — BIGINT — NOT NULL
  • updatedAt (수정 시간) — BIGINT — NOT NULL

Report (접수 정보)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • reportType (제보 유형) — ENUM — NOT NULL
  • caseTime (사건 발생 시간) — DATETIME — NOT NULL
  • additionalInfo (추가 정보) — TEXT
  • email (제보자 email) — VARCHAR(100)
  • phoneNumber (제보자 전화번호) — VARCHAR(100)
  • petName (반려동물 이르) — VARCHAR(50)
  • types (동물 종류) — ENUM
  • species (품종) — VARCHAR(50)
  • gender (성별) — ENUM

ReportImage (접수 정보 관련 이미지)

  • id (아이디) — BIGINT — Primary key — NOT NULL
  • imageId (이미지 아이디) — BIGINT — Foreign key → Image.id — NOT NULL
  • reportId (접수 정보 아이디) — BIGINT — Foreign key → Report.id — NOT NULL
  • createdAt (생성 시간) — DATETIME — NOT NULL
  • updatedAt (수정 시간) — DATETIME — NOT NULL