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; } }