This commit is contained in:
2026-06-11 13:25:26 +03:00
parent b931ee64d4
commit 60b48ca5e8
60 changed files with 12302 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import prisma from '@/lib/prisma'
import CreateUserForm from './CreateUserForm'
import UserList from './UserList'
export const metadata = {
title: 'Kullanıcı Yönetimi - Admin',
}
export default async function UsersPage() {
const users = await prisma.users.findMany({
orderBy: { created_at: 'asc' },
select: {
id: true,
username: true,
role: true,
created_at: true,
}
})
return (
<div className="space-y-6">
<h1 className="text-2xl font-bold text-gray-900">Kullanıcı Yönetimi</h1>
<CreateUserForm />
<UserList users={users} />
</div>
)
}