aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/Data/Database/BaseWithOwner.cs
blob: 1eb99f4ef6baa8b9fc32edf866f584ea2e4b784a (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; }
}