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 Dec 31, 2016
·
21 revisions
-
main
-
township-access
: Stores the users' access scopes (rights) -
township-auth
: Map ofkey => Auth object
. -
township-auth-indexes
: Map ofemail => Auth object
. -
township-token
: Stores invalidated tokens. -
account
: Map ofkey => Account object
.-
indexes
: Index ofusername => key
,profileUrl => key
.
-
-
Schema:
{
key: String, uuid
basic: {
email: String
hash: String, hashed password
salt: String, salt used on hashed password
}
}
Schema:
{
username: String, the chosen username
profileUrl: String, the url of the profile dat
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)
}