blob: bc60b48f4192b188fd3e9452f7ac23adbaafa05a (
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; set; }
public User User { get; init; }
public Guid? TenantId { get; init; }
public Tenant Tenant { get; init; }
public Guid? ModifiedById { get; init; }
public User ModifiedBy { get; init; }
public Guid? CreatedById { get; init; }
public User CreatedBy { get; init; }
public Guid? DeletedById { get; init; }
public User DeletedBy { get; init; }
}
|