mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-24 10:42:40 +03:00
24 lines
525 B
JavaScript
24 lines
525 B
JavaScript
const { DataTypes } = require('sequelize');
|
|
const { sequelize } = require('../db');
|
|
|
|
const Weather = sequelize.define(
|
|
'Weather',
|
|
{
|
|
externalLastUpdate: DataTypes.STRING,
|
|
tempC: DataTypes.FLOAT,
|
|
tempF: DataTypes.FLOAT,
|
|
isDay: DataTypes.INTEGER,
|
|
cloud: DataTypes.INTEGER,
|
|
conditionText: DataTypes.TEXT,
|
|
conditionCode: DataTypes.INTEGER,
|
|
humidity: DataTypes.INTEGER,
|
|
windK: DataTypes.FLOAT,
|
|
windM: DataTypes.FLOAT,
|
|
},
|
|
{
|
|
tableName: 'weather',
|
|
}
|
|
);
|
|
|
|
module.exports = Weather;
|