Table of Contents

Class UserFavorite

Namespace
GastroSky.Models
Assembly
GastroSky.Models.dll
[Table("UserFavorites")]
[PrimaryKey("UserId", new string[] { "PostId" })]
[Index("UserId", new string[] { }, IsUnique = false)]
public class UserFavorite
Inheritance
UserFavorite
Inherited Members

Properties

CreationTimestampUTC

Unix-timestamp of when this UserFavorite was inserted into the DB for the first time.

public required long CreationTimestampUTC { get; set; }

Property Value

long

Post

Post that is favorited by the User

[ForeignKey("PostId")]
public Post Post { get; set; }

Property Value

Post

PostId

Id of the Post that is favorited by the User

public long PostId { get; set; }

Property Value

long

User

User who is owner of this UserFavorite.

[ForeignKey("UserId")]
public User User { get; set; }

Property Value

User

UserId

Id of the User who is owner of this UserFavorite.

public long UserId { get; set; }

Property Value

long