Skip to content

Instantly share code, notes, and snippets.

@lokhmakov
Last active October 21, 2018 10:09
Show Gist options
  • Save lokhmakov/75f9ffef014d5044cd61c16a21991a69 to your computer and use it in GitHub Desktop.
Save lokhmakov/75f9ffef014d5044cd61c16a21991a69 to your computer and use it in GitHub Desktop.
models/CoreEntity.js
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