libflitter/templates/model.js

/**
 * @module libflitter/templates/model
 */

/**
 * Get the contents of a new Model definition file with the specified object name.
 * @param {string} name - the object name of the new model definition
 * @returns {string}
 */
module.exports = exports = (name) => {
    return `/*
 * ${name} Model
 * -------------------------------------------------------------
 * Put some description here!
 */
const ${name} = {
    field_name: String,
}

module.exports = exports = ${name}`
}