email

테이블 (8)

게스트 (HubCustomer)

  • PK (id) — string — 기본 키 — NOT NULL

멤버 (HubMember)

  • PK (id) — string — 기본 키 — NOT NULL

이메일 메시지 (hub_email_messages)

  • PK (id) — string — 기본 키 — NOT NULL — 이메일 메시지 템플릿
  • FK (hub_channel_id) — string — 외래 키 → 채널.PK — NOT NULL — 어떤 채널의 이메일 메시지인지 구분하기 위함
  • 템플릿 이름 (title) — string — NOT NULL — 어드민에서 메시지 템플릿을 구분하기 위한 속성
  • 템플릿 설명 (description) — string — NOT NULL
  • 생성일자 (created_at) — Date — NOT NULL
  • 삭제일자 (deleted_at) — Date

이메일 메시지 내용 (hub_email_message_contents)

  • PK (id) — string — 기본 키 — NOT NULL — 이메일 메시지 히스토리 관리를 위함
  • FK (hub_email_message_id) — string — 외래 키 → 이메일 메시지.PK — NOT NULL
  • 제목 (title) — string — NOT NULL
  • 내용 (body) — string — NOT NULL
  • 생성일자 (created_at) — Date — NOT NULL

이메일 인증 내역 (hub_email_verifications)

  • PK (id) — string — 기본 키 — NOT NULL
  • FK (hub_customer_id) — string — 외래 키 → 게스트.PK — NOT NULL — 이메일 인증 후, 이메일 발송과 동일 customer인 경우만 인증번호 확인 및 비밀번호 설정 가능. 그 외는 불가
  • FK (hub_email_message_content_id) — string — 외래 키 → 이메일 메시지 내용.PK — NOT NULL
  • FK (hub_member_id) — string — 외래 키 → 멤버.PK — 이미 member가 존재하는 경우, 계정 통합을 위해 설정
  • FK (hub_channel_id) — string — 외래 키 → 채널.PK — NOT NULL — 어떤 채널의 이메일 인증 내역인지 확인을 위해 설정
  • 인증코드 (code) — string — NOT NULL — 랜덤 6자리 숫자
  • 발신일자 (created_at) — Date — NOT NULL
  • 인증번호 만료일자 (expired_at) — Date — NOT NULL
  • 인증완료 일자 (verified_at) — Date — 해당 인증 완료 일자로부터 일정 시간 뒤까지만 비밀번호 설정 및 member 생성이 유효하도록 설정

이메일 인증 내역2 (hub_email_verifications2)

  • PK (id) — string — 기본 키 — NOT NULL
  • FK (hub_customer_id) — string — 외래 키 → 게스트.PK — NOT NULL — 이메일 인증 후, 이메일 발송과 동일 customer인 경우만 인증번호 확인 및 비밀번호 설정 가능. 그 외는 불가
  • FK (hub_member_id) — string — 외래 키 → 멤버.PK — 이미 member가 존재하는 경우, 계정 통합을 위해 설정
  • FK (hub_channel_id) — string — 외래 키 → 채널.PK — NOT NULL
  • 인증코드 (code) — string — NOT NULL — 랜덤 6자리 숫자
  • 발신일자 (created_at) — Date — NOT NULL
  • 인증 타입 (type) — string — NOT NULL — "signup", "change-email", "change-password"
  • 인증번호 만료일자 (expired_at) — Date — NOT NULL
  • 인증완료 일자 (verified_at) — Date — 해당 인증 완료 일자로부터 일정 시간 뒤까지만 비밀번호 설정 및 member 생성이 유효하도록 설정
  • 삭제일자 (deleted_at) — Date — 해당 인증에 대해서 인증 후, 비밀번호 변경, 이메일 변경 등 완료하면 삭제

이메일 전송 내역 (hub_email_message_histories)

  • PK (id) — string — 기본 키 — NOT NULL
  • FK (hub_email_message_content_id) — string — 외래 키 → 이메일 메시지 내용.PK — NOT NULL
  • FK (hub_channel_id) — string — 외래 키 → 채널.PK — NOT NULL
  • 발신자 이메일 (from) — string — NOT NULL
  • 수신자 이메일 (to) — string — NOT NULL
  • 발신일자 (created_at) — Date — NOT NULL

채널 (hub_channels)

  • PK (id) — string — 기본 키 — NOT NULL