26 lines
791 B
C#
26 lines
791 B
C#
using System;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
namespace Erp.Platform.Entities;
|
|
|
|
public class CrudEndpoint : 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 CrudEndpoint()
|
|
{
|
|
Id = Guid.NewGuid();
|
|
}
|
|
}
|
|
|