const Sequelize = require("sequelize");
const db = require("../../db");

module.exports = db.sequelize.define("reviews", {
  id: {
    type: Sequelize.INTEGER,
    primaryKey: true,
    autoIncrement: true
  },

  topic: {
    type: Sequelize.STRING
  },
  message: {
    type: Sequelize.STRING
  },
  point: {
    type: Sequelize.INTEGER
  },
  shop: {
    type: Sequelize.INTEGER,
    references: 'shops',
    referencesKey: 'id'
  },
  name: {
    type: Sequelize.STRING
    
  }
});
