text: const {
    models: { User },
  } = require("../../server/db");
  
  async function userSeed() {
    // Creating Users
    const users = await Promise.all([
      User.create({
        email: "cody@paint.com",
        password: "123",
        firstName: "Cody",
        lastName: "Williams",
        isAdmin: true,
      }),
      User.create({
        email: "mary@hello.com",
        password: "123",
        firstName: "Mary",
        lastName: "Doe",
      }),
      User.create({
        email: "john@hello.com",
        password: "123",
        firstName: "John",
        lastName: "Brennan",
      }),
    ]);
  
    console.log(`seeded ${users.length} users`);
  
    return users;
  }
  
  module.exports = userSeed;
  