erp-platform/api/src/Erp.Platform.Application.Contracts/DeveloperKit/CrudMigrationDto.cs

29 lines
962 B
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
// Migration DTOs
2025-08-11 06:34:44 +00:00
using System;
using Volo.Abp.Application.Dtos;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform.DeveloperKit;
2025-08-11 06:34:44 +00:00
2025-11-05 09:02:16 +00:00
public class CrudMigrationDto : AuditedEntityDto<Guid>
2025-08-11 06:34:44 +00:00
{
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;
2025-11-14 12:44:59 +00:00
public string Status { get; set; } = "Askıda"; // "pending" | "applied" | "failed"
2025-08-11 06:34:44 +00:00
public DateTime? AppliedAt { get; set; }
public string? ErrorMessage { get; set; }
}
2025-11-05 09:02:16 +00:00
public class CreateUpdateCrudMigrationDto
2025-08-11 06:34:44 +00:00
{
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;
2025-11-14 12:44:59 +00:00
public string Status { get; set; } = "Askıda";
2025-08-11 06:34:44 +00:00
public DateTime? AppliedAt { get; set; }
public string? ErrorMessage { get; set; }
}
2025-11-11 19:49:52 +00:00