erp-platform/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiMigrationDto.cs

28 lines
957 B
C#
Raw Normal View History

2025-08-11 06:34:44 +00:00
// Migration DTOs
using System;
using Volo.Abp.Application.Dtos;
namespace Kurs.Platform.DeveloperKit;
public class ApiMigrationDto : AuditedEntityDto<Guid>
{
public Guid EntityId { get; set; }
public string EntityName { get; set; } = string.Empty;
public string FileName { get; set; } = string.Empty;
public string SqlScript { get; set; } = string.Empty;
public string Status { get; set; } = "pending"; // "pending" | "applied" | "failed"
public DateTime? AppliedAt { get; set; }
public string? ErrorMessage { get; set; }
}
public class CreateUpdateApiMigrationDto
{
public Guid EntityId { get; set; }
public string EntityName { get; set; } = string.Empty;
public string FileName { get; set; } = string.Empty;
public string SqlScript { get; set; } = string.Empty;
public string Status { get; set; } = "pending";
public DateTime? AppliedAt { get; set; }
public string? ErrorMessage { get; set; }
}