JellyfinDbModelSnapshot.cs 11 KB

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