Coin.js
434 Bytes
const mongoose=require('mongoose');
const coinSchema=mongoose.Schema({
tid:{
type:Number,
},
name:{
type:String,
required:true
},
acc_trade_price_24h:{
type:Number,
required:true
},
current_price:{
type:Number,
required:true
},
five_candle:{
type:Number
}
})
const Coin=mongoose.model("Coin",coinSchema);
module.exports={Coin};