This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-- encoding: UTF-8 | |
#-- copyright | |
# OpenProject is a project management system. | |
# Copyright (C) 2012-2017 the OpenProject Foundation (OPF) | |
# | |
# This program is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU General Public License version 3. | |
# | |
# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: | |
# Copyright (C) 2006-2017 Jean-Philippe Lang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Model | |
var keystone = require('keystone'), | |
Types = keystone.Field.Types; | |
// Set new model | |
var Example = new keystone.List('Example', { | |
nocreate: true | |
}); | |
// Set the fields of your model |