16 lines
367 B
C#
16 lines
367 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace OnlyPrompt.Backend.Database.Models
|
|
{
|
|
public class PromptLikeModel
|
|
{
|
|
[ForeignKey(nameof(Prompt))]
|
|
public Guid PromptId { get; set; }
|
|
public virtual PromptModel Prompt { get; set; }
|
|
|
|
[ForeignKey(nameof(User))]
|
|
public Guid UserId { get; set; }
|
|
public virtual UserModel User { get; set; }
|
|
}
|
|
}
|