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)

Columns of the PostLikes table
ColumnTypeConstraintsDescription
Iduuidprimary key, not null
PostIduuidnot null, references FeedPosts.Id
UserIdtextnot null, references Users.Id
CreatedAttimestamp with time zonenot null

Indexes (1)

  • (PostId, UserId) unique (IX_PostLikes_PostId_UserId)

Relationships