sozsoft-platform/api/src/Sozsoft.Platform.Application.Contracts/DeveloperKit/SqlTableDto.cs

63 lines
2.1 KiB
C#
Raw Normal View History

2026-02-24 20:44:16 +00:00
using System;
using System.Collections.Generic;
using Volo.Abp.Application.Dtos;
namespace Sozsoft.Platform.DeveloperKit;
2026-03-01 20:43:25 +00:00
public class SqlTableDto : FullAuditedEntityDto<Guid>
2026-02-24 20:44:16 +00:00
{
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;
2026-03-01 20:43:25 +00:00
public string EndpointStatus { get; set; } = "pending";
2026-02-24 20:44:16 +00:00
2026-03-01 20:43:25 +00:00
public List<SqlTableFieldDto> Fields { get; set; } = [];
2026-02-24 20:44:16 +00:00
}
2026-03-01 20:43:25 +00:00
public class CreateUpdateSqlTableDto
2026-02-24 20:44:16 +00:00
{
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;
2026-03-01 20:43:25 +00:00
public List<CreateUpdateSqlTableFieldDto> Fields { get; set; } = [];
2026-02-24 20:44:16 +00:00
}
2026-03-01 20:43:25 +00:00
public class SqlTableFieldDto : FullAuditedEntityDto<Guid>
2026-02-24 20:44:16 +00:00
{
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;
}
2026-03-01 20:43:25 +00:00
public class CreateUpdateSqlTableFieldDto
2026-02-24 20:44:16 +00:00
{
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;
}