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.


Revision #2
Created Wed, Mar 6, 2019 6:18 PM by Garrett Mills
Updated Tue, Mar 19, 2019 5:28 PM by Garrett Mills