summaryrefslogtreecommitdiffstats
path: root/server/src/Data/Database/Base.cs
blob: 90b52daedbc195f56d6a03d519d507372db4ce74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace IOL.GreatOffice.Api.Data.Database;

public class Base
{
	protected Base() {
		Id = Guid.NewGuid();
		CreatedAt = DateTime.UtcNow;
	}

	public Guid Id { get; init; }
	public DateTime CreatedAt { get; init; }
	public DateTime? ModifiedAt { get; private set; }
	public bool Deleted { get; set; }
	public void Modified() => ModifiedAt = DateTime.UtcNow;
}