PostLikes table
The PostLikes table in the FitStack - V2 schema has 4 columns, keyed by Id, with 2 foreign keys to FeedPosts and Users.
No audit columns — a removed like is deleted outright.
Columns (4)
| Column | Type | Constraints | Description |
|---|---|---|---|
| Id | uuid | primary key, not null | |
| PostId | uuid | not null, references FeedPosts.Id | |
| UserId | text | not null, references Users.Id | |
| CreatedAt | timestamp with time zone | not null |
Indexes (1)
(PostId, UserId)unique (IX_PostLikes_PostId_UserId)
Relationships
PostLikes.PostIdreferencesFeedPosts.IdPostLikes.UserIdreferencesUsers.Id