aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Entities/UserAvatarEntity.cs
diff options
context:
space:
mode:
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; }
+ }
+}