JellyfinDbModelSnapshot.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. // <auto-generated />
  2. using System;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.EntityFrameworkCore.Infrastructure;
  5. namespace Jellyfin.Server.Implementations.Migrations
  6. {
  7. [DbContext(typeof(JellyfinDb))]
  8. partial class JellyfinDbModelSnapshot : ModelSnapshot
  9. {
  10. protected override void BuildModel(ModelBuilder modelBuilder)
  11. {
  12. #pragma warning disable 612, 618
  13. modelBuilder
  14. .HasDefaultSchema("jellyfin")
  15. .HasAnnotation("ProductVersion", "3.1.3");
  16. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  17. {
  18. b.Property<int>("Id")
  19. .ValueGeneratedOnAdd()
  20. .HasColumnType("INTEGER");
  21. b.Property<DateTime>("DateCreated")
  22. .HasColumnType("TEXT");
  23. b.Property<string>("ItemId")
  24. .HasColumnType("TEXT")
  25. .HasMaxLength(256);
  26. b.Property<int>("LogSeverity")
  27. .HasColumnType("INTEGER");
  28. b.Property<string>("Name")
  29. .IsRequired()
  30. .HasColumnType("TEXT")
  31. .HasMaxLength(512);
  32. b.Property<string>("Overview")
  33. .HasColumnType("TEXT")
  34. .HasMaxLength(512);
  35. b.Property<uint>("RowVersion")
  36. .IsConcurrencyToken()
  37. .HasColumnType("INTEGER");
  38. b.Property<string>("ShortOverview")
  39. .HasColumnType("TEXT")
  40. .HasMaxLength(512);
  41. b.Property<string>("Type")
  42. .IsRequired()
  43. .HasColumnType("TEXT")
  44. .HasMaxLength(256);
  45. b.Property<Guid>("UserId")
  46. .HasColumnType("TEXT");
  47. b.HasKey("Id");
  48. b.ToTable("ActivityLogs");
  49. });
  50. modelBuilder.Entity("Jellyfin.Data.Entities.Group", b =>
  51. {
  52. b.Property<int>("Id")
  53. .ValueGeneratedOnAdd()
  54. .HasColumnType("INTEGER");
  55. b.Property<int?>("Group_Groups_Id")
  56. .HasColumnType("INTEGER");
  57. b.Property<string>("Name")
  58. .IsRequired()
  59. .HasColumnType("TEXT")
  60. .HasMaxLength(255);
  61. b.Property<uint>("RowVersion")
  62. .IsConcurrencyToken()
  63. .HasColumnType("INTEGER");
  64. b.HasKey("Id");
  65. b.HasIndex("Group_Groups_Id");
  66. b.ToTable("Group");
  67. });
  68. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  69. {
  70. b.Property<int>("Id")
  71. .ValueGeneratedOnAdd()
  72. .HasColumnType("INTEGER");
  73. b.Property<int>("Kind")
  74. .HasColumnType("INTEGER");
  75. b.Property<int?>("Permission_GroupPermissions_Id")
  76. .HasColumnType("INTEGER");
  77. b.Property<int?>("Permission_Permissions_Id")
  78. .HasColumnType("INTEGER");
  79. b.Property<uint>("RowVersion")
  80. .IsConcurrencyToken()
  81. .HasColumnType("INTEGER");
  82. b.Property<bool>("Value")
  83. .HasColumnType("INTEGER");
  84. b.HasKey("Id");
  85. b.HasIndex("Permission_GroupPermissions_Id");
  86. b.HasIndex("Permission_Permissions_Id");
  87. b.ToTable("Permission");
  88. });
  89. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  90. {
  91. b.Property<int>("Id")
  92. .ValueGeneratedOnAdd()
  93. .HasColumnType("INTEGER");
  94. b.Property<int>("Kind")
  95. .HasColumnType("INTEGER");
  96. b.Property<int?>("Preference_Preferences_Id")
  97. .HasColumnType("INTEGER");
  98. b.Property<uint>("RowVersion")
  99. .IsConcurrencyToken()
  100. .HasColumnType("INTEGER");
  101. b.Property<string>("Value")
  102. .IsRequired()
  103. .HasColumnType("TEXT")
  104. .HasMaxLength(65535);
  105. b.HasKey("Id");
  106. b.HasIndex("Preference_Preferences_Id");
  107. b.ToTable("Preference");
  108. });
  109. modelBuilder.Entity("Jellyfin.Data.Entities.ProviderMapping", b =>
  110. {
  111. b.Property<int>("Id")
  112. .ValueGeneratedOnAdd()
  113. .HasColumnType("INTEGER");
  114. b.Property<string>("ProviderData")
  115. .IsRequired()
  116. .HasColumnType("TEXT")
  117. .HasMaxLength(65535);
  118. b.Property<int?>("ProviderMapping_ProviderMappings_Id")
  119. .HasColumnType("INTEGER");
  120. b.Property<string>("ProviderName")
  121. .IsRequired()
  122. .HasColumnType("TEXT")
  123. .HasMaxLength(255);
  124. b.Property<string>("ProviderSecrets")
  125. .IsRequired()
  126. .HasColumnType("TEXT")
  127. .HasMaxLength(65535);
  128. b.Property<uint>("RowVersion")
  129. .IsConcurrencyToken()
  130. .HasColumnType("INTEGER");
  131. b.HasKey("Id");
  132. b.HasIndex("ProviderMapping_ProviderMappings_Id");
  133. b.ToTable("ProviderMapping");
  134. });
  135. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  136. {
  137. b.Property<int>("Id")
  138. .ValueGeneratedOnAdd()
  139. .HasColumnType("INTEGER");
  140. b.Property<string>("AudioLanguagePreference")
  141. .IsRequired()
  142. .HasColumnType("TEXT")
  143. .HasMaxLength(255);
  144. b.Property<string>("AuthenticationProviderId")
  145. .IsRequired()
  146. .HasColumnType("TEXT")
  147. .HasMaxLength(255);
  148. b.Property<bool?>("DisplayCollectionsView")
  149. .HasColumnType("INTEGER");
  150. b.Property<bool?>("DisplayMissingEpisodes")
  151. .HasColumnType("INTEGER");
  152. b.Property<bool?>("EnableNextEpisodeAutoPlay")
  153. .HasColumnType("INTEGER");
  154. b.Property<bool?>("EnableUserPreferenceAccess")
  155. .HasColumnType("INTEGER");
  156. b.Property<string>("GroupedFolders")
  157. .HasColumnType("TEXT")
  158. .HasMaxLength(65535);
  159. b.Property<bool?>("HidePlayedInLatest")
  160. .HasColumnType("INTEGER");
  161. b.Property<int>("InvalidLoginAttemptCount")
  162. .HasColumnType("INTEGER");
  163. b.Property<string>("LatestItemExcludes")
  164. .HasColumnType("TEXT")
  165. .HasMaxLength(65535);
  166. b.Property<int?>("LoginAttemptsBeforeLockout")
  167. .HasColumnType("INTEGER");
  168. b.Property<bool>("MustUpdatePassword")
  169. .HasColumnType("INTEGER");
  170. b.Property<string>("MyMediaExcludes")
  171. .HasColumnType("TEXT")
  172. .HasMaxLength(65535);
  173. b.Property<string>("OrderedViews")
  174. .HasColumnType("TEXT")
  175. .HasMaxLength(65535);
  176. b.Property<string>("Password")
  177. .HasColumnType("TEXT")
  178. .HasMaxLength(65535);
  179. b.Property<bool>("PlayDefaultAudioTrack")
  180. .HasColumnType("INTEGER");
  181. b.Property<bool?>("RememberAudioSelections")
  182. .HasColumnType("INTEGER");
  183. b.Property<bool?>("RememberSubtitleSelections")
  184. .HasColumnType("INTEGER");
  185. b.Property<uint>("RowVersion")
  186. .IsConcurrencyToken()
  187. .HasColumnType("INTEGER");
  188. b.Property<string>("SubtitleLanguagePrefernce")
  189. .HasColumnType("TEXT")
  190. .HasMaxLength(255);
  191. b.Property<string>("SubtitleMode")
  192. .IsRequired()
  193. .HasColumnType("TEXT")
  194. .HasMaxLength(255);
  195. b.Property<string>("Username")
  196. .IsRequired()
  197. .HasColumnType("TEXT")
  198. .HasMaxLength(255);
  199. b.HasKey("Id");
  200. b.ToTable("User");
  201. });
  202. modelBuilder.Entity("Jellyfin.Data.Entities.Group", b =>
  203. {
  204. b.HasOne("Jellyfin.Data.Entities.User", null)
  205. .WithMany("Groups")
  206. .HasForeignKey("Group_Groups_Id");
  207. });
  208. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  209. {
  210. b.HasOne("Jellyfin.Data.Entities.Group", null)
  211. .WithMany("GroupPermissions")
  212. .HasForeignKey("Permission_GroupPermissions_Id");
  213. b.HasOne("Jellyfin.Data.Entities.User", null)
  214. .WithMany("Permissions")
  215. .HasForeignKey("Permission_Permissions_Id");
  216. });
  217. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  218. {
  219. b.HasOne("Jellyfin.Data.Entities.Group", null)
  220. .WithMany("Preferences")
  221. .HasForeignKey("Preference_Preferences_Id");
  222. b.HasOne("Jellyfin.Data.Entities.User", null)
  223. .WithMany("Preferences")
  224. .HasForeignKey("Preference_Preferences_Id");
  225. });
  226. modelBuilder.Entity("Jellyfin.Data.Entities.ProviderMapping", b =>
  227. {
  228. b.HasOne("Jellyfin.Data.Entities.Group", null)
  229. .WithMany("ProviderMappings")
  230. .HasForeignKey("ProviderMapping_ProviderMappings_Id");
  231. b.HasOne("Jellyfin.Data.Entities.User", null)
  232. .WithMany("ProviderMappings")
  233. .HasForeignKey("ProviderMapping_ProviderMappings_Id");
  234. });
  235. #pragma warning restore 612, 618
  236. }
  237. }
  238. }