24 lines
785 B
C#
24 lines
785 B
C#
using System;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace Kurs.Platform.Entities;
|
|
|
|
public class ApiEndpoint : FullAuditedEntity<Guid>, IMultiTenant
|
|
{
|
|
public virtual Guid? TenantId { get; protected set; }
|
|
public string EntityName { get; set; } = string.Empty;
|
|
public string Method { get; set; } = string.Empty;
|
|
public string Path { get; set; } = string.Empty;
|
|
public string OperationType { get; set; } = string.Empty;
|
|
public string CsharpCode { get; set; } = string.Empty;
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
// Foreign key to CustomEntity
|
|
public Guid EntityId { get; set; }
|
|
public virtual CustomEntity Entity { get; set; } = null!;
|
|
public ApiEndpoint()
|
|
{
|
|
Id = Guid.NewGuid();
|
|
}
|
|
}
|