neotoma/sync-server

View on GitHub
app/models/attribute.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Attribute model
 * @module
 */

var modelFactory = require('app/factories/model');

/**
 * Represents attribute of app
 * @class Attribute
 * @property {string} value - Value of attribute
 */
module.exports = modelFactory.new('Attribute', {
  _id: { type: String, required: true },
  value: { type: String, required: true }
}, {
  jsonapi: {
    get: 'public'
  }
});