nanu_oauth

Tables (7)

app_permisson (애플리케이션 권한 목록)

  • permission_id (권한 ID) — Primary key — NOT NULL
  • app_id (애플리케이션 고유ID) — NOT NULL — Foreign key → application.app_id — NOT NULL
  • permission_name (권한 이름)

application (앱)

  • app_id (애플리케이션 고유ID) — NOT NULL — Primary key — NOT NULL
  • app_owner (앱 소유자) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • app_name (애플리케이션 이름) — NOT NULL
  • app_info (애플리케이션 설명) — NOT NULL
  • app_permission_mode (애플리케이션 공개 여부) — NOT NULL
  • app_security_level (애플리케이션 보안 강도) — NOT NULL
  • app_secure_key (애플리케이션 JWT 비밀 해시)

granted_uri (허가된 URI)

  • uri_id (URI 고유ID) — NOT NULL — Primary key — NOT NULL
  • app_id (애플리케이션 고유ID) — NOT NULL — Foreign key → application.app_id — NOT NULL
  • redirect_uri (URI) — NOT NULL

oauth - redis (OAuth클라이언트 인증 코드 인증)

  • code_id (인증코드 고유ID) — NOT NULL — Primary key — NOT NULL

refresh_token (리프레시 토큰)

  • token_id (토큰 고유 ID) — NOT NULL — Primary key — NOT NULL
  • user_id (사용자 고유 ID) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • app_id (애플리케이션 고유ID) — NOT NULL — Foreign key → application.app_id — NOT NULL
  • access_date (접근 허가 날짜) — NOT NULL
  • refresh_token (리프레시 토큰) — NOT NULL

user (사용자)

  • user_id (사용자 고유 ID) — NOT NULL — Primary key — NOT NULL
  • user_device_token (사용자 디바이스 토큰) — NULL
  • user_pin (사용자 PIN) — NOT NULL
  • user_password (사용자 PW) — NOT NULL
  • user_name (사용자 이름) — NOT NULL
  • user_email (사용자 이메일) — NOT NULL
  • user_locate (사용자 지역) — NOT NULL

user_permission (사용자 권한 목록)

  • permission_id (권한 부여 고유ID) — NOT NULL — Primary key — NOT NULL
  • permission_id (권한 ID) — Foreign key → app_permisson.permission_id — NOT NULL
  • user_id (사용자 고유 ID) — NOT NULL — Foreign key → user.user_id — NOT NULL
  • permission_date (권한 부여일자) — NOT NULL
  • permission_info (권한 상세 내용) — NULL