This repository has been archived by the owner on Jan 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Users Schema
Paul Frazee edited this page Jan 9, 2017
·
21 revisions
-
main
-
accounts
: Map ofid => Account object
. -
accounts-index
: Index ofusername => id
,email => id
,profileUrl => id
.
-
Schema:
{
id: String, the assigned 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
archives: [{
key: String, uploaded archive's key
name: String, optional shortname for the archive
}, ..]
scopes: Array(String), the user's access scopes
updatedAt: Number, the timestamp of the last update
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)
}