Vorgestellt von Matthias Gutjahr / @mattsches
// models/users.js
var keystone = require('keystone'),
Types = keystone.Field.Types;
var User = new keystone.List('User');
User.add({
name: { type: Types.Name, required: true, index: true },
email: { type: Types.Email, initial: true, required: true, index: true },
password: { type: Types.Password, initial: true },
isOrganiser: { type: Boolean, initial: false }
});
User.register();