aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Data/RelationModels
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-02-05 17:46:59 +0200
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-02-05 17:46:59 +0200
commita0a048d1fc6672a6478169f3c9139d9e5a6ff474 (patch)
tree441ae3b35e2f6b55c9912e70f8a0f304ba26bc83 /src/DevHive.Data/RelationModels
parent60ed435203f0c60d4c6fabe77aa4e87656aaf8c1 (diff)
downloadDevHive-a0a048d1fc6672a6478169f3c9139d9e5a6ff474.tar
DevHive-a0a048d1fc6672a6478169f3c9139d9e5a6ff474.tar.gz
DevHive-a0a048d1fc6672a6478169f3c9139d9e5a6ff474.zip
Implemented post attachments, which move post file urls to their own table; updated post repository and post service to work with them (but didn't update service or web models)
Diffstat (limited to 'src/DevHive.Data/RelationModels')
-rw-r--r--src/DevHive.Data/RelationModels/PostAttachments.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/DevHive.Data/RelationModels/PostAttachments.cs b/src/DevHive.Data/RelationModels/PostAttachments.cs
new file mode 100644
index 0000000..48aa8ff
--- /dev/null
+++ b/src/DevHive.Data/RelationModels/PostAttachments.cs
@@ -0,0 +1,16 @@
+using System;
+using System.ComponentModel.DataAnnotations.Schema;
+using DevHive.Data.Models;
+
+namespace DevHive.Data.RelationModels
+{
+ [Table("PostAttachments")]
+ public class PostAttachments
+ {
+ public Guid Id { get; set; }
+
+ public Post Post { get; set; }
+
+ public string FileUrl { get; set; }
+ }
+}