{"size": 425, "ext": "js", "max_stars_repo_path": "app/model/Goodsclass.js", "max_stars_repo_name": "jingshenchen/egg-mall", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/model/Goodsclass.js", "max_issues_repo_name": "jingshenchen/egg-mall", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/model/Goodsclass.js", "max_forks_repo_name": "jingshenchen/egg-mall", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.3684210526, "max_line_length": 53, "alphanum_fraction": 0.6305882353}
'use strict';

module.exports = app => {
  const { STRING, DATE } = app.Sequelize;
  const UUID = require('uuid');
  // 商品类别表model
  const Goodsclass = app.model.define('goodsclass', {
    goods_class_id: {
      type: UUID,
      primaryKey: true,
      defaultValue: UUID.v4() },
    goods_class_name: STRING(200),
    goods_class_url: STRING(200),
    updated_at: DATE,
    created_at: DATE,
  });
  return Goodsclass;
};
