mango-stats-v3/migrations/20210216035848-create-spot-...

44 lines
996 B
JavaScript
Raw Normal View History

2021-07-26 10:58:58 -07:00
"use strict"
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable(
"spot_market_stats",
{
name: {
type: Sequelize.STRING,
},
mangoGroup: {
type: Sequelize.STRING,
},
2021-08-13 09:28:52 -07:00
depositIndex: Sequelize.DECIMAL,
2021-07-26 10:58:58 -07:00
depositRate: {
type: Sequelize.DECIMAL,
},
2021-08-13 09:28:52 -07:00
borrowIndex: Sequelize.DECIMAL,
2021-07-26 10:58:58 -07:00
borrowRate: {
type: Sequelize.DECIMAL,
},
totalDeposits: {
type: Sequelize.DECIMAL,
},
totalBorrows: {
type: Sequelize.DECIMAL,
},
baseOraclePrice: {
type: Sequelize.DECIMAL,
},
time: {
type: Sequelize.DATE,
},
utilization: {
type: Sequelize.DECIMAL,
},
},
{ timestamps: false }
)
},
down: async (queryInterface, Sequelize) => {
await queryInterface.dropTable("spot_market_stats")
},
}