Coin.js
389 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
}
})
const Coin=mongoose.model("Coin",coinSchema);
module.exports={Coin};