I'm learning to work with sessions and I need to somehow save them to the database (PostgreSQL). I am writing to nodejs using Express.
app.use( session({ secret:config.SESSION_SECRET, resave:true, saveUninitialized:true, cookie: {maxAge: 24 * 60 * 60 * 1000 }, store:new pgSession({ pg:pg, conString:"подключение к базе данных", tableName:"", maxAge: 24 * 60 * 60 }) }) ) So here. Should the table itself be created in PostgreSQL or is it automatically created somehow? For I watched the video, it was automatically created by a peasant in mongoDB ... And here I tried to create my own, this is how one column is missing, then another.