The User Model

flitter-auth/deploy/models/User.model.js

deploys to:  app/models/auth/User.model.js         exports: User

const User

type:  Object

username

type:  String

Stores the username of the User. Validated to be alphanumeric by the Auth controller.

password

type:  String

Stores the B-Crypt password hash of the User.

data

type:  String

Stringified JSON object with misc data.

uuid

type:  String

Universally-Unique ID of the user. Usually set by the uuid package in the Auth controller.

No Comments
Back to top