20210407110544_NullableCustomPrefValue.Designer.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. #pragma warning disable CS1591
  2. // <auto-generated />
  3. using System;
  4. using Jellyfin.Server.Implementations;
  5. using Microsoft.EntityFrameworkCore;
  6. using Microsoft.EntityFrameworkCore.Infrastructure;
  7. using Microsoft.EntityFrameworkCore.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. namespace Jellyfin.Server.Implementations.Migrations
  10. {
  11. [DbContext(typeof(JellyfinDbContext))]
  12. [Migration("20210407110544_NullableCustomPrefValue")]
  13. partial class NullableCustomPrefValue
  14. {
  15. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  16. {
  17. #pragma warning disable 612, 618
  18. modelBuilder
  19. .HasDefaultSchema("jellyfin")
  20. .HasAnnotation("ProductVersion", "5.0.3");
  21. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  22. {
  23. b.Property<int>("Id")
  24. .ValueGeneratedOnAdd()
  25. .HasColumnType("INTEGER");
  26. b.Property<int>("DayOfWeek")
  27. .HasColumnType("INTEGER");
  28. b.Property<double>("EndHour")
  29. .HasColumnType("REAL");
  30. b.Property<double>("StartHour")
  31. .HasColumnType("REAL");
  32. b.Property<Guid>("UserId")
  33. .HasColumnType("TEXT");
  34. b.HasKey("Id");
  35. b.HasIndex("UserId");
  36. b.ToTable("AccessSchedules");
  37. });
  38. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  39. {
  40. b.Property<int>("Id")
  41. .ValueGeneratedOnAdd()
  42. .HasColumnType("INTEGER");
  43. b.Property<DateTime>("DateCreated")
  44. .HasColumnType("TEXT");
  45. b.Property<string>("ItemId")
  46. .HasMaxLength(256)
  47. .HasColumnType("TEXT");
  48. b.Property<int>("LogSeverity")
  49. .HasColumnType("INTEGER");
  50. b.Property<string>("Name")
  51. .IsRequired()
  52. .HasMaxLength(512)
  53. .HasColumnType("TEXT");
  54. b.Property<string>("Overview")
  55. .HasMaxLength(512)
  56. .HasColumnType("TEXT");
  57. b.Property<uint>("RowVersion")
  58. .IsConcurrencyToken()
  59. .HasColumnType("INTEGER");
  60. b.Property<string>("ShortOverview")
  61. .HasMaxLength(512)
  62. .HasColumnType("TEXT");
  63. b.Property<string>("Type")
  64. .IsRequired()
  65. .HasMaxLength(256)
  66. .HasColumnType("TEXT");
  67. b.Property<Guid>("UserId")
  68. .HasColumnType("TEXT");
  69. b.HasKey("Id");
  70. b.ToTable("ActivityLogs");
  71. });
  72. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  73. {
  74. b.Property<int>("Id")
  75. .ValueGeneratedOnAdd()
  76. .HasColumnType("INTEGER");
  77. b.Property<string>("Client")
  78. .IsRequired()
  79. .HasMaxLength(32)
  80. .HasColumnType("TEXT");
  81. b.Property<Guid>("ItemId")
  82. .HasColumnType("TEXT");
  83. b.Property<string>("Key")
  84. .IsRequired()
  85. .HasColumnType("TEXT");
  86. b.Property<Guid>("UserId")
  87. .HasColumnType("TEXT");
  88. b.Property<string>("Value")
  89. .HasColumnType("TEXT");
  90. b.HasKey("Id");
  91. b.HasIndex("UserId");
  92. b.HasIndex("UserId", "ItemId", "Client", "Key")
  93. .IsUnique();
  94. b.ToTable("CustomItemDisplayPreferences");
  95. });
  96. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  97. {
  98. b.Property<int>("Id")
  99. .ValueGeneratedOnAdd()
  100. .HasColumnType("INTEGER");
  101. b.Property<int>("ChromecastVersion")
  102. .HasColumnType("INTEGER");
  103. b.Property<string>("Client")
  104. .IsRequired()
  105. .HasMaxLength(32)
  106. .HasColumnType("TEXT");
  107. b.Property<string>("DashboardTheme")
  108. .HasMaxLength(32)
  109. .HasColumnType("TEXT");
  110. b.Property<bool>("EnableNextVideoInfoOverlay")
  111. .HasColumnType("INTEGER");
  112. b.Property<int?>("IndexBy")
  113. .HasColumnType("INTEGER");
  114. b.Property<Guid>("ItemId")
  115. .HasColumnType("TEXT");
  116. b.Property<int>("ScrollDirection")
  117. .HasColumnType("INTEGER");
  118. b.Property<bool>("ShowBackdrop")
  119. .HasColumnType("INTEGER");
  120. b.Property<bool>("ShowSidebar")
  121. .HasColumnType("INTEGER");
  122. b.Property<int>("SkipBackwardLength")
  123. .HasColumnType("INTEGER");
  124. b.Property<int>("SkipForwardLength")
  125. .HasColumnType("INTEGER");
  126. b.Property<string>("TvHome")
  127. .HasMaxLength(32)
  128. .HasColumnType("TEXT");
  129. b.Property<Guid>("UserId")
  130. .HasColumnType("TEXT");
  131. b.HasKey("Id");
  132. b.HasIndex("UserId");
  133. b.HasIndex("UserId", "ItemId", "Client")
  134. .IsUnique();
  135. b.ToTable("DisplayPreferences");
  136. });
  137. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  138. {
  139. b.Property<int>("Id")
  140. .ValueGeneratedOnAdd()
  141. .HasColumnType("INTEGER");
  142. b.Property<int>("DisplayPreferencesId")
  143. .HasColumnType("INTEGER");
  144. b.Property<int>("Order")
  145. .HasColumnType("INTEGER");
  146. b.Property<int>("Type")
  147. .HasColumnType("INTEGER");
  148. b.HasKey("Id");
  149. b.HasIndex("DisplayPreferencesId");
  150. b.ToTable("HomeSection");
  151. });
  152. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  153. {
  154. b.Property<int>("Id")
  155. .ValueGeneratedOnAdd()
  156. .HasColumnType("INTEGER");
  157. b.Property<DateTime>("LastModified")
  158. .HasColumnType("TEXT");
  159. b.Property<string>("Path")
  160. .IsRequired()
  161. .HasMaxLength(512)
  162. .HasColumnType("TEXT");
  163. b.Property<Guid?>("UserId")
  164. .HasColumnType("TEXT");
  165. b.HasKey("Id");
  166. b.HasIndex("UserId")
  167. .IsUnique();
  168. b.ToTable("ImageInfos");
  169. });
  170. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  171. {
  172. b.Property<int>("Id")
  173. .ValueGeneratedOnAdd()
  174. .HasColumnType("INTEGER");
  175. b.Property<string>("Client")
  176. .IsRequired()
  177. .HasMaxLength(32)
  178. .HasColumnType("TEXT");
  179. b.Property<int?>("IndexBy")
  180. .HasColumnType("INTEGER");
  181. b.Property<Guid>("ItemId")
  182. .HasColumnType("TEXT");
  183. b.Property<bool>("RememberIndexing")
  184. .HasColumnType("INTEGER");
  185. b.Property<bool>("RememberSorting")
  186. .HasColumnType("INTEGER");
  187. b.Property<string>("SortBy")
  188. .IsRequired()
  189. .HasMaxLength(64)
  190. .HasColumnType("TEXT");
  191. b.Property<int>("SortOrder")
  192. .HasColumnType("INTEGER");
  193. b.Property<Guid>("UserId")
  194. .HasColumnType("TEXT");
  195. b.Property<int>("ViewType")
  196. .HasColumnType("INTEGER");
  197. b.HasKey("Id");
  198. b.HasIndex("UserId");
  199. b.ToTable("ItemDisplayPreferences");
  200. });
  201. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  202. {
  203. b.Property<int>("Id")
  204. .ValueGeneratedOnAdd()
  205. .HasColumnType("INTEGER");
  206. b.Property<int>("Kind")
  207. .HasColumnType("INTEGER");
  208. b.Property<Guid?>("Permission_Permissions_Guid")
  209. .HasColumnType("TEXT");
  210. b.Property<uint>("RowVersion")
  211. .IsConcurrencyToken()
  212. .HasColumnType("INTEGER");
  213. b.Property<bool>("Value")
  214. .HasColumnType("INTEGER");
  215. b.HasKey("Id");
  216. b.HasIndex("Permission_Permissions_Guid");
  217. b.ToTable("Permissions");
  218. });
  219. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  220. {
  221. b.Property<int>("Id")
  222. .ValueGeneratedOnAdd()
  223. .HasColumnType("INTEGER");
  224. b.Property<int>("Kind")
  225. .HasColumnType("INTEGER");
  226. b.Property<Guid?>("Preference_Preferences_Guid")
  227. .HasColumnType("TEXT");
  228. b.Property<uint>("RowVersion")
  229. .IsConcurrencyToken()
  230. .HasColumnType("INTEGER");
  231. b.Property<string>("Value")
  232. .IsRequired()
  233. .HasMaxLength(65535)
  234. .HasColumnType("TEXT");
  235. b.HasKey("Id");
  236. b.HasIndex("Preference_Preferences_Guid");
  237. b.ToTable("Preferences");
  238. });
  239. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  240. {
  241. b.Property<Guid>("Id")
  242. .ValueGeneratedOnAdd()
  243. .HasColumnType("TEXT");
  244. b.Property<string>("AudioLanguagePreference")
  245. .HasMaxLength(255)
  246. .HasColumnType("TEXT");
  247. b.Property<string>("AuthenticationProviderId")
  248. .IsRequired()
  249. .HasMaxLength(255)
  250. .HasColumnType("TEXT");
  251. b.Property<bool>("DisplayCollectionsView")
  252. .HasColumnType("INTEGER");
  253. b.Property<bool>("DisplayMissingEpisodes")
  254. .HasColumnType("INTEGER");
  255. b.Property<string>("EasyPassword")
  256. .HasMaxLength(65535)
  257. .HasColumnType("TEXT");
  258. b.Property<bool>("EnableAutoLogin")
  259. .HasColumnType("INTEGER");
  260. b.Property<bool>("EnableLocalPassword")
  261. .HasColumnType("INTEGER");
  262. b.Property<bool>("EnableNextEpisodeAutoPlay")
  263. .HasColumnType("INTEGER");
  264. b.Property<bool>("EnableUserPreferenceAccess")
  265. .HasColumnType("INTEGER");
  266. b.Property<bool>("HidePlayedInLatest")
  267. .HasColumnType("INTEGER");
  268. b.Property<long>("InternalId")
  269. .HasColumnType("INTEGER");
  270. b.Property<int>("InvalidLoginAttemptCount")
  271. .HasColumnType("INTEGER");
  272. b.Property<DateTime?>("LastActivityDate")
  273. .HasColumnType("TEXT");
  274. b.Property<DateTime?>("LastLoginDate")
  275. .HasColumnType("TEXT");
  276. b.Property<int?>("LoginAttemptsBeforeLockout")
  277. .HasColumnType("INTEGER");
  278. b.Property<int>("MaxActiveSessions")
  279. .HasColumnType("INTEGER");
  280. b.Property<int?>("MaxParentalAgeRating")
  281. .HasColumnType("INTEGER");
  282. b.Property<bool>("MustUpdatePassword")
  283. .HasColumnType("INTEGER");
  284. b.Property<string>("Password")
  285. .HasMaxLength(65535)
  286. .HasColumnType("TEXT");
  287. b.Property<string>("PasswordResetProviderId")
  288. .IsRequired()
  289. .HasMaxLength(255)
  290. .HasColumnType("TEXT");
  291. b.Property<bool>("PlayDefaultAudioTrack")
  292. .HasColumnType("INTEGER");
  293. b.Property<bool>("RememberAudioSelections")
  294. .HasColumnType("INTEGER");
  295. b.Property<bool>("RememberSubtitleSelections")
  296. .HasColumnType("INTEGER");
  297. b.Property<int?>("RemoteClientBitrateLimit")
  298. .HasColumnType("INTEGER");
  299. b.Property<uint>("RowVersion")
  300. .IsConcurrencyToken()
  301. .HasColumnType("INTEGER");
  302. b.Property<string>("SubtitleLanguagePreference")
  303. .HasMaxLength(255)
  304. .HasColumnType("TEXT");
  305. b.Property<int>("SubtitleMode")
  306. .HasColumnType("INTEGER");
  307. b.Property<int>("SyncPlayAccess")
  308. .HasColumnType("INTEGER");
  309. b.Property<string>("Username")
  310. .IsRequired()
  311. .HasMaxLength(255)
  312. .HasColumnType("TEXT");
  313. b.HasKey("Id");
  314. b.ToTable("Users");
  315. });
  316. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  317. {
  318. b.HasOne("Jellyfin.Data.Entities.User", null)
  319. .WithMany("AccessSchedules")
  320. .HasForeignKey("UserId")
  321. .OnDelete(DeleteBehavior.Cascade)
  322. .IsRequired();
  323. });
  324. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  325. {
  326. b.HasOne("Jellyfin.Data.Entities.User", null)
  327. .WithMany("DisplayPreferences")
  328. .HasForeignKey("UserId")
  329. .OnDelete(DeleteBehavior.Cascade)
  330. .IsRequired();
  331. });
  332. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  333. {
  334. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  335. .WithMany("HomeSections")
  336. .HasForeignKey("DisplayPreferencesId")
  337. .OnDelete(DeleteBehavior.Cascade)
  338. .IsRequired();
  339. });
  340. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  341. {
  342. b.HasOne("Jellyfin.Data.Entities.User", null)
  343. .WithOne("ProfileImage")
  344. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  345. });
  346. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  347. {
  348. b.HasOne("Jellyfin.Data.Entities.User", null)
  349. .WithMany("ItemDisplayPreferences")
  350. .HasForeignKey("UserId")
  351. .OnDelete(DeleteBehavior.Cascade)
  352. .IsRequired();
  353. });
  354. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  355. {
  356. b.HasOne("Jellyfin.Data.Entities.User", null)
  357. .WithMany("Permissions")
  358. .HasForeignKey("Permission_Permissions_Guid");
  359. });
  360. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  361. {
  362. b.HasOne("Jellyfin.Data.Entities.User", null)
  363. .WithMany("Preferences")
  364. .HasForeignKey("Preference_Preferences_Guid");
  365. });
  366. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  367. {
  368. b.Navigation("HomeSections");
  369. });
  370. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  371. {
  372. b.Navigation("AccessSchedules");
  373. b.Navigation("DisplayPreferences");
  374. b.Navigation("ItemDisplayPreferences");
  375. b.Navigation("Permissions");
  376. b.Navigation("Preferences");
  377. b.Navigation("ProfileImage");
  378. });
  379. #pragma warning restore 612, 618
  380. }
  381. }
  382. }