Database Setup

– Ensure your MySQL instance is running and the DATABASE_URL is correct.

– Apply migrations: npx prisma migrate dev (local) or upload the estuda.sql to the database

– Optionally generate client: npx prisma generate

Admin user (first-time setup):

– Register a user via the UI (`/register`) and then promote that user to ADMIN in the database:

– Example SQL (replace with your email):

  – UPDATE User SET role = 'ADMIN' WHERE email = '[email protected]';