Sube carpetas API, API.Tests, Application y Domain del Backend

This commit is contained in:
FrancoRu
2026-09-18 13:35:59 -03:00
parent bbb09554bb
commit 2eb4eeef03
572 changed files with 56405 additions and 0 deletions
@@ -0,0 +1,26 @@
using System;
using System.ComponentModel.DataAnnotations;
namespace Application.DTOs.PointDeductions.Request;
/// <summary>
/// Request to apply a disciplinary point deduction to a team within a division taken from the route.
/// </summary>
public class CreatePointDeductionRequest
{
[Required(ErrorMessage = "The TeamId field is required.")]
public required Guid TeamId { get; set; }
/// <summary>
/// The positive amount of table points to subtract from the team's total.
/// </summary>
[Range(1, int.MaxValue, ErrorMessage = "Points must be at least 1.")]
public required int Points { get; set; }
/// <summary>
/// The disciplinary reason for the deduction.
/// </summary>
[Required(ErrorMessage = "The Reason field is required.")]
[MaxLength(300, ErrorMessage = "Reason cannot exceed 300 characters.")]
public required string Reason { get; set; }
}