20 lines
608 B
C#
20 lines
608 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class FeedPost
|
|
{
|
|
[Key]
|
|
public Guid FeedPostId { get; set; }
|
|
public string? Caption { get; set; }
|
|
public string? Description { get; set; }
|
|
public int? FkDocId { get; set; }
|
|
public Guid FKUserId { get; set; }
|
|
[ForeignKey("FKUserId")]
|
|
public virtual User User { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|