Coin.js 515 Bytes
const mongoose=require('mongoose');

const coinSchema=mongoose.Schema({
    tid:{
        type:Number,
    },
    name:{
        type:String,
        required:true
    },
    korean_name:{
        type:String,
        required:true
    },
    acc_trade_price_24h:{
        type:Number,
        required:true
    },
    current_price:{
        type:Number,
        required:true
    },
    count:{
        type:Number,
        default:0
    }
})

const Coin=mongoose.model("Coin",coinSchema);
module.exports={Coin};