Added user in attachment

Check userId before delete attachment
New database
This commit is contained in:
Lucio Maranta
2018-06-22 12:04:55 +02:00
parent 810b89a420
commit 2037b6d173
9 changed files with 90 additions and 72 deletions
@@ -26,5 +26,11 @@ namespace Step.Model.DatabaseModels
[ForeignKey("MaintenanceId")]
public MaintenanceModel Maintenance { get; set; }
[Column("user_id")]
public int? UserId { get; set; }
[ForeignKey("UserId")]
public UserModel User { get; set; }
}
}