import {model, Schema, Document} from "mongoose";

const SESSION_SCHEMA: Schema = new Schema({
    _id: {type: String, required: true},
    webSiteId: {type: String, required: true},
    baseURL: String,
},
{
    timestamps: true,
});

export interface SessionDocument extends Document {
    _id: string;
    webSiteId: string;
    baseURL: string;
    createdAt?: Date
    updatedAt?: Date

}


export default model<SessionDocument>("Session", SESSION_SCHEMA);
