text: const { Model, DataTypes } = require('sequelize');
  
  const sequelize = require('../config/connection');
  
  class UserCities extends Model {}
  
  UserCities.init(
      {
          id: {
              type: DataTypes.INTEGER,
              allowNull: false,
              primaryKey: true,
              autoIncrement: true
          },
          city_name: {
              type: DataTypes.STRING,
          },
          user_id: {
              type: DataTypes.INTEGER,
              references: {
                  model: 'user',
                  key: 'id'
              },
              unique: true
          },
      },
      {
          sequelize,
          timestamps: false,
          freezeTableName: true,
          underscored: true,
          moduleName: 'user_cities'
      }
  );
  
  module.exports = UserCities;