mango-stats-v3/migrations/20210216035849-create-perp-...

54 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-07-26 10:58:58 -07:00
"use strict"
module.exports = {
up: async (queryInterface, Sequelize) => {
await queryInterface.createTable(
"perp_market_stats",
{
name: {
type: Sequelize.STRING,
},
mangoGroup: {
type: Sequelize.STRING,
},
longFunding: {
type: Sequelize.DECIMAL,
},
shortFunding: {
type: Sequelize.DECIMAL,
},
openInterest: {
type: Sequelize.DECIMAL,
},
baseOraclePrice: {
type: Sequelize.DECIMAL,
},
2021-08-13 09:28:52 -07:00
feesAccrued: {
type: Sequelize.DECIMAL,
},
mngoLeft: {
type: Sequelize.DECIMAL,
},
mngoPerPeriod: {
type: Sequelize.DECIMAL,
},
rate: {
type: Sequelize.DECIMAL,
},
maxDepthBps: {
type: Sequelize.DECIMAL,
},
periodStart: {
type: Sequelize.DATE,
},
2021-07-26 10:58:58 -07:00
time: {
type: Sequelize.DATE,
},
},
{ timestamps: false }
)
},
down: async (queryInterface, Sequelize) => {
await queryInterface.dropTable("perp_market_stats")
},
}