Last active
October 21, 2018 10:09
-
-
Save lokhmakov/75f9ffef014d5044cd61c16a21991a69 to your computer and use it in GitHub Desktop.
models/CoreEntity.js
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
var keystone = require('keystone') | |
var Types = keystone.Field.Types | |
var CoreEntity = new keystone.List('CoreEntity') | |
CoreEntity.add({ | |
name: { type: String, required: true, index: true, }, | |
}) | |
CoreEntity.defaultColumns = 'name' | |
CoreEntity.register() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment