mirror of
https://github.com/Sea-Haven-Industries/proposal-system.git
synced 2026-10-04 17:12:02 +00:00
33 lines
656 B
C#
33 lines
656 B
C#
|
|
namespace ProposalSystem.Domain.Entities;
|
||
|
|
|
||
|
|
public enum AuditAction
|
||
|
|
{
|
||
|
|
Submit,
|
||
|
|
Edit,
|
||
|
|
Approve,
|
||
|
|
Download,
|
||
|
|
Regenerate,
|
||
|
|
Revise,
|
||
|
|
AssignAdmin,
|
||
|
|
EditLineItem,
|
||
|
|
EditScope,
|
||
|
|
GeneratePDF,
|
||
|
|
MarkSent,
|
||
|
|
CreateRevision,
|
||
|
|
UpdateRole
|
||
|
|
}
|
||
|
|
|
||
|
|
public class AuditLog
|
||
|
|
{
|
||
|
|
public Guid Id { get; set; }
|
||
|
|
public Guid? ProposalId { get; set; }
|
||
|
|
public Guid UserId { get; set; }
|
||
|
|
public AuditAction Action { get; set; }
|
||
|
|
public string? Details { get; set; }
|
||
|
|
public DateTime Timestamp { get; set; }
|
||
|
|
public string? IpAddress { get; set; }
|
||
|
|
|
||
|
|
public Proposal? Proposal { get; set; }
|
||
|
|
public User? User { get; set; }
|
||
|
|
}
|