import { prisma } from "@/lib/prisma"; import { Table, TableHeader, TableBody, TableRow, TableHead, TableCell } from "@/components/ui/table"; import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; export const dynamic = "force-dynamic"; export default async function EstablishmentsPage() { const establishments = await prisma.establishment.findMany({ include: { subscription: true, _count: { select: { users: true, classes: true } } }, orderBy: { createdAt: "desc" }, }); return (