21 lines
598 B
C#
21 lines
598 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace LANCommander.Data.Models
|
|
{
|
|
public abstract class BaseModel
|
|
{
|
|
[Key]
|
|
public Guid Id { get; set; }
|
|
|
|
[Display(Name = "Created On")]
|
|
public DateTime CreatedOn { get; set; }
|
|
[Display(Name = "Created By")]
|
|
public virtual User? CreatedBy { get; set; }
|
|
[Display(Name = "Updated On")]
|
|
public DateTime UpdatedOn { get; set; }
|
|
[Display(Name = "Updated By")]
|
|
public virtual User? UpdatedBy { get; set; }
|
|
}
|
|
}
|