모먼트에이드

테이블 (4)

members (회원)

  • 식별자 (id) — 기본 키 — NOT NULL — primary key
  • 이메일 (email) — not null — NOT NULL — unique
  • 비밀번호 (password) — NOT NULL — encryption
  • 이름 (name) — NOT NULL
  • 상태 (status) — NOT NULL — pending, active, inactive, suspended, withdrawn
  • 역할 (role) — NOT NULL — volunteer

organizations (단체)

  • 식별자 (id) — email — 기본 키 — NOT NULL — primary key
  • 사업자번호 (business_number) — NOT NULL — unique
  • 단체명 (name) — NOT NULL — unique
  • 상태 (status) — NOT NULL — pending, active, inactive, suspended, withdrawn
  • 단체 소개 (description) — NOT NULL

reviews (후기)

  • 식별자 (id) — email — 기본 키 — NOT NULL — primary key
  • 작성자 (member_id) — 외래 키 → members.식별자 — NOT NULL — foreign key
  • 봉사 (volunteer_id) — email — 외래 키 → volunteers.식별자 — NOT NULL — foreign key
  • 제목 (title) — not null — NOT NULL
  • 내용 (content) — NOT NULL
  • 평점 (score) — NOT NULL

volunteers (봉사)

  • 식별자 (id) — email — 기본 키 — NOT NULL — primary key
  • 단체 (orgranization_id) — email — 외래 키 → organizations.식별자 — NOT NULL — foreign key
  • 담당자 이름 (contact_name) — NOT NULL
  • 담당자 이메일 (contact_email) — NOT NULL
  • 담당자 전화번호 (contact_phone) — NOT NULL
  • 제목 (title) — not null — NOT NULL
  • 내용 (content) — NOT NULL
  • 인원 (capacity) — NOT NULL
  • 장소 (location) — not null — NOT NULL
  • 모집 시작일시 (recruitment_start_at) — NOT NULL
  • 모집 종료일시 (recruitment_end_at) — NOT NULL
  • 봉사 시작일시 (volunteer_start_at) — NOT NULL
  • 봉사 종료일시 (volunteer_end_at) — NOT NULL
  • 상태 (status) — NOT NULL — pending, open, closed, ongoing, completed