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

24
Models/Vehicle.cs Normal file
View File

@@ -0,0 +1,24 @@
using System.ComponentModel.DataAnnotations;
namespace LogisticsApp.Server.Models
{
public class Vehicle
{
[Key]
public int Id { get; set; }
[Required]
[StringLength(100)]
public string DriverName { get; set; } = string.Empty;
[Required]
[StringLength(50)]
public string VehicleType { get; set; } = string.Empty;
[Required]
[StringLength(20)]
public string LicensePlate { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
}
}