using System; using System.Collections.Generic; using Erp.SqlQueryManager.Domain.Shared; using Volo.Abp.Application.Dtos; namespace Erp.SqlQueryManager.Application.Contracts; public class SqlViewDto : FullAuditedEntityDto { public string ViewName { get; set; } public string SchemaName { get; set; } public string DisplayName { get; set; } public string Description { get; set; } public string ViewDefinition { get; set; } public string DataSourceCode { get; set; } public SqlQueryStatus Status { get; set; } public string Category { get; set; } public bool IsDeployed { get; set; } public DateTime? LastDeployedAt { get; set; } public bool WithSchemaBinding { get; set; } public bool IsCustom { get; set; } // true = stored in database, false = native SQL Server object } public class CreateSqlViewDto { public string ViewName { get; set; } public string SchemaName { get; set; } public string DisplayName { get; set; } public string Description { get; set; } public string ViewDefinition { get; set; } public string DataSourceCode { get; set; } public string Category { get; set; } public bool WithSchemaBinding { get; set; } } public class UpdateSqlViewDto { public string DisplayName { get; set; } public string Description { get; set; } public string ViewDefinition { get; set; } public string Category { get; set; } public bool WithSchemaBinding { get; set; } } public class DeployViewDto { public Guid Id { get; set; } public bool DropIfExists { get; set; } }