Add project files.

This commit is contained in:
KhasanovAM
2026-01-18 00:30:29 +04:00
parent 9c5a7ce993
commit 61a598aceb
27 changed files with 1974 additions and 0 deletions

32
Models/WaybillEntry.cs Normal file
View File

@@ -0,0 +1,32 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LogisticsApp.Server.Models
{
public class WaybillEntry
{
[Key]
public int Id { get; set; }
[Required]
[ForeignKey("Vehicle")]
public int VehicleId { get; set; }
[Required]
[ForeignKey("Order")]
public int OrderId { get; set; }
[Required]
[StringLength(5)]
public string StartTime { get; set; } = string.Empty; // Format: "HH:mm"
[Required]
[StringLength(5)]
public string EndTime { get; set; } = string.Empty; // Format: "HH:mm"
[Required]
public DateOnly Date { get; set; }
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}