20201204223655_AddCustomDisplayPreferences.Designer.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  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("20201204223655_AddCustomDisplayPreferences")]
  13. partial class AddCustomDisplayPreferences
  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.0");
  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. .IsRequired()
  90. .HasColumnType("TEXT");
  91. b.HasKey("Id");
  92. b.HasIndex("UserId");
  93. b.HasIndex("UserId", "ItemId", "Client", "Key")
  94. .IsUnique();
  95. b.ToTable("CustomItemDisplayPreferences");
  96. });
  97. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  98. {
  99. b.Property<int>("Id")
  100. .ValueGeneratedOnAdd()
  101. .HasColumnType("INTEGER");
  102. b.Property<int>("ChromecastVersion")
  103. .HasColumnType("INTEGER");
  104. b.Property<string>("Client")
  105. .IsRequired()
  106. .HasMaxLength(32)
  107. .HasColumnType("TEXT");
  108. b.Property<string>("DashboardTheme")
  109. .HasMaxLength(32)
  110. .HasColumnType("TEXT");
  111. b.Property<bool>("EnableNextVideoInfoOverlay")
  112. .HasColumnType("INTEGER");
  113. b.Property<int?>("IndexBy")
  114. .HasColumnType("INTEGER");
  115. b.Property<Guid>("ItemId")
  116. .HasColumnType("TEXT");
  117. b.Property<int>("ScrollDirection")
  118. .HasColumnType("INTEGER");
  119. b.Property<bool>("ShowBackdrop")
  120. .HasColumnType("INTEGER");
  121. b.Property<bool>("ShowSidebar")
  122. .HasColumnType("INTEGER");
  123. b.Property<int>("SkipBackwardLength")
  124. .HasColumnType("INTEGER");
  125. b.Property<int>("SkipForwardLength")
  126. .HasColumnType("INTEGER");
  127. b.Property<string>("TvHome")
  128. .HasMaxLength(32)
  129. .HasColumnType("TEXT");
  130. b.Property<Guid>("UserId")
  131. .HasColumnType("TEXT");
  132. b.HasKey("Id");
  133. b.HasIndex("UserId");
  134. b.HasIndex("UserId", "ItemId", "Client")
  135. .IsUnique();
  136. b.ToTable("DisplayPreferences");
  137. });
  138. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  139. {
  140. b.Property<int>("Id")
  141. .ValueGeneratedOnAdd()
  142. .HasColumnType("INTEGER");
  143. b.Property<int>("DisplayPreferencesId")
  144. .HasColumnType("INTEGER");
  145. b.Property<int>("Order")
  146. .HasColumnType("INTEGER");
  147. b.Property<int>("Type")
  148. .HasColumnType("INTEGER");
  149. b.HasKey("Id");
  150. b.HasIndex("DisplayPreferencesId");
  151. b.ToTable("HomeSection");
  152. });
  153. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  154. {
  155. b.Property<int>("Id")
  156. .ValueGeneratedOnAdd()
  157. .HasColumnType("INTEGER");
  158. b.Property<DateTime>("LastModified")
  159. .HasColumnType("TEXT");
  160. b.Property<string>("Path")
  161. .IsRequired()
  162. .HasMaxLength(512)
  163. .HasColumnType("TEXT");
  164. b.Property<Guid?>("UserId")
  165. .HasColumnType("TEXT");
  166. b.HasKey("Id");
  167. b.HasIndex("UserId")
  168. .IsUnique();
  169. b.ToTable("ImageInfos");
  170. });
  171. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  172. {
  173. b.Property<int>("Id")
  174. .ValueGeneratedOnAdd()
  175. .HasColumnType("INTEGER");
  176. b.Property<string>("Client")
  177. .IsRequired()
  178. .HasMaxLength(32)
  179. .HasColumnType("TEXT");
  180. b.Property<int?>("IndexBy")
  181. .HasColumnType("INTEGER");
  182. b.Property<Guid>("ItemId")
  183. .HasColumnType("TEXT");
  184. b.Property<bool>("RememberIndexing")
  185. .HasColumnType("INTEGER");
  186. b.Property<bool>("RememberSorting")
  187. .HasColumnType("INTEGER");
  188. b.Property<string>("SortBy")
  189. .IsRequired()
  190. .HasMaxLength(64)
  191. .HasColumnType("TEXT");
  192. b.Property<int>("SortOrder")
  193. .HasColumnType("INTEGER");
  194. b.Property<Guid>("UserId")
  195. .HasColumnType("TEXT");
  196. b.Property<int>("ViewType")
  197. .HasColumnType("INTEGER");
  198. b.HasKey("Id");
  199. b.HasIndex("UserId");
  200. b.ToTable("ItemDisplayPreferences");
  201. });
  202. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  203. {
  204. b.Property<int>("Id")
  205. .ValueGeneratedOnAdd()
  206. .HasColumnType("INTEGER");
  207. b.Property<int>("Kind")
  208. .HasColumnType("INTEGER");
  209. b.Property<Guid?>("Permission_Permissions_Guid")
  210. .HasColumnType("TEXT");
  211. b.Property<uint>("RowVersion")
  212. .IsConcurrencyToken()
  213. .HasColumnType("INTEGER");
  214. b.Property<bool>("Value")
  215. .HasColumnType("INTEGER");
  216. b.HasKey("Id");
  217. b.HasIndex("Permission_Permissions_Guid");
  218. b.ToTable("Permissions");
  219. });
  220. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  221. {
  222. b.Property<int>("Id")
  223. .ValueGeneratedOnAdd()
  224. .HasColumnType("INTEGER");
  225. b.Property<int>("Kind")
  226. .HasColumnType("INTEGER");
  227. b.Property<Guid?>("Preference_Preferences_Guid")
  228. .HasColumnType("TEXT");
  229. b.Property<uint>("RowVersion")
  230. .IsConcurrencyToken()
  231. .HasColumnType("INTEGER");
  232. b.Property<string>("Value")
  233. .IsRequired()
  234. .HasMaxLength(65535)
  235. .HasColumnType("TEXT");
  236. b.HasKey("Id");
  237. b.HasIndex("Preference_Preferences_Guid");
  238. b.ToTable("Preferences");
  239. });
  240. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  241. {
  242. b.Property<Guid>("Id")
  243. .ValueGeneratedOnAdd()
  244. .HasColumnType("TEXT");
  245. b.Property<string>("AudioLanguagePreference")
  246. .HasMaxLength(255)
  247. .HasColumnType("TEXT");
  248. b.Property<string>("AuthenticationProviderId")
  249. .IsRequired()
  250. .HasMaxLength(255)
  251. .HasColumnType("TEXT");
  252. b.Property<bool>("DisplayCollectionsView")
  253. .HasColumnType("INTEGER");
  254. b.Property<bool>("DisplayMissingEpisodes")
  255. .HasColumnType("INTEGER");
  256. b.Property<string>("EasyPassword")
  257. .HasMaxLength(65535)
  258. .HasColumnType("TEXT");
  259. b.Property<bool>("EnableAutoLogin")
  260. .HasColumnType("INTEGER");
  261. b.Property<bool>("EnableLocalPassword")
  262. .HasColumnType("INTEGER");
  263. b.Property<bool>("EnableNextEpisodeAutoPlay")
  264. .HasColumnType("INTEGER");
  265. b.Property<bool>("EnableUserPreferenceAccess")
  266. .HasColumnType("INTEGER");
  267. b.Property<bool>("HidePlayedInLatest")
  268. .HasColumnType("INTEGER");
  269. b.Property<long>("InternalId")
  270. .HasColumnType("INTEGER");
  271. b.Property<int>("InvalidLoginAttemptCount")
  272. .HasColumnType("INTEGER");
  273. b.Property<DateTime?>("LastActivityDate")
  274. .HasColumnType("TEXT");
  275. b.Property<DateTime?>("LastLoginDate")
  276. .HasColumnType("TEXT");
  277. b.Property<int?>("LoginAttemptsBeforeLockout")
  278. .HasColumnType("INTEGER");
  279. b.Property<int>("MaxActiveSessions")
  280. .HasColumnType("INTEGER");
  281. b.Property<int?>("MaxParentalAgeRating")
  282. .HasColumnType("INTEGER");
  283. b.Property<bool>("MustUpdatePassword")
  284. .HasColumnType("INTEGER");
  285. b.Property<string>("Password")
  286. .HasMaxLength(65535)
  287. .HasColumnType("TEXT");
  288. b.Property<string>("PasswordResetProviderId")
  289. .IsRequired()
  290. .HasMaxLength(255)
  291. .HasColumnType("TEXT");
  292. b.Property<bool>("PlayDefaultAudioTrack")
  293. .HasColumnType("INTEGER");
  294. b.Property<bool>("RememberAudioSelections")
  295. .HasColumnType("INTEGER");
  296. b.Property<bool>("RememberSubtitleSelections")
  297. .HasColumnType("INTEGER");
  298. b.Property<int?>("RemoteClientBitrateLimit")
  299. .HasColumnType("INTEGER");
  300. b.Property<uint>("RowVersion")
  301. .IsConcurrencyToken()
  302. .HasColumnType("INTEGER");
  303. b.Property<string>("SubtitleLanguagePreference")
  304. .HasMaxLength(255)
  305. .HasColumnType("TEXT");
  306. b.Property<int>("SubtitleMode")
  307. .HasColumnType("INTEGER");
  308. b.Property<int>("SyncPlayAccess")
  309. .HasColumnType("INTEGER");
  310. b.Property<string>("Username")
  311. .IsRequired()
  312. .HasMaxLength(255)
  313. .HasColumnType("TEXT");
  314. b.HasKey("Id");
  315. b.ToTable("Users");
  316. });
  317. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  318. {
  319. b.HasOne("Jellyfin.Data.Entities.User", null)
  320. .WithMany("AccessSchedules")
  321. .HasForeignKey("UserId")
  322. .OnDelete(DeleteBehavior.Cascade)
  323. .IsRequired();
  324. });
  325. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  326. {
  327. b.HasOne("Jellyfin.Data.Entities.User", null)
  328. .WithOne("DisplayPreferences")
  329. .HasForeignKey("Jellyfin.Data.Entities.DisplayPreferences", "UserId")
  330. .OnDelete(DeleteBehavior.Cascade)
  331. .IsRequired();
  332. });
  333. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  334. {
  335. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  336. .WithMany("HomeSections")
  337. .HasForeignKey("DisplayPreferencesId")
  338. .OnDelete(DeleteBehavior.Cascade)
  339. .IsRequired();
  340. });
  341. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  342. {
  343. b.HasOne("Jellyfin.Data.Entities.User", null)
  344. .WithOne("ProfileImage")
  345. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  346. });
  347. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  348. {
  349. b.HasOne("Jellyfin.Data.Entities.User", null)
  350. .WithMany("ItemDisplayPreferences")
  351. .HasForeignKey("UserId")
  352. .OnDelete(DeleteBehavior.Cascade)
  353. .IsRequired();
  354. });
  355. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  356. {
  357. b.HasOne("Jellyfin.Data.Entities.User", null)
  358. .WithMany("Permissions")
  359. .HasForeignKey("Permission_Permissions_Guid");
  360. });
  361. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  362. {
  363. b.HasOne("Jellyfin.Data.Entities.User", null)
  364. .WithMany("Preferences")
  365. .HasForeignKey("Preference_Preferences_Guid");
  366. });
  367. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  368. {
  369. b.Navigation("HomeSections");
  370. });
  371. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  372. {
  373. b.Navigation("AccessSchedules");
  374. b.Navigation("DisplayPreferences")
  375. .IsRequired();
  376. b.Navigation("ItemDisplayPreferences");
  377. b.Navigation("Permissions");
  378. b.Navigation("Preferences");
  379. b.Navigation("ProfileImage");
  380. });
  381. #pragma warning restore 612, 618
  382. }
  383. }
  384. }