62 lines
2.1 KiB
C#
62 lines
2.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
namespace Sozsoft.Platform.DeveloperKit;
|
|
|
|
public class SqlTableDto : FullAuditedEntityDto<Guid>
|
|
{
|
|
public string Menu { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public string DisplayName { get; set; } = string.Empty;
|
|
public string TableName { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public bool IsFullAuditedEntity { get; set; } = true;
|
|
public bool IsMultiTenant { get; set; } = false;
|
|
public string EndpointStatus { get; set; } = "pending";
|
|
|
|
public List<SqlTableFieldDto> Fields { get; set; } = [];
|
|
}
|
|
|
|
public class CreateUpdateSqlTableDto
|
|
{
|
|
public string Menu { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public string DisplayName { get; set; } = string.Empty;
|
|
public string TableName { get; set; } = string.Empty;
|
|
public string? Description { get; set; }
|
|
public bool IsActive { get; set; } = true;
|
|
public bool IsFullAuditedEntity { get; set; } = true;
|
|
public bool IsMultiTenant { get; set; } = false;
|
|
|
|
public List<CreateUpdateSqlTableFieldDto> Fields { get; set; } = [];
|
|
}
|
|
|
|
public class SqlTableFieldDto : FullAuditedEntityDto<Guid>
|
|
{
|
|
public Guid EntityId { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Type { get; set; } = string.Empty;
|
|
public bool IsRequired { get; set; }
|
|
public int? MaxLength { get; set; }
|
|
public bool IsUnique { get; set; }
|
|
public string? DefaultValue { get; set; }
|
|
public string? Description { get; set; }
|
|
public int DisplayOrder { get; set; } = 0;
|
|
}
|
|
|
|
public class CreateUpdateSqlTableFieldDto
|
|
{
|
|
public Guid? Id { get; set; }
|
|
|
|
public string Name { get; set; } = string.Empty;
|
|
public string Type { get; set; } = string.Empty;
|
|
public bool IsRequired { get; set; }
|
|
public int? MaxLength { get; set; }
|
|
public bool IsUnique { get; set; }
|
|
public string? DefaultValue { get; set; }
|
|
public string? Description { get; set; }
|
|
public int DisplayOrder { get; set; } = 0;
|
|
}
|
|
|