import { Model, DataTypes } from 'sequelize';
import { sequelize } from '../../../utils/sequelize.js';
import RegionData from './region.js';
import WeatherType from '../type/weather.js';

class Weather extends Model {}

Weather.init(
  {
    regionId: {
      type: DataTypes.INTEGER,
      primaryKey: true,
      allowNull: false
    },
    weatherTypeId: {
      type: DataTypes.INTEGER,
      allowNull: false
    }
  },
  {
    sequelize,
    modelName: 'Weather',
    tableName: 'weather',
    schema: 'falukant_data',
    timestamps: false,
    underscored: true}
);

export default Weather;

