'use strict'

const Lucid = use('Lucid')

class User extends Lucid {

  static boot () {
    super.boot()
    this.defineHooks('beforeCreate', 'User.validate', 'User.encryptPassword')
  }

  static get deleteTimestamp () {
    return 'deleted_at'
  }

}

module.exports = User
