This commit is contained in:
kjy
2025-12-16 20:06:49 +09:00
parent 699224fca0
commit b6d69c3623
24 changed files with 425 additions and 129 deletions

20
test.ts Normal file
View File

@@ -0,0 +1,20 @@
import { prisma } from "./lib/prisma";
async function main() {
// Fetch all users with their posts
// const allUsers = await prisma.realEstateArticle.findMany();
console.log("test");
const test = await prisma.realEstateArticle.findMany();
console.log(test);
// console.log("All users:", JSON.stringify(allUsers, null, 2));
}
main()
.then(async () => {
await prisma.$disconnect();
})
.catch(async (e) => {
console.error(e);
await prisma.$disconnect();
process.exit(1);
});