27 lines
957 B
C#
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; }
|
|
}
|