User

Models. Namespace

User

Description:
  • 사용자

    Indexes Properties
    _id UNIQUE
    userId_1 UNIQUE
Version:
  • 2.0.0

Type Definitions

TSnsId

Properties:
Name Type Attributes Description
google string <nullable>

gogole email

TUser

Properties:
Name Type Attributes Default Description
_id ObjectId
userId string

unique; validate

userName string

validate

password string

validate; API로 조회할 수 없다; bcrypt로 해시화되어 저장된다;

auth "owner" | "admin" | "manager" | "member" "member"

등급

email string <nullable>

validate

tel string <nullable>

validate

snsId TSnsId <nullable>

소셜 로그인 계정

schools Array.<TUserSchool>

등록된 학교 목록

profile string <nullable>

프로필 사진 주소

academyId string
academyName string
calendar string <nullable>

개인 캘린더 공유 ID

TUserSchool

Properties:
Name Type Description
school ObjectId

ObjectId of school

schoolId string
schoolName string