doc_classify.js 746 Bytes
/* indent size: 2 */

module.exports = app => {
    const DataTypes = app.Sequelize;
  
    const Model = app.model.define('doc_classify', {
      id: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        primaryKey: true,
        autoIncrement: true
      },
      title: {
        type: DataTypes.STRING(255),
        allowNull: false
      },
      description: {
        type: DataTypes.STRING(255),
        allowNull: false
      },
      created_at: {
        type: DataTypes.DATE,
        allowNull: true
      },
      updated_at: {
        type: DataTypes.DATE,
        allowNull: true
      }
    }, {
      tableName: 'doc_classify'
    });
  
    Model.associate = function() {
  
    }
  
    return Model;
  };