import type { Metadata } from "next";
import { prisma } from "@/lib/prisma"

export const metadata: Metadata = {
  title: "Students | Admin | E-Library",
  description: "View the student directory for the Federal Polytechnic Bali E-Library.",
};

export default async function Page() {
    const students = await prisma.user.findMany({ where: { role: "STUDENT" } });
    
    return (
        <div>
            <h1>Students</h1>
            <p>{students.length} students</p>
        </div>
    )
}