aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Data/Entities/HomeSection.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-06-30 21:44:41 -0400
committerPatrick Barron <barronpm@gmail.com>2020-07-17 16:11:53 -0400
commitab396225eaf486932fdb2f23eefa1cbfecbb27f4 (patch)
treeb225cd9617e14ae1f0386f9ff8aa85a8a433e424 /Jellyfin.Data/Entities/HomeSection.cs
parent175e7b45e56fb97b0f9bdddd99c195af3ecabcc6 (diff)
Migrate Display Preferences to EF Core
Diffstat (limited to 'Jellyfin.Data/Entities/HomeSection.cs')
-rw-r--r--Jellyfin.Data/Entities/HomeSection.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Jellyfin.Data/Entities/HomeSection.cs b/Jellyfin.Data/Entities/HomeSection.cs
new file mode 100644
index 000000000..f39956a54
--- /dev/null
+++ b/Jellyfin.Data/Entities/HomeSection.cs
@@ -0,0 +1,21 @@
+using System;
+using System.ComponentModel.DataAnnotations;
+using System.ComponentModel.DataAnnotations.Schema;
+using Jellyfin.Data.Enums;
+
+namespace Jellyfin.Data.Entities
+{
+ public class HomeSection
+ {
+ [Key]
+ [Required]
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int Id { get; protected set; }
+
+ public int DisplayPreferencesId { get; set; }
+
+ public int Order { get; set; }
+
+ public HomeSectionType Type { get; set; }
+ }
+}