import mongoose from "mongoose"; const userIds = [ new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), new mongoose.Types.ObjectId(), ]; export const mockUsers = [ { _id: userIds[0], firstName: "super", lastName: "admin", email: "admin@chathive.com", password: "$2a$04$3OEpXZDLOknUHeooBwYfFOe4u2sFkNTqvHqQBmcPRWze5Q3UnY7ze", // admin profilePicturePath: "admin.jpeg", friends: [], location: "Lahti, Finland", description: "I am the admin", admin: true, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[1], firstName: "Aake", lastName: "Haapala", email: "aake.haapala@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", // 123456## profilePicturePath: "p1.jpeg", friends: [], location: "Helsinki, Finland", description: "I am a software developer", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[2], firstName: "Eelis", lastName: "Janhunen", email: "eelis.janhunen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e9", profilePicturePath: "p2.jpeg", friends: [], location: "Hämeenlinna, Finland", description: "I am an accountant", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[3], firstName: "Eevert", lastName: "Kotilainen", email: "evert.kotilainen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p3.jpeg", friends: [], location: "Kerava, Finland", description: "I am a teacher", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[4], firstName: "Krista", lastName: "Manninen", email: "krista.manninen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p4.jpeg", friends: [], location: "Espoo, Finland", description: "I am a nurse", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[5], firstName: "Taina", lastName: "Ruotsalainen", email: "taina.ruotsalainen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p5.jpeg", friends: [], location: "Turku, Finland", description: "I am a doctor", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[6], firstName: "Lea", lastName: "Varis", email: "lea.varis@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p6.jpeg", friends: [], location: "Tampere, Finland", description: "I am a data scientist", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[7], firstName: "Elisa", lastName: "Järvelä", email: "elisa.jarvela@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p7.jpeg", friends: [], location: "Riihimäki, Finland", description: "I am a shopkeeper", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[8], firstName: "Joonas", lastName: "Koivisto", email: "joonas.koivisto@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p8.jpeg", friends: [], location: "Rovaniemi, Finland", description: "I am a student", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[9], firstName: "Johanna", lastName: "Mäkinen", email: "johanna.makinen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p9.jpeg", friends: [], location: "Oulu, Finland", description: "I am a researcher", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[10], firstName: "Johannes", lastName: "Korhonen", email: "johannes.korhonen@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p10.jpeg", friends: [], location: "Kuopio, Finland", description: "I am an athlete", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, { _id: userIds[11], firstName: "Mikko", lastName: "Koivu", email: "mikko.koivu@mail.com", password: "$2a$04$LzaBXTtLrOglvkHIPcAYKevvIOLoPZCm48DdQr.rf1gg5cIiehV4e", profilePicturePath: "p11.jpeg", friends: [], location: "Jyväskylä, Finland", description: "I am a hockey player", admin: false, createdAt: 946717200, updatedAt: 946717200, __v: 0, }, ]; export const mockPosts = [ { _id: new mongoose.Types.ObjectId(), userId: userIds[1], firstName: "Aake", lastName: "Haahpala", location: "Helsinki, Finland", content: "Just moved!", contentPicturePath: "post1.jpeg", profilePicturePath: "p1.jpeg", likes: new Map([ [userIds[2], true], [userIds[3], true], [userIds[4], true], [userIds[5], true], ]), comments: ["Congrats!", "Nice!", "Good luck!"], }, { _id: new mongoose.Types.ObjectId(), userId: userIds[3], firstName: "Eevert", lastName: "Kotilainen", location: "Kainuu, Finland", content: "Summer is coming! I am so excited to go to the cottage and enjoy the nature.", contentPicturePath: "post2.jpeg", profilePicturePath: "p3.jpeg", likes: new Map([ [userIds[7], true], [userIds[4], true], [userIds[1], true], [userIds[2], true], ]), comments: [ "It's so beautiful there!", "I wish I could go there too!", "Have fun!", "Don't forget to take pictures!", ], }, { _id: new mongoose.Types.ObjectId(), userId: userIds[5], firstName: "Taina", lastName: "Ruotsalainen", location: "Berlin, Germany", content: "International conference in Berlin! I am so excited to meet new people and learn new things.", contentPicturePath: "post3.jpeg", profilePicturePath: "p5.jpeg", likes: new Map([ [userIds[1], true], [userIds[6], true], [userIds[3], true], [userIds[4], true], ]), comments: [ "Another achievement!", "You are so talented!", "I am so proud of you!", "You rock!", ], }, { _id: new mongoose.Types.ObjectId(), userId: userIds[7], firstName: "Elisa", lastName: "Järvelä", location: "Riihimäki, Finland", content: "Taking care of my garden. I am so excited to see the flowers bloom!", contentPicturePath: "post4.jpeg", profilePicturePath: "p7.jpeg", likes: new Map([ [userIds[1], true], [userIds[6], true], [userIds[3], true], [userIds[4], true], ]), comments: [ "Beautiful!", "I wish I had a garden too!", "I love flowers!", "Nice!", ], }, { _id: new mongoose.Types.ObjectId(), userId: userIds[9], firstName: "Johanna", lastName: "Mäkinen", location: "Haparanda, Sweden", content: "A trip to neighboring Sweden! I am so excited to try some meatballs!", contentPicturePath: "post5.jpeg", profilePicturePath: "p9.jpeg", likes: new Map([ [userIds[1], true], [userIds[3], true], [userIds[5], true], [userIds[7], true], ]), comments: [ "I went there last year!", "It was so much fun!", "I hope you have a great time!", "Bring me some meatballs!", ], }, { _id: new mongoose.Types.ObjectId(), userId: userIds[11], firstName: "Mikko", lastName: "Koivu", location: "Mikkeli, Finland", content: "Student excursion to Mikkeli! I am so excited to make new friends and drink some beer!", contentPicturePath: "post6.jpeg", profilePicturePath: "p11.jpeg", likes: new Map([ [userIds[1], true], [userIds[2], true], [userIds[3], true], [userIds[4], true], ]), comments: [ "Don't drink too much!", "My kids study there!", "Explore the city!", "Stay safe!", ], }, ];