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

/// <summary>
/// Base class for all entities.
/// </summary>
public class BaseWithOwner : Base
{
	protected BaseWithOwner() { }

	protected BaseWithOwner(Guid userId) {
		UserId = userId;
	}

	public Guid? UserId { get; set; }
	public Guid? TenantId { get; init; }
	public Guid? ModifiedById { get; init; }
	public Guid? CreatedById { get; init; }
	public Guid? DeletedById { get; init; }
}