summaryrefslogtreecommitdiffstats
path: root/server/src/Data/Database/BaseWithOwner.cs
blob: eb4438dfd890c7a61cf6ee6b0b440f010b313ee8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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; init; }
	public User User { get; init; }
	public Guid TenantId { get; set; }
	public Tenant Tenant { get; init; }
	public Guid ModifiedById { get; init; }
	public User ModifiedBy { get; set; }
	public Guid CreatedById { get; init; }
	public User CreatedBy { get; set; }
	public Guid DeletedById { get; init; }
	public User DeletedBy { get; set; }
}