{"size": 941, "ext": "js", "max_stars_repo_path": "api/models/Ponto.js", "max_stars_repo_name": "riees-apps/riees-api", "max_stars_repo_stars_event_min_datetime": "2019-05-15T19:57:58.000Z", "max_stars_repo_stars_event_max_datetime": "2019-05-15T19:57:58.000Z", "max_issues_repo_path": "api/models/Ponto.js", "max_issues_repo_name": "riees-apps/riees-admin-api", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "api/models/Ponto.js", "max_forks_repo_name": "riees-apps/riees-admin-api", "max_forks_repo_forks_event_min_datetime": "2019-05-24T03:49:31.000Z", "max_forks_repo_forks_event_max_datetime": "2019-05-24T03:49:31.000Z"}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 17.7547169811, "max_line_length": 77, "alphanum_fraction": 0.3581296493}
/**
 * Ponto.js
 *
 * @description :: A model definition represents a database table/collection.
 * @docs        :: https://sailsjs.com/docs/concepts/models-and-orm/models
 */

module.exports = {

  attributes: {

    //  ╔═╗╦═╗╦╔╦╗╦╔╦╗╦╦  ╦╔═╗╔═╗
    //  ╠═╝╠╦╝║║║║║ ║ ║╚╗╔╝║╣ ╚═╗
    //  ╩  ╩╚═╩╩ ╩╩ ╩ ╩ ╚╝ ╚═╝╚═╝

    nome: {
      type: 'string',
      required: true,
      example: 'Convento da Penha'
    },
    descricao: {
      type: 'string',
      required: true,
      example: 'Fica no alto de um morro do lado do Morro do Moreno'
    },


    //  ╔═╗╔╦╗╔╗ ╔═╗╔╦╗╔═╗
    //  ║╣ ║║║╠╩╗║╣  ║║╚═╗
    //  ╚═╝╩ ╩╚═╝╚═╝═╩╝╚═╝


    //  ╔═╗╔═╗╔═╗╔═╗╔═╗╦╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
    //  ╠═╣╚═╗╚═╗║ ║║  ║╠═╣ ║ ║║ ║║║║╚═╗
    //  ╩ ╩╚═╝╚═╝╚═╝╚═╝╩╩ ╩ ╩ ╩╚═╝╝╚╝╚═╝

    capa: {
      type: 'string',
      allowNull: true
    },
    cidade: {
      model: 'cidade'
    },
    admin: {
      model: 'admin',
      required: true
    },

  },

};

