Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Users Schema

Paul Frazee edited this page Jan 4, 2017 · 21 revisions

Layout

  • main
    • accounts: Map of key => Account object.
      • indexes: Index of username => key, email => key, profileUrl => key.

Account object

Schema:

key: String, uuid
{
  username: String, the chosen username
  passwordHash: String, hashed password
  passwordSalt: String, salt used on hashed password

  email: String
  profileUrl: String, the url of the profile dat
  scopes: Array(String),
  createdAt: Number, the timestamp of creation time
  
  isEmailVerified: Boolean
  emailVerifyNonce: String, the random verification nonce

  isProfileDatVerified: Boolean
  profileVerifyToken: String, the profile verification token (stored so the user can refetch it)
}
Clone this wiki locally