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 Dec 31, 2016 · 21 revisions

Layout

  • main
    • township-access: Stores the users' access scopes (rights)
    • township-auth: Stores the authentication credentials. User/pass, etc.
    • township-auth-indexes: indexes for township-auth. For basic auth, provides email->cred lookup
    • township-token: Stores invalidated tokens.
    • settings: Map of id => settings obj.
    • indexes: Index of username => id, email => id.

Settings object

Schema:

{
  username: String, the chosen username
  profileUrl: String, the url of the profile dat
  
  isEmailVerified: Boolean
  isProfileDatVerified: Boolean
}
Clone this wiki locally