aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <marcin@zelent.net>2017-05-23 17:27:26 +0200
committermarcinzelent <marcin@zelent.net>2017-05-23 17:27:26 +0200
commit4fb953b9df93be797201349d70cfb7a25ee0194f (patch)
tree7f0e4da963598087625a1ab26f5862d9df2b3b41 /ApartmentManager/HousingWebApi/Models
parent4bc22e5f3de02e4678c223333580578808977f8a (diff)
Reverted to using Imgur for storing images.
Diffstat (limited to 'ApartmentManager/HousingWebApi/Models')
-rw-r--r--ApartmentManager/HousingWebApi/Models/Apartment.cs3
-rw-r--r--ApartmentManager/HousingWebApi/Models/ChangeDocument.cs3
-rw-r--r--ApartmentManager/HousingWebApi/Models/DefectPicture.cs3
-rw-r--r--ApartmentManager/HousingWebApi/Models/PastUser.cs3
-rw-r--r--ApartmentManager/HousingWebApi/Models/Resident.cs3
-rw-r--r--ApartmentManager/HousingWebApi/Models/User.cs3
6 files changed, 12 insertions, 6 deletions
diff --git a/ApartmentManager/HousingWebApi/Models/Apartment.cs b/ApartmentManager/HousingWebApi/Models/Apartment.cs
index d1ac1d5..94c9b11 100644
--- a/ApartmentManager/HousingWebApi/Models/Apartment.cs
+++ b/ApartmentManager/HousingWebApi/Models/Apartment.cs
@@ -33,7 +33,8 @@ namespace HousingWebApi
[StringLength(100)]
public string Address { get; set; }
- public byte[] PlanPicture { get; set; }
+ [StringLength(50)]
+ public string PlanPicture { get; set; }
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
public virtual ICollection<ApartmentChange> ApartmentChanges { get; set; }
diff --git a/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs b/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs
index 9e910dc..7e869df 100644
--- a/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs
+++ b/ApartmentManager/HousingWebApi/Models/ChangeDocument.cs
@@ -15,7 +15,8 @@ namespace HousingWebApi
public int ChangeId { get; set; }
- public byte[] Document { get; set; }
+ [StringLength(50)]
+ public string Document { get; set; }
public virtual ApartmentChange ApartmentChange { get; set; }
}
diff --git a/ApartmentManager/HousingWebApi/Models/DefectPicture.cs b/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
index 6a83338..5d27ba3 100644
--- a/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
+++ b/ApartmentManager/HousingWebApi/Models/DefectPicture.cs
@@ -15,7 +15,8 @@ namespace HousingWebApi
public int DefectId { get; set; }
- public byte[] Picture { get; set; }
+ [StringLength(50)]
+ public string Picture { get; set; }
public virtual Defect Defect { get; set; }
}
diff --git a/ApartmentManager/HousingWebApi/Models/PastUser.cs b/ApartmentManager/HousingWebApi/Models/PastUser.cs
index f258d34..d0bb504 100644
--- a/ApartmentManager/HousingWebApi/Models/PastUser.cs
+++ b/ApartmentManager/HousingWebApi/Models/PastUser.cs
@@ -36,7 +36,8 @@ namespace HousingWebApi
[StringLength(50)]
public string Email { get; set; }
- public byte[] Picture { get; set; }
+ [StringLength(50)]
+ public string Picture { get; set; }
[Column(TypeName = "date")]
public DateTime? MoveInDate { get; set; }
diff --git a/ApartmentManager/HousingWebApi/Models/Resident.cs b/ApartmentManager/HousingWebApi/Models/Resident.cs
index 0509d40..4d29f16 100644
--- a/ApartmentManager/HousingWebApi/Models/Resident.cs
+++ b/ApartmentManager/HousingWebApi/Models/Resident.cs
@@ -28,7 +28,8 @@ namespace HousingWebApi
[StringLength(50)]
public string Email { get; set; }
- public byte[] Picture { get; set; }
+ [StringLength(50)]
+ public string Picture { get; set; }
public virtual Apartment Apartment { get; set; }
}
diff --git a/ApartmentManager/HousingWebApi/Models/User.cs b/ApartmentManager/HousingWebApi/Models/User.cs
index 019e788..12438c6 100644
--- a/ApartmentManager/HousingWebApi/Models/User.cs
+++ b/ApartmentManager/HousingWebApi/Models/User.cs
@@ -36,7 +36,8 @@ namespace HousingWebApi
[StringLength(50)]
public string Email { get; set; }
- public byte[] Picture { get; set; }
+ [StringLength(50)]
+ public string Picture { get; set; }
[Column(TypeName = "date")]
public DateTime? MoveInDate { get; set; }