using Microsoft.AspNetCore.Http; using System; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using PSTW_CentralSystem.Areas.Inventory.Models; using PSTW_CentralSystem.Models; namespace PSTW_CentralSystem.Areas.OTcalculate.Models { [Table("otregisters")] public class OtRegisterModel { [Key] public int OvertimeId { get; set; } [Required] public DateTime OtDate { get; set; } public TimeSpan? OfficeFrom { get; set; } public TimeSpan? OfficeTo { get; set; } public int? OfficeBreak { get; set; } public TimeSpan? OutsideFrom { get; set; } public TimeSpan? OutsideTo { get; set; } public int? OutsideBreak { get; set; } public int? StationId { get; set; } [ForeignKey("StationId")] public virtual StationModel? Stations { get; set; } public string OtDescription { get; set; } public string OtDays { get; set; } public required string PDFBase64 { get; set; } [Required] public int UserId { get; set; } } }