Add vehicle recall
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace MileageTraker.Web.Models
|
||||
{
|
||||
public class VehicleRecall
|
||||
{
|
||||
[Key]
|
||||
public int VehicleRecallId { get; set; }
|
||||
|
||||
[Required]
|
||||
public virtual Vehicle Vehicle { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(128, MinimumLength = 3)]
|
||||
public string Identifier { get; set; }
|
||||
|
||||
[Required]
|
||||
[StringLength(128, MinimumLength = 3, ErrorMessage = "Minimum 3 characters")]
|
||||
public string Description { get; set; }
|
||||
public virtual VehicleService CompletedService { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user