Pawsitive

Tables (5)

Adoption (입양)

  • id (아이디) — Primary key — NOT NULL
  • id (보호소_id) — Foreign key → Shelter.id — NOT NULL
  • title (제목)
  • description (특이사항)
  • type (종류)
  • spec_type (세부 종류)
  • gender (성별)
  • neutering (중성화 여부)
  • age (추정 나이)
  • status (입양 상태)
  • created_at (생성 시각)
  • updated_at (수정 시각)

Application (봉사 신청)

  • id (아이디) — Primary key — NOT NULL
  • user_id (봉사자_id) — Foreign key → User.id — NOT NULL
  • volunteer_id (봉사_id) — Foreign key → Volunteer.id — NOT NULL
  • shelter_id (보호소_id) — Foreign key → Volunteer.shelter_id — NOT NULL
  • created_at (생성 시각)
  • updated_at (수정 시각)

Shelter (보호소)

  • id (아이디) — Primary key — NOT NULL
  • name (보호소 이름)
  • phone (보호소 전화번호)
  • shelter_manager_name (책임자 이름)
  • shelter_manager_phone (책임자 전화번호)
  • address (주소)
  • region (지역)
  • created_at (생성 시각)
  • updated_at (수정 시각)

User (봉사자)

  • id (아이디) — Primary key — NOT NULL
  • userId (유저 아이디)
  • password (비밀번호)
  • name (이름)
  • birth (생년월일)
  • phone (전화번호)
  • created_at (생성 시각)
  • updated_at (수정 시각)

Volunteer (봉사)

  • id (아이디) — Primary key — NOT NULL
  • shelter_id (보호소_id) — Foreign key → Shelter.id — NOT NULL
  • title (제목)
  • volunteer_date (봉사날짜)
  • number_of_staff (인원수)
  • content (봉사내용)
  • start_time (시작 시간)
  • end_time (끝나는 시간)
  • status (모집 상태)
  • created_at (생성 시각)
  • updated_at (수정 시각)