import mongoose from 'mongoose'

const { String } = mongoose.Schema.Types

const RoomSchema = new mongoose.Schema({
    roomName: {
        type: String,
        required: true,
    },
    interest: {
        type: String,
        required: true,
    },
    isOpen:{
        type: String,

    },
    
}, {
    timestamps: true
})

export default mongoose.models.ChatSchema || mongoose.model('chat', ChatSchema)