Added user in attachment
Check userId before delete attachment New database
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user