user.js 306 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
3
4
const mongoose = require('mongoose');

const { Schema } = mongoose;
const userSchema = new Schema({
Kim, Subin's avatar
ㅁㅁ    
Kim, Subin committed
5
6
7
8
9
10
11
12
13
14
    id : {
        type: Number,
        unique: true,
    },
    password : {
        type: String,
    },
    name : {
        type: String,
    }
Kim, Subin's avatar
Kim, Subin committed
15
16
17
});

module.exports = mongoose.model('User', userSchema);