JellyfinDbModelSnapshot.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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.4");
  18. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  19. {
  20. b.Property<int>("Id")
  21. .ValueGeneratedOnAdd()
  22. .HasColumnType("INTEGER");
  23. b.Property<int>("DayOfWeek")
  24. .HasColumnType("INTEGER");
  25. b.Property<double>("EndHour")
  26. .HasColumnType("REAL");
  27. b.Property<double>("StartHour")
  28. .HasColumnType("REAL");
  29. b.Property<Guid>("UserId")
  30. .HasColumnType("TEXT");
  31. b.HasKey("Id");
  32. b.HasIndex("UserId");
  33. b.ToTable("AccessSchedule");
  34. });
  35. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  36. {
  37. b.Property<int>("Id")
  38. .ValueGeneratedOnAdd()
  39. .HasColumnType("INTEGER");
  40. b.Property<DateTime>("DateCreated")
  41. .HasColumnType("TEXT");
  42. b.Property<string>("ItemId")
  43. .HasColumnType("TEXT")
  44. .HasMaxLength(256);
  45. b.Property<int>("LogSeverity")
  46. .HasColumnType("INTEGER");
  47. b.Property<string>("Name")
  48. .IsRequired()
  49. .HasColumnType("TEXT")
  50. .HasMaxLength(512);
  51. b.Property<string>("Overview")
  52. .HasColumnType("TEXT")
  53. .HasMaxLength(512);
  54. b.Property<uint>("RowVersion")
  55. .IsConcurrencyToken()
  56. .HasColumnType("INTEGER");
  57. b.Property<string>("ShortOverview")
  58. .HasColumnType("TEXT")
  59. .HasMaxLength(512);
  60. b.Property<string>("Type")
  61. .IsRequired()
  62. .HasColumnType("TEXT")
  63. .HasMaxLength(256);
  64. b.Property<Guid>("UserId")
  65. .HasColumnType("TEXT");
  66. b.HasKey("Id");
  67. b.ToTable("ActivityLogs");
  68. });
  69. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  70. {
  71. b.Property<int>("Id")
  72. .ValueGeneratedOnAdd()
  73. .HasColumnType("INTEGER");
  74. b.Property<DateTime>("LastModified")
  75. .HasColumnType("TEXT");
  76. b.Property<string>("Path")
  77. .IsRequired()
  78. .HasColumnType("TEXT")
  79. .HasMaxLength(512);
  80. b.HasKey("Id");
  81. b.ToTable("ImageInfo");
  82. });
  83. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  84. {
  85. b.Property<int>("Id")
  86. .ValueGeneratedOnAdd()
  87. .HasColumnType("INTEGER");
  88. b.Property<int>("Kind")
  89. .HasColumnType("INTEGER");
  90. b.Property<Guid?>("Permission_Permissions_Guid")
  91. .HasColumnType("TEXT");
  92. b.Property<uint>("RowVersion")
  93. .IsConcurrencyToken()
  94. .HasColumnType("INTEGER");
  95. b.Property<bool>("Value")
  96. .HasColumnType("INTEGER");
  97. b.HasKey("Id");
  98. b.HasIndex("Permission_Permissions_Guid");
  99. b.ToTable("Permissions");
  100. });
  101. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  102. {
  103. b.Property<int>("Id")
  104. .ValueGeneratedOnAdd()
  105. .HasColumnType("INTEGER");
  106. b.Property<int>("Kind")
  107. .HasColumnType("INTEGER");
  108. b.Property<Guid?>("Preference_Preferences_Guid")
  109. .HasColumnType("TEXT");
  110. b.Property<uint>("RowVersion")
  111. .IsConcurrencyToken()
  112. .HasColumnType("INTEGER");
  113. b.Property<string>("Value")
  114. .IsRequired()
  115. .HasColumnType("TEXT")
  116. .HasMaxLength(65535);
  117. b.HasKey("Id");
  118. b.HasIndex("Preference_Preferences_Guid");
  119. b.ToTable("Preferences");
  120. });
  121. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  122. {
  123. b.Property<Guid>("Id")
  124. .ValueGeneratedOnAdd()
  125. .HasColumnType("TEXT");
  126. b.Property<string>("AudioLanguagePreference")
  127. .HasColumnType("TEXT")
  128. .HasMaxLength(255);
  129. b.Property<string>("AuthenticationProviderId")
  130. .IsRequired()
  131. .HasColumnType("TEXT")
  132. .HasMaxLength(255);
  133. b.Property<bool>("DisplayCollectionsView")
  134. .HasColumnType("INTEGER");
  135. b.Property<bool>("DisplayMissingEpisodes")
  136. .HasColumnType("INTEGER");
  137. b.Property<string>("EasyPassword")
  138. .HasColumnType("TEXT")
  139. .HasMaxLength(65535);
  140. b.Property<bool>("EnableAutoLogin")
  141. .HasColumnType("INTEGER");
  142. b.Property<bool>("EnableLocalPassword")
  143. .HasColumnType("INTEGER");
  144. b.Property<bool>("EnableNextEpisodeAutoPlay")
  145. .HasColumnType("INTEGER");
  146. b.Property<bool>("EnableUserPreferenceAccess")
  147. .HasColumnType("INTEGER");
  148. b.Property<bool>("HidePlayedInLatest")
  149. .HasColumnType("INTEGER");
  150. b.Property<long>("InternalId")
  151. .HasColumnType("INTEGER");
  152. b.Property<int>("InvalidLoginAttemptCount")
  153. .HasColumnType("INTEGER");
  154. b.Property<DateTime?>("LastActivityDate")
  155. .HasColumnType("TEXT");
  156. b.Property<DateTime?>("LastLoginDate")
  157. .HasColumnType("TEXT");
  158. b.Property<int?>("LoginAttemptsBeforeLockout")
  159. .HasColumnType("INTEGER");
  160. b.Property<int?>("MaxParentalAgeRating")
  161. .HasColumnType("INTEGER");
  162. b.Property<bool>("MustUpdatePassword")
  163. .HasColumnType("INTEGER");
  164. b.Property<string>("Password")
  165. .HasColumnType("TEXT")
  166. .HasMaxLength(65535);
  167. b.Property<string>("PasswordResetProviderId")
  168. .IsRequired()
  169. .HasColumnType("TEXT")
  170. .HasMaxLength(255);
  171. b.Property<bool>("PlayDefaultAudioTrack")
  172. .HasColumnType("INTEGER");
  173. b.Property<int?>("ProfileImageId")
  174. .HasColumnType("INTEGER");
  175. b.Property<bool>("RememberAudioSelections")
  176. .HasColumnType("INTEGER");
  177. b.Property<bool>("RememberSubtitleSelections")
  178. .HasColumnType("INTEGER");
  179. b.Property<int?>("RemoteClientBitrateLimit")
  180. .HasColumnType("INTEGER");
  181. b.Property<uint>("RowVersion")
  182. .IsConcurrencyToken()
  183. .HasColumnType("INTEGER");
  184. b.Property<string>("SubtitleLanguagePreference")
  185. .HasColumnType("TEXT")
  186. .HasMaxLength(255);
  187. b.Property<int>("SubtitleMode")
  188. .HasColumnType("INTEGER");
  189. b.Property<int>("SyncPlayAccess")
  190. .HasColumnType("INTEGER");
  191. b.Property<string>("Username")
  192. .IsRequired()
  193. .HasColumnType("TEXT")
  194. .HasMaxLength(255);
  195. b.HasKey("Id");
  196. b.HasIndex("ProfileImageId");
  197. b.ToTable("Users");
  198. });
  199. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  200. {
  201. b.HasOne("Jellyfin.Data.Entities.User", null)
  202. .WithMany("AccessSchedules")
  203. .HasForeignKey("UserId")
  204. .OnDelete(DeleteBehavior.Cascade)
  205. .IsRequired();
  206. });
  207. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  208. {
  209. b.HasOne("Jellyfin.Data.Entities.User", null)
  210. .WithMany("Permissions")
  211. .HasForeignKey("Permission_Permissions_Guid");
  212. });
  213. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  214. {
  215. b.HasOne("Jellyfin.Data.Entities.User", null)
  216. .WithMany("Preferences")
  217. .HasForeignKey("Preference_Preferences_Guid");
  218. });
  219. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  220. {
  221. b.HasOne("Jellyfin.Data.Entities.ImageInfo", "ProfileImage")
  222. .WithMany()
  223. .HasForeignKey("ProfileImageId");
  224. });
  225. #pragma warning restore 612, 618
  226. }
  227. }
  228. }