mirror of
https://github.com/pawelmalak/flame.git
synced 2024-12-21 09:11:29 +03:00
16 lines
405 B
JavaScript
16 lines
405 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
|
|
}, {
|
|
tableName: 'weather'
|
|
});
|
|
|
|
module.exports = Weather; |