module.exports = (sequelize, DataTypes) => {
  return sequelize.define(
    "location",
    {
      id: {
        type: DataTypes.INTEGER,
        primaryKey: true,
        autoIncrement: true,
      },
      name: DataTypes.STRING,
    },
    {
      timestamps: true,
      freezeTableName: true,
      tableName: "location",
      createdAt: "created_at",
      updatedAt: "updated_at",
    }
  );
};
