const { pool } = require("./config/database");
const fs = require("fs");

async function createTeamMembersTable() {
  try {
    const sql = fs.readFileSync("./create-team-members-table.sql", "utf8");
    await pool.query(sql);
    console.log("✓ Team members table created successfully with sample data");
    process.exit(0);
  } catch (error) {
    console.error("✗ Error creating team members table:", error.message);
    process.exit(1);
  }
}

createTeamMembersTable();
