aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserAvatarEntity.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-21 01:11:17 +0800
committercrupest <crupest@outlook.com>2020-01-21 01:11:17 +0800
commit4aadb05cd5718c7d16bf432c96e23ae4e7db4783 (patch)
treea45506852659b9d8e2bfe0b9e58a496060f7cd9b /Timeline/Entities/UserAvatarEntity.cs
parente6069a6980ec6d2505e19026d4c84a9588f153dc (diff)
downloadtimeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.gz
timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.tar.bz2
timeline-4aadb05cd5718c7d16bf432c96e23ae4e7db4783.zip
...
Diffstat (limited to 'Timeline/Entities/UserAvatarEntity.cs')
-rw-r--r--Timeline/Entities/UserAvatarEntity.cs28
1 files changed, 28 insertions, 0 deletions
diff --git a/Timeline/Entities/UserAvatarEntity.cs b/Timeline/Entities/UserAvatarEntity.cs
new file mode 100644
index 00000000..eed819bc
--- /dev/null
+++ b/Timeline/Entities/UserAvatarEntity.cs
@@ -0,0 +1,28 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+
+namespace Timeline.Entities
+{
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Performance", "CA1819:Properties should not return arrays", Justification = "This is data base entity.")]
+ [Table("user_avatars")]
+ public class UserAvatarEntity
+ {
+ [Column("id"), Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long Id { get; set; }
+
+ [Column("data")]
+ public byte[]? Data { get; set; }
+
+ [Column("type")]
+ public string? Type { get; set; }
+
+ [Column("etag"), MaxLength(30)]
+ public string? ETag { get; set; }
+
+ [Column("last_modified"), Required]
+ public DateTime LastModified { get; set; }
+
+ public long UserId { get; set; }
+ }
+}