Add service reminder migration Add Completed Service button to vehicle
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using MileageTraker.Web.Attributes;
|
||||
|
||||
namespace MileageTraker.Web.Models
|
||||
{
|
||||
public class ServiceReminder
|
||||
{
|
||||
[Key]
|
||||
public int ServiceReminderId { get; set; }
|
||||
|
||||
[Required]
|
||||
public virtual Vehicle Vehicle { get; set; }
|
||||
|
||||
[InputSize("small")]
|
||||
public int TargetOdometer { get; set; }
|
||||
|
||||
[StringLength(64)]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -88,5 +88,7 @@ namespace MileageTraker.Web.Models
|
||||
public int? CurrentOdometer { get; set; }
|
||||
|
||||
public virtual ICollection<Log> Logs { get; set; }
|
||||
|
||||
public virtual ICollection<ServiceReminder> ServiceReminders { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user