WIP maintenances

This commit is contained in:
Lucio Maranta
2018-02-13 17:25:30 +01:00
parent 7cb5b901e9
commit ff11711599
27 changed files with 365 additions and 346 deletions
@@ -0,0 +1,42 @@
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Step.Model.DatabaseModels
{
[Table("maintenance")]
public class MaintenanceModel
{
[Key]
[Column("id")]
public int MaintenanceId { get; set; }
[Column("intervall")]
public TimeSpan Intervall { get; set; }
[Column("deadline")]
public DateTime DeadLine { get; set; }
[Column("type")]
public string Type { get; set; }
[Column("counter_id")]
public int CounterId { get; set; }
[Column("creation_date")]
public DateTime CreationDate { get; set; }
public override bool Equals(object obj)
{
var item = obj as MaintenanceModel;
if (item == null)
return false;
if (item.MaintenanceId != MaintenanceId)
return false;
return true;
}
}
}