diff --git a/convex/schema.ts b/convex/schema.ts index 3e8033d..374df05 100644 --- a/convex/schema.ts +++ b/convex/schema.ts @@ -48,6 +48,12 @@ export default defineSchema( }) .index('by_user_post_id', ['userId', 'postId']) .index('by_post_user_id', ['postId', 'userId']), + follows: defineTable({ + following: v.id('users'), // person being followed + follower: v.id('users'), // person following + }) + .index('by_following', ['following']) + .index('by_follower', ['follower']), }, { schemaValidation: false } ); diff --git a/public/next.svg b/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/public/vercel.svg b/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/components/PostActionButtons.tsx b/src/components/PostActionButtons.tsx index 59a626c..fd57b15 100644 --- a/src/components/PostActionButtons.tsx +++ b/src/components/PostActionButtons.tsx @@ -49,7 +49,7 @@ export default function PostActionButton({ isLiked ? 'text-primary-accent' : '' }`} > - {' '} +
{likeCount}