Tea42

테이블 (4)

블록 테이블 (Block)

  • 유저 아이디 (user_id) — int — 외래 키 — NOT NULL
  • 타겟 아이디 (target_id) — int — 외래 키 → 유저 정보 테이블.랜덤 생성 아이디 — NOT NULL

신고 내역 테이블 (Report)

  • 유저 아이디 (user_id) — int — 외래 키 — NOT NULL
  • 랜덤 생성 아이디 (target_id) — int — 외래 키 → 유저 정보 테이블.랜덤 생성 아이디 — NOT NULL
  • 신고 이유 (reason) — int — NOT NULL
  • 신고 이유 상세 (reason_opt) — str

유저 정보 테이블 (User)

  • 랜덤 생성 아이디 (id) — int — 기본 키 — NOT NULL
  • 로그인 아이디 (login_id) — str
  • 비밀번호 (해시값) (password) — str
  • Oauth 여부 (oauth) — int
  • 이메일 주소 (email) — str
  • 이메일 인증 여부 (email_check) — bool
  • 이메일 인증 키 (링크용) (email_key) — str
  • 이름 (name) — str — NOT NULL
  • 성 (last_name) — str
  • 나이 (age) — int — INDEX 생성
  • 마지막 접속 시간 (last_online) — datetime
  • 위도 (latitude) — float
  • 경도 (longitude) — float
  • 프로필 보여진 수 (count_view) — int
  • 받은 fancy 수 (count_fancy) — int
  • 성별 (gender) — int
  • 프로필사진 (pictures) — [string]
  • 취향 (성별) (taste) — int
  • 자기소개 (bio) — str
  • 태그 (int 중첩) (tags) — int
  • 싫은 태그 (int 중첩) (hate_tags) — int
  • 이모티콘 (int 중첩) (emoji) — int
  • 싫은 이모티콘 (int 중첩) (hate_emoji) — int
  • 비슷한 취향 추천 여부 (similar) — bool

타겟 유저 확인 테이블 (History)

  • 유저 아이디 (user_id) — int — 외래 키 — NOT NULL
  • 타겟 아이디 (target_id) — int — 외래 키 → 유저 정보 테이블.랜덤 생성 아이디 — NOT NULL
  • fancy 여부 (fancy) — bool — NOT NULL
  • fancy한 시간 (fancy_time) — datetime
  • fancy 확인 여부 (fancy_check) — bool
  • 프로필 확인 시간 (last_view) — datetime — NOT NULL