const mongoose = require('mongoose');

const userSchema = new mongoose.Schema({
    userID: {
        type: String,
        required: true,
        unique: true,
    },
    userName: {
        type: String,
        default: 'Unknown',
    },
    userFollowing: {
        type: Array,
    },
    userFollowers: {
        type: Array,
    },
    userFollowerCount: {
        type: String,
        default: 0,
    },
    userFollowingCount: {
        type: String,
        default: 0,
    },
    userDescription: {
        type: String,
        default: 'No description set.',
    },
    userFeedColor: {
        type: String,
        default: 'GREEN',
    },
    userLikes: {
        type: String,
        default: 0,
    },
    userPosts: {
        type: Array,
    }
})


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