JellyfinDbModelSnapshot.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  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("AccessSchedules");
  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.Property<Guid?>("UserId")
  81. .HasColumnType("TEXT");
  82. b.HasKey("Id");
  83. b.HasIndex("UserId")
  84. .IsUnique();
  85. b.ToTable("ImageInfos");
  86. });
  87. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  88. {
  89. b.Property<int>("Id")
  90. .ValueGeneratedOnAdd()
  91. .HasColumnType("INTEGER");
  92. b.Property<int>("Kind")
  93. .HasColumnType("INTEGER");
  94. b.Property<Guid?>("Permission_Permissions_Guid")
  95. .HasColumnType("TEXT");
  96. b.Property<uint>("RowVersion")
  97. .IsConcurrencyToken()
  98. .HasColumnType("INTEGER");
  99. b.Property<bool>("Value")
  100. .HasColumnType("INTEGER");
  101. b.HasKey("Id");
  102. b.HasIndex("Permission_Permissions_Guid");
  103. b.ToTable("Permissions");
  104. });
  105. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  106. {
  107. b.Property<int>("Id")
  108. .ValueGeneratedOnAdd()
  109. .HasColumnType("INTEGER");
  110. b.Property<int>("Kind")
  111. .HasColumnType("INTEGER");
  112. b.Property<Guid?>("Preference_Preferences_Guid")
  113. .HasColumnType("TEXT");
  114. b.Property<uint>("RowVersion")
  115. .IsConcurrencyToken()
  116. .HasColumnType("INTEGER");
  117. b.Property<string>("Value")
  118. .IsRequired()
  119. .HasColumnType("TEXT")
  120. .HasMaxLength(65535);
  121. b.HasKey("Id");
  122. b.HasIndex("Preference_Preferences_Guid");
  123. b.ToTable("Preferences");
  124. });
  125. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  126. {
  127. b.Property<Guid>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasColumnType("TEXT");
  130. b.Property<string>("AudioLanguagePreference")
  131. .HasColumnType("TEXT")
  132. .HasMaxLength(255);
  133. b.Property<string>("AuthenticationProviderId")
  134. .IsRequired()
  135. .HasColumnType("TEXT")
  136. .HasMaxLength(255);
  137. b.Property<bool>("DisplayCollectionsView")
  138. .HasColumnType("INTEGER");
  139. b.Property<bool>("DisplayMissingEpisodes")
  140. .HasColumnType("INTEGER");
  141. b.Property<string>("EasyPassword")
  142. .HasColumnType("TEXT")
  143. .HasMaxLength(65535);
  144. b.Property<bool>("EnableAutoLogin")
  145. .HasColumnType("INTEGER");
  146. b.Property<bool>("EnableLocalPassword")
  147. .HasColumnType("INTEGER");
  148. b.Property<bool>("EnableNextEpisodeAutoPlay")
  149. .HasColumnType("INTEGER");
  150. b.Property<bool>("EnableUserPreferenceAccess")
  151. .HasColumnType("INTEGER");
  152. b.Property<bool>("HidePlayedInLatest")
  153. .HasColumnType("INTEGER");
  154. b.Property<long>("InternalId")
  155. .HasColumnType("INTEGER");
  156. b.Property<int>("InvalidLoginAttemptCount")
  157. .HasColumnType("INTEGER");
  158. b.Property<DateTime?>("LastActivityDate")
  159. .HasColumnType("TEXT");
  160. b.Property<DateTime?>("LastLoginDate")
  161. .HasColumnType("TEXT");
  162. b.Property<int?>("LoginAttemptsBeforeLockout")
  163. .HasColumnType("INTEGER");
  164. b.Property<int?>("MaxParentalAgeRating")
  165. .HasColumnType("INTEGER");
  166. b.Property<bool>("MustUpdatePassword")
  167. .HasColumnType("INTEGER");
  168. b.Property<string>("Password")
  169. .HasColumnType("TEXT")
  170. .HasMaxLength(65535);
  171. b.Property<string>("PasswordResetProviderId")
  172. .IsRequired()
  173. .HasColumnType("TEXT")
  174. .HasMaxLength(255);
  175. b.Property<bool>("PlayDefaultAudioTrack")
  176. .HasColumnType("INTEGER");
  177. b.Property<bool>("RememberAudioSelections")
  178. .HasColumnType("INTEGER");
  179. b.Property<bool>("RememberSubtitleSelections")
  180. .HasColumnType("INTEGER");
  181. b.Property<int?>("RemoteClientBitrateLimit")
  182. .HasColumnType("INTEGER");
  183. b.Property<uint>("RowVersion")
  184. .IsConcurrencyToken()
  185. .HasColumnType("INTEGER");
  186. b.Property<string>("SubtitleLanguagePreference")
  187. .HasColumnType("TEXT")
  188. .HasMaxLength(255);
  189. b.Property<int>("SubtitleMode")
  190. .HasColumnType("INTEGER");
  191. b.Property<int>("SyncPlayAccess")
  192. .HasColumnType("INTEGER");
  193. b.Property<string>("Username")
  194. .IsRequired()
  195. .HasColumnType("TEXT")
  196. .HasMaxLength(255);
  197. b.HasKey("Id");
  198. b.ToTable("Users");
  199. });
  200. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  201. {
  202. b.HasOne("Jellyfin.Data.Entities.User", null)
  203. .WithMany("AccessSchedules")
  204. .HasForeignKey("UserId")
  205. .OnDelete(DeleteBehavior.Cascade)
  206. .IsRequired();
  207. });
  208. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  209. {
  210. b.HasOne("Jellyfin.Data.Entities.User", null)
  211. .WithOne("ProfileImage")
  212. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  213. });
  214. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  215. {
  216. b.HasOne("Jellyfin.Data.Entities.User", null)
  217. .WithMany("Permissions")
  218. .HasForeignKey("Permission_Permissions_Guid");
  219. });
  220. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  221. {
  222. b.HasOne("Jellyfin.Data.Entities.User", null)
  223. .WithMany("Preferences")
  224. .HasForeignKey("Preference_Preferences_Guid");
  225. });
  226. #pragma warning restore 612, 618
  227. }
  228. }
  229. }