style: small change

This commit is contained in:
Stevan Freeborn
2023-09-15 14:24:35 -05:00
parent 508bf2113d
commit bc86873d89
4 changed files with 7 additions and 3 deletions
+6
View File
@@ -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 }
);