erp-platform/api/src/Kurs.Platform.Application.Contracts/DeveloperKit/ApiMigrationDto.cs
Sedat ÖZTÜRK 8cc8ed07f9 Düzenleme
2025-08-11 09:34:44 +03:00

27 lines
957 B
C#

// 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; }
}