Showing
2 changed files
with
19 additions
and
0 deletions
This diff is collapsed. Click to expand it.
models/User.js
0 → 100644
1 | +const mongoose=require('mongoose'); | ||
2 | + | ||
3 | +const userSchema=mongoose.Schema({ | ||
4 | + krw_balance:{ | ||
5 | + type:Number, | ||
6 | + }, | ||
7 | + market:{ | ||
8 | + type:String, | ||
9 | + }, | ||
10 | + count:{ | ||
11 | + type:Number, | ||
12 | + }, | ||
13 | + avg_buy_price:{ | ||
14 | + type:Number | ||
15 | + } | ||
16 | +}) | ||
17 | + | ||
18 | +const User=mongoose.model("User",userSchema); | ||
19 | +module.exports={User}; | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment