유저 관리 테이블

테이블 (5)

Client (로그인한 유저 정보)

  • 기기아이디 (diviceId) — String — 기본 키 — NOT NULL
  • 프로필 시스템아이디 (profileId) — String — 외래 키 → Profile.시스템아이디 — NOT NULL
  • 로그인한 운영체제 (os) — String
  • 로그인한 시간 (createAt) — Date
  • 마지막 접속 시간 (latestAt) — Date

EmailAuthenticationToken (이메일 인증 토큰)

  • 시스템아이디 (prfileId) — String — 외래 키 → Profile.시스템아이디 — NOT NULL
  • token — String
  • 만료일 (expirationAt) — Date

JWTToken (유저에 대한 토큰을 저장)

  • 기기아이디 (diviceId) — String — 기본 키 — NOT NULL
  • 프로필 시스템아이디 (profileId) — String — 외래 키 → Client.프로필 시스템아이디 — NOT NULL
  • token — String
  • 생성일 (createAt) — Date
  • 만료일 (expirationAt) — Date

Profile (유저에 대한 정보를 저장)

  • 시스템아이디 (id) — String — 기본 키 — NOT NULL
  • 유저 식별키 (key) — String
  • 별명 (nick_name) — String
  • 이메일 (email) — String
  • 비밀번호 (password) — String
  • 가입일 (createdAt) — Date
  • 마지막 비밀번호 갱신일 (passwordUpdatedAt) — Date

Role (권한)

  • 시스템아이디 (id) — String — 기본 키 — NOT NULL
  • 시스템아이디 (profileId) — String — 외래 키 → Profile.시스템아이디 — NOT NULL
  • 아이디 (referenceId) — String
  • 권한 타입 (type) — String
  • 권한 (roles) — List<String>