import sqlite3

conn = sqlite3.connect('backend/vfx_project_management.db')
cursor = conn.cursor()
cursor.execute('SELECT email, role, is_admin FROM users WHERE email = "admin@vfx.com"')
result = cursor.fetchone()
print(f"Email: {result[0]}, Role: {result[1]}, Is Admin: {result[2]}")

# Check project membership
cursor.execute('SELECT project_id FROM project_members WHERE user_id = (SELECT id FROM users WHERE email = "admin@vfx.com")')
projects = cursor.fetchall()
print(f"Project memberships: {[p[0] for p in projects]}")

conn.close()
