diff --git a/prisma/migrations/20250105172446_add_liked_posts/migration.sql b/prisma/migrations/20250105172446_add_liked_posts/migration.sql new file mode 100644 index 0000000..54cbaeb --- /dev/null +++ b/prisma/migrations/20250105172446_add_liked_posts/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "User" ADD COLUMN "likedPosts" TEXT[]; diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 55065e2..4b71549 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -17,6 +17,7 @@ model User { id String @id @default(cuid()) username String @unique hashed_password String + likedPosts String[] sessions Session[] posts Post[] } diff --git a/src/app/(public)/page.tsx b/src/app/(public)/page.tsx index b73bb7d..8b20fbb 100644 --- a/src/app/(public)/page.tsx +++ b/src/app/(public)/page.tsx @@ -5,15 +5,25 @@ import Link from 'next/link'; export default async function Home() { const posts = await prisma.post.findMany({ take: 30 }); return ( -
The simplest and most modern booru software.
-(very unstable and not feature complete!)
++ (very unstable and not feature complete!) +