19 lines
563 B
C#
19 lines
563 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Fitness_core_BE.Models
|
|
{
|
|
public class ActivityLog
|
|
{
|
|
[Key]
|
|
public Guid ActivityLogId { get; set; }
|
|
public Guid FKUserId { get; set; }
|
|
[ForeignKey("FKUserId")]
|
|
public virtual User User { get; set; }
|
|
public string UserName { get; set; }
|
|
public bool IsAdmin { get; set; }
|
|
public string Description { get; set; }
|
|
public DateTime Timestamp { get; set; } = DateTime.UtcNow;
|
|
}
|
|
}
|