'use strict'

let imponderous = require('../../index')

class User extends imponderous.Model {
  static get schema () {
    return {
      name: {
        index: true
      },
      email: {
        unique: true,
        required: true,
        validator: 'email'
      },
      dob: {
        type: Date
      }
    }
  }
}

module.exports = User

'use strict'

let imponderous = require('../../index')

class User extends imponderous.Model {
  static get schema () {
    return {
      name: {
        index: true
      },
      email: {
        unique: true,
        required: true,
        validator: 'email'
      },
      dob: {
        type: Date
      },
      spam: {
        type: String
      }
    }
  }
}

module.exports = User

Make "spam" property on test User model a String.
Make "spam" property on test User model a String.
