20241112234144_FixMediaStreams2.Designer.cs 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594
  1. // <auto-generated />
  2. using System;
  3. using Jellyfin.Server.Implementations;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace Jellyfin.Server.Implementations.Migrations
  10. {
  11. [DbContext(typeof(JellyfinDbContext))]
  12. [Migration("20241112234144_FixMediaStreams2")]
  13. partial class FixMediaStreams2
  14. {
  15. /// <inheritdoc />
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
  20. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  21. {
  22. b.Property<int>("Id")
  23. .ValueGeneratedOnAdd()
  24. .HasColumnType("INTEGER");
  25. b.Property<int>("DayOfWeek")
  26. .HasColumnType("INTEGER");
  27. b.Property<double>("EndHour")
  28. .HasColumnType("REAL");
  29. b.Property<double>("StartHour")
  30. .HasColumnType("REAL");
  31. b.Property<Guid>("UserId")
  32. .HasColumnType("TEXT");
  33. b.HasKey("Id");
  34. b.HasIndex("UserId");
  35. b.ToTable("AccessSchedules");
  36. });
  37. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  38. {
  39. b.Property<int>("Id")
  40. .ValueGeneratedOnAdd()
  41. .HasColumnType("INTEGER");
  42. b.Property<DateTime>("DateCreated")
  43. .HasColumnType("TEXT");
  44. b.Property<string>("ItemId")
  45. .HasMaxLength(256)
  46. .HasColumnType("TEXT");
  47. b.Property<int>("LogSeverity")
  48. .HasColumnType("INTEGER");
  49. b.Property<string>("Name")
  50. .IsRequired()
  51. .HasMaxLength(512)
  52. .HasColumnType("TEXT");
  53. b.Property<string>("Overview")
  54. .HasMaxLength(512)
  55. .HasColumnType("TEXT");
  56. b.Property<uint>("RowVersion")
  57. .IsConcurrencyToken()
  58. .HasColumnType("INTEGER");
  59. b.Property<string>("ShortOverview")
  60. .HasMaxLength(512)
  61. .HasColumnType("TEXT");
  62. b.Property<string>("Type")
  63. .IsRequired()
  64. .HasMaxLength(256)
  65. .HasColumnType("TEXT");
  66. b.Property<Guid>("UserId")
  67. .HasColumnType("TEXT");
  68. b.HasKey("Id");
  69. b.HasIndex("DateCreated");
  70. b.ToTable("ActivityLogs");
  71. });
  72. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  73. {
  74. b.Property<Guid>("ItemId")
  75. .HasColumnType("TEXT");
  76. b.Property<Guid>("ParentItemId")
  77. .HasColumnType("TEXT");
  78. b.HasKey("ItemId", "ParentItemId");
  79. b.HasIndex("ParentItemId");
  80. b.ToTable("AncestorIds");
  81. });
  82. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  83. {
  84. b.Property<Guid>("ItemId")
  85. .HasColumnType("TEXT");
  86. b.Property<int>("Index")
  87. .HasColumnType("INTEGER");
  88. b.Property<string>("Codec")
  89. .IsRequired()
  90. .HasColumnType("TEXT");
  91. b.Property<string>("CodecTag")
  92. .HasColumnType("TEXT");
  93. b.Property<string>("Comment")
  94. .HasColumnType("TEXT");
  95. b.Property<string>("Filename")
  96. .HasColumnType("TEXT");
  97. b.Property<string>("MimeType")
  98. .HasColumnType("TEXT");
  99. b.HasKey("ItemId", "Index");
  100. b.ToTable("AttachmentStreamInfos");
  101. });
  102. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  103. {
  104. b.Property<Guid>("Id")
  105. .ValueGeneratedOnAdd()
  106. .HasColumnType("TEXT");
  107. b.Property<string>("Album")
  108. .HasColumnType("TEXT");
  109. b.Property<string>("AlbumArtists")
  110. .HasColumnType("TEXT");
  111. b.Property<string>("Artists")
  112. .HasColumnType("TEXT");
  113. b.Property<int?>("Audio")
  114. .HasColumnType("INTEGER");
  115. b.Property<string>("ChannelId")
  116. .HasColumnType("TEXT");
  117. b.Property<string>("CleanName")
  118. .HasColumnType("TEXT");
  119. b.Property<float?>("CommunityRating")
  120. .HasColumnType("REAL");
  121. b.Property<float?>("CriticRating")
  122. .HasColumnType("REAL");
  123. b.Property<string>("CustomRating")
  124. .HasColumnType("TEXT");
  125. b.Property<string>("Data")
  126. .HasColumnType("TEXT");
  127. b.Property<DateTime?>("DateCreated")
  128. .HasColumnType("TEXT");
  129. b.Property<DateTime?>("DateLastMediaAdded")
  130. .HasColumnType("TEXT");
  131. b.Property<DateTime?>("DateLastRefreshed")
  132. .HasColumnType("TEXT");
  133. b.Property<DateTime?>("DateLastSaved")
  134. .HasColumnType("TEXT");
  135. b.Property<DateTime?>("DateModified")
  136. .HasColumnType("TEXT");
  137. b.Property<DateTime>("EndDate")
  138. .HasColumnType("TEXT");
  139. b.Property<string>("EpisodeTitle")
  140. .HasColumnType("TEXT");
  141. b.Property<string>("ExternalId")
  142. .HasColumnType("TEXT");
  143. b.Property<string>("ExternalSeriesId")
  144. .HasColumnType("TEXT");
  145. b.Property<string>("ExternalServiceId")
  146. .HasColumnType("TEXT");
  147. b.Property<string>("ExtraIds")
  148. .HasColumnType("TEXT");
  149. b.Property<int?>("ExtraType")
  150. .HasColumnType("INTEGER");
  151. b.Property<string>("ForcedSortName")
  152. .HasColumnType("TEXT");
  153. b.Property<string>("Genres")
  154. .HasColumnType("TEXT");
  155. b.Property<int?>("Height")
  156. .HasColumnType("INTEGER");
  157. b.Property<int?>("IndexNumber")
  158. .HasColumnType("INTEGER");
  159. b.Property<int?>("InheritedParentalRatingValue")
  160. .HasColumnType("INTEGER");
  161. b.Property<bool>("IsFolder")
  162. .HasColumnType("INTEGER");
  163. b.Property<bool>("IsInMixedFolder")
  164. .HasColumnType("INTEGER");
  165. b.Property<bool>("IsLocked")
  166. .HasColumnType("INTEGER");
  167. b.Property<bool>("IsMovie")
  168. .HasColumnType("INTEGER");
  169. b.Property<bool>("IsRepeat")
  170. .HasColumnType("INTEGER");
  171. b.Property<bool>("IsSeries")
  172. .HasColumnType("INTEGER");
  173. b.Property<bool>("IsVirtualItem")
  174. .HasColumnType("INTEGER");
  175. b.Property<float?>("LUFS")
  176. .HasColumnType("REAL");
  177. b.Property<string>("MediaType")
  178. .HasColumnType("TEXT");
  179. b.Property<string>("Name")
  180. .HasColumnType("TEXT");
  181. b.Property<float?>("NormalizationGain")
  182. .HasColumnType("REAL");
  183. b.Property<string>("OfficialRating")
  184. .HasColumnType("TEXT");
  185. b.Property<string>("OriginalTitle")
  186. .HasColumnType("TEXT");
  187. b.Property<string>("Overview")
  188. .HasColumnType("TEXT");
  189. b.Property<string>("OwnerId")
  190. .HasColumnType("TEXT");
  191. b.Property<Guid?>("ParentId")
  192. .HasColumnType("TEXT");
  193. b.Property<int?>("ParentIndexNumber")
  194. .HasColumnType("INTEGER");
  195. b.Property<string>("Path")
  196. .HasColumnType("TEXT");
  197. b.Property<string>("PreferredMetadataCountryCode")
  198. .HasColumnType("TEXT");
  199. b.Property<string>("PreferredMetadataLanguage")
  200. .HasColumnType("TEXT");
  201. b.Property<DateTime?>("PremiereDate")
  202. .HasColumnType("TEXT");
  203. b.Property<string>("PresentationUniqueKey")
  204. .HasColumnType("TEXT");
  205. b.Property<string>("PrimaryVersionId")
  206. .HasColumnType("TEXT");
  207. b.Property<string>("ProductionLocations")
  208. .HasColumnType("TEXT");
  209. b.Property<int?>("ProductionYear")
  210. .HasColumnType("INTEGER");
  211. b.Property<long?>("RunTimeTicks")
  212. .HasColumnType("INTEGER");
  213. b.Property<Guid?>("SeasonId")
  214. .HasColumnType("TEXT");
  215. b.Property<string>("SeasonName")
  216. .HasColumnType("TEXT");
  217. b.Property<Guid?>("SeriesId")
  218. .HasColumnType("TEXT");
  219. b.Property<string>("SeriesName")
  220. .HasColumnType("TEXT");
  221. b.Property<string>("SeriesPresentationUniqueKey")
  222. .HasColumnType("TEXT");
  223. b.Property<string>("ShowId")
  224. .HasColumnType("TEXT");
  225. b.Property<long?>("Size")
  226. .HasColumnType("INTEGER");
  227. b.Property<string>("SortName")
  228. .HasColumnType("TEXT");
  229. b.Property<DateTime>("StartDate")
  230. .HasColumnType("TEXT");
  231. b.Property<string>("Studios")
  232. .HasColumnType("TEXT");
  233. b.Property<string>("Tagline")
  234. .HasColumnType("TEXT");
  235. b.Property<string>("Tags")
  236. .HasColumnType("TEXT");
  237. b.Property<Guid?>("TopParentId")
  238. .HasColumnType("TEXT");
  239. b.Property<int?>("TotalBitrate")
  240. .HasColumnType("INTEGER");
  241. b.Property<string>("Type")
  242. .IsRequired()
  243. .HasColumnType("TEXT");
  244. b.Property<string>("UnratedType")
  245. .HasColumnType("TEXT");
  246. b.Property<int?>("Width")
  247. .HasColumnType("INTEGER");
  248. b.HasKey("Id");
  249. b.HasIndex("ParentId");
  250. b.HasIndex("Path");
  251. b.HasIndex("PresentationUniqueKey");
  252. b.HasIndex("TopParentId", "Id");
  253. b.HasIndex("Type", "TopParentId", "Id");
  254. b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
  255. b.HasIndex("Type", "TopParentId", "StartDate");
  256. b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
  257. b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
  258. b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
  259. b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
  260. b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  261. b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  262. b.ToTable("BaseItems");
  263. });
  264. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  265. {
  266. b.Property<Guid>("Id")
  267. .ValueGeneratedOnAdd()
  268. .HasColumnType("TEXT");
  269. b.Property<byte[]>("Blurhash")
  270. .HasColumnType("BLOB");
  271. b.Property<DateTime>("DateModified")
  272. .HasColumnType("TEXT");
  273. b.Property<int>("Height")
  274. .HasColumnType("INTEGER");
  275. b.Property<int>("ImageType")
  276. .HasColumnType("INTEGER");
  277. b.Property<Guid>("ItemId")
  278. .HasColumnType("TEXT");
  279. b.Property<string>("Path")
  280. .IsRequired()
  281. .HasColumnType("TEXT");
  282. b.Property<int>("Width")
  283. .HasColumnType("INTEGER");
  284. b.HasKey("Id");
  285. b.HasIndex("ItemId");
  286. b.ToTable("BaseItemImageInfos");
  287. });
  288. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  289. {
  290. b.Property<int>("Id")
  291. .HasColumnType("INTEGER");
  292. b.Property<Guid>("ItemId")
  293. .HasColumnType("TEXT");
  294. b.HasKey("Id", "ItemId");
  295. b.HasIndex("ItemId");
  296. b.ToTable("BaseItemMetadataFields");
  297. });
  298. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  299. {
  300. b.Property<Guid>("ItemId")
  301. .HasColumnType("TEXT");
  302. b.Property<string>("ProviderId")
  303. .HasColumnType("TEXT");
  304. b.Property<string>("ProviderValue")
  305. .IsRequired()
  306. .HasColumnType("TEXT");
  307. b.HasKey("ItemId", "ProviderId");
  308. b.HasIndex("ProviderId", "ProviderValue", "ItemId");
  309. b.ToTable("BaseItemProviders");
  310. });
  311. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  312. {
  313. b.Property<int>("Id")
  314. .HasColumnType("INTEGER");
  315. b.Property<Guid>("ItemId")
  316. .HasColumnType("TEXT");
  317. b.HasKey("Id", "ItemId");
  318. b.HasIndex("ItemId");
  319. b.ToTable("BaseItemTrailerTypes");
  320. });
  321. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  322. {
  323. b.Property<Guid>("ItemId")
  324. .HasColumnType("TEXT");
  325. b.Property<int>("ChapterIndex")
  326. .HasColumnType("INTEGER");
  327. b.Property<DateTime?>("ImageDateModified")
  328. .HasColumnType("TEXT");
  329. b.Property<string>("ImagePath")
  330. .HasColumnType("TEXT");
  331. b.Property<string>("Name")
  332. .HasColumnType("TEXT");
  333. b.Property<long>("StartPositionTicks")
  334. .HasColumnType("INTEGER");
  335. b.HasKey("ItemId", "ChapterIndex");
  336. b.ToTable("Chapters");
  337. });
  338. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  339. {
  340. b.Property<int>("Id")
  341. .ValueGeneratedOnAdd()
  342. .HasColumnType("INTEGER");
  343. b.Property<string>("Client")
  344. .IsRequired()
  345. .HasMaxLength(32)
  346. .HasColumnType("TEXT");
  347. b.Property<Guid>("ItemId")
  348. .HasColumnType("TEXT");
  349. b.Property<string>("Key")
  350. .IsRequired()
  351. .HasColumnType("TEXT");
  352. b.Property<Guid>("UserId")
  353. .HasColumnType("TEXT");
  354. b.Property<string>("Value")
  355. .HasColumnType("TEXT");
  356. b.HasKey("Id");
  357. b.HasIndex("UserId", "ItemId", "Client", "Key")
  358. .IsUnique();
  359. b.ToTable("CustomItemDisplayPreferences");
  360. });
  361. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  362. {
  363. b.Property<int>("Id")
  364. .ValueGeneratedOnAdd()
  365. .HasColumnType("INTEGER");
  366. b.Property<int>("ChromecastVersion")
  367. .HasColumnType("INTEGER");
  368. b.Property<string>("Client")
  369. .IsRequired()
  370. .HasMaxLength(32)
  371. .HasColumnType("TEXT");
  372. b.Property<string>("DashboardTheme")
  373. .HasMaxLength(32)
  374. .HasColumnType("TEXT");
  375. b.Property<bool>("EnableNextVideoInfoOverlay")
  376. .HasColumnType("INTEGER");
  377. b.Property<int?>("IndexBy")
  378. .HasColumnType("INTEGER");
  379. b.Property<Guid>("ItemId")
  380. .HasColumnType("TEXT");
  381. b.Property<int>("ScrollDirection")
  382. .HasColumnType("INTEGER");
  383. b.Property<bool>("ShowBackdrop")
  384. .HasColumnType("INTEGER");
  385. b.Property<bool>("ShowSidebar")
  386. .HasColumnType("INTEGER");
  387. b.Property<int>("SkipBackwardLength")
  388. .HasColumnType("INTEGER");
  389. b.Property<int>("SkipForwardLength")
  390. .HasColumnType("INTEGER");
  391. b.Property<string>("TvHome")
  392. .HasMaxLength(32)
  393. .HasColumnType("TEXT");
  394. b.Property<Guid>("UserId")
  395. .HasColumnType("TEXT");
  396. b.HasKey("Id");
  397. b.HasIndex("UserId", "ItemId", "Client")
  398. .IsUnique();
  399. b.ToTable("DisplayPreferences");
  400. });
  401. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  402. {
  403. b.Property<int>("Id")
  404. .ValueGeneratedOnAdd()
  405. .HasColumnType("INTEGER");
  406. b.Property<int>("DisplayPreferencesId")
  407. .HasColumnType("INTEGER");
  408. b.Property<int>("Order")
  409. .HasColumnType("INTEGER");
  410. b.Property<int>("Type")
  411. .HasColumnType("INTEGER");
  412. b.HasKey("Id");
  413. b.HasIndex("DisplayPreferencesId");
  414. b.ToTable("HomeSection");
  415. });
  416. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  417. {
  418. b.Property<int>("Id")
  419. .ValueGeneratedOnAdd()
  420. .HasColumnType("INTEGER");
  421. b.Property<DateTime>("LastModified")
  422. .HasColumnType("TEXT");
  423. b.Property<string>("Path")
  424. .IsRequired()
  425. .HasMaxLength(512)
  426. .HasColumnType("TEXT");
  427. b.Property<Guid?>("UserId")
  428. .HasColumnType("TEXT");
  429. b.HasKey("Id");
  430. b.HasIndex("UserId")
  431. .IsUnique();
  432. b.ToTable("ImageInfos");
  433. });
  434. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  435. {
  436. b.Property<int>("Id")
  437. .ValueGeneratedOnAdd()
  438. .HasColumnType("INTEGER");
  439. b.Property<string>("Client")
  440. .IsRequired()
  441. .HasMaxLength(32)
  442. .HasColumnType("TEXT");
  443. b.Property<int?>("IndexBy")
  444. .HasColumnType("INTEGER");
  445. b.Property<Guid>("ItemId")
  446. .HasColumnType("TEXT");
  447. b.Property<bool>("RememberIndexing")
  448. .HasColumnType("INTEGER");
  449. b.Property<bool>("RememberSorting")
  450. .HasColumnType("INTEGER");
  451. b.Property<string>("SortBy")
  452. .IsRequired()
  453. .HasMaxLength(64)
  454. .HasColumnType("TEXT");
  455. b.Property<int>("SortOrder")
  456. .HasColumnType("INTEGER");
  457. b.Property<Guid>("UserId")
  458. .HasColumnType("TEXT");
  459. b.Property<int>("ViewType")
  460. .HasColumnType("INTEGER");
  461. b.HasKey("Id");
  462. b.HasIndex("UserId");
  463. b.ToTable("ItemDisplayPreferences");
  464. });
  465. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  466. {
  467. b.Property<Guid>("ItemValueId")
  468. .ValueGeneratedOnAdd()
  469. .HasColumnType("TEXT");
  470. b.Property<string>("CleanValue")
  471. .IsRequired()
  472. .HasColumnType("TEXT");
  473. b.Property<int>("Type")
  474. .HasColumnType("INTEGER");
  475. b.Property<string>("Value")
  476. .IsRequired()
  477. .HasColumnType("TEXT");
  478. b.HasKey("ItemValueId");
  479. b.HasIndex("Type", "CleanValue");
  480. b.ToTable("ItemValues");
  481. });
  482. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  483. {
  484. b.Property<Guid>("ItemValueId")
  485. .HasColumnType("TEXT");
  486. b.Property<Guid>("ItemId")
  487. .HasColumnType("TEXT");
  488. b.HasKey("ItemValueId", "ItemId");
  489. b.HasIndex("ItemId");
  490. b.ToTable("ItemValuesMap");
  491. });
  492. modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
  493. {
  494. b.Property<Guid>("Id")
  495. .ValueGeneratedOnAdd()
  496. .HasColumnType("TEXT");
  497. b.Property<long>("EndTicks")
  498. .HasColumnType("INTEGER");
  499. b.Property<Guid>("ItemId")
  500. .HasColumnType("TEXT");
  501. b.Property<string>("SegmentProviderId")
  502. .IsRequired()
  503. .HasColumnType("TEXT");
  504. b.Property<long>("StartTicks")
  505. .HasColumnType("INTEGER");
  506. b.Property<int>("Type")
  507. .HasColumnType("INTEGER");
  508. b.HasKey("Id");
  509. b.ToTable("MediaSegments");
  510. });
  511. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  512. {
  513. b.Property<Guid>("ItemId")
  514. .HasColumnType("TEXT");
  515. b.Property<int>("StreamIndex")
  516. .HasColumnType("INTEGER");
  517. b.Property<string>("AspectRatio")
  518. .HasColumnType("TEXT");
  519. b.Property<float?>("AverageFrameRate")
  520. .HasColumnType("REAL");
  521. b.Property<int?>("BitDepth")
  522. .HasColumnType("INTEGER");
  523. b.Property<int?>("BitRate")
  524. .HasColumnType("INTEGER");
  525. b.Property<int?>("BlPresentFlag")
  526. .HasColumnType("INTEGER");
  527. b.Property<string>("ChannelLayout")
  528. .HasColumnType("TEXT");
  529. b.Property<int?>("Channels")
  530. .HasColumnType("INTEGER");
  531. b.Property<string>("Codec")
  532. .HasColumnType("TEXT");
  533. b.Property<string>("CodecTag")
  534. .HasColumnType("TEXT");
  535. b.Property<string>("CodecTimeBase")
  536. .HasColumnType("TEXT");
  537. b.Property<string>("ColorPrimaries")
  538. .HasColumnType("TEXT");
  539. b.Property<string>("ColorSpace")
  540. .HasColumnType("TEXT");
  541. b.Property<string>("ColorTransfer")
  542. .HasColumnType("TEXT");
  543. b.Property<string>("Comment")
  544. .HasColumnType("TEXT");
  545. b.Property<int?>("DvBlSignalCompatibilityId")
  546. .HasColumnType("INTEGER");
  547. b.Property<int?>("DvLevel")
  548. .HasColumnType("INTEGER");
  549. b.Property<int?>("DvProfile")
  550. .HasColumnType("INTEGER");
  551. b.Property<int?>("DvVersionMajor")
  552. .HasColumnType("INTEGER");
  553. b.Property<int?>("DvVersionMinor")
  554. .HasColumnType("INTEGER");
  555. b.Property<int?>("ElPresentFlag")
  556. .HasColumnType("INTEGER");
  557. b.Property<int?>("Height")
  558. .HasColumnType("INTEGER");
  559. b.Property<bool?>("IsAnamorphic")
  560. .HasColumnType("INTEGER");
  561. b.Property<bool?>("IsAvc")
  562. .HasColumnType("INTEGER");
  563. b.Property<bool>("IsDefault")
  564. .HasColumnType("INTEGER");
  565. b.Property<bool>("IsExternal")
  566. .HasColumnType("INTEGER");
  567. b.Property<bool>("IsForced")
  568. .HasColumnType("INTEGER");
  569. b.Property<bool?>("IsHearingImpaired")
  570. .HasColumnType("INTEGER");
  571. b.Property<bool?>("IsInterlaced")
  572. .HasColumnType("INTEGER");
  573. b.Property<string>("KeyFrames")
  574. .HasColumnType("TEXT");
  575. b.Property<string>("Language")
  576. .HasColumnType("TEXT");
  577. b.Property<float?>("Level")
  578. .HasColumnType("REAL");
  579. b.Property<string>("NalLengthSize")
  580. .HasColumnType("TEXT");
  581. b.Property<string>("Path")
  582. .HasColumnType("TEXT");
  583. b.Property<string>("PixelFormat")
  584. .HasColumnType("TEXT");
  585. b.Property<string>("Profile")
  586. .HasColumnType("TEXT");
  587. b.Property<float?>("RealFrameRate")
  588. .HasColumnType("REAL");
  589. b.Property<int?>("RefFrames")
  590. .HasColumnType("INTEGER");
  591. b.Property<int?>("Rotation")
  592. .HasColumnType("INTEGER");
  593. b.Property<int?>("RpuPresentFlag")
  594. .HasColumnType("INTEGER");
  595. b.Property<int?>("SampleRate")
  596. .HasColumnType("INTEGER");
  597. b.Property<int>("StreamType")
  598. .HasColumnType("INTEGER");
  599. b.Property<string>("TimeBase")
  600. .HasColumnType("TEXT");
  601. b.Property<string>("Title")
  602. .HasColumnType("TEXT");
  603. b.Property<int?>("Width")
  604. .HasColumnType("INTEGER");
  605. b.HasKey("ItemId", "StreamIndex");
  606. b.HasIndex("StreamIndex");
  607. b.HasIndex("StreamType");
  608. b.HasIndex("StreamIndex", "StreamType");
  609. b.HasIndex("StreamIndex", "StreamType", "Language");
  610. b.ToTable("MediaStreamInfos");
  611. });
  612. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  613. {
  614. b.Property<Guid>("Id")
  615. .ValueGeneratedOnAdd()
  616. .HasColumnType("TEXT");
  617. b.Property<string>("Name")
  618. .IsRequired()
  619. .HasColumnType("TEXT");
  620. b.Property<string>("PersonType")
  621. .HasColumnType("TEXT");
  622. b.HasKey("Id");
  623. b.HasIndex("Name");
  624. b.ToTable("Peoples");
  625. });
  626. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  627. {
  628. b.Property<Guid>("ItemId")
  629. .HasColumnType("TEXT");
  630. b.Property<Guid>("PeopleId")
  631. .HasColumnType("TEXT");
  632. b.Property<int?>("ListOrder")
  633. .HasColumnType("INTEGER");
  634. b.Property<string>("Role")
  635. .HasColumnType("TEXT");
  636. b.Property<int?>("SortOrder")
  637. .HasColumnType("INTEGER");
  638. b.HasKey("ItemId", "PeopleId");
  639. b.HasIndex("PeopleId");
  640. b.HasIndex("ItemId", "ListOrder");
  641. b.HasIndex("ItemId", "SortOrder");
  642. b.ToTable("PeopleBaseItemMap");
  643. });
  644. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  645. {
  646. b.Property<int>("Id")
  647. .ValueGeneratedOnAdd()
  648. .HasColumnType("INTEGER");
  649. b.Property<int>("Kind")
  650. .HasColumnType("INTEGER");
  651. b.Property<Guid?>("Permission_Permissions_Guid")
  652. .HasColumnType("TEXT");
  653. b.Property<uint>("RowVersion")
  654. .IsConcurrencyToken()
  655. .HasColumnType("INTEGER");
  656. b.Property<Guid?>("UserId")
  657. .HasColumnType("TEXT");
  658. b.Property<bool>("Value")
  659. .HasColumnType("INTEGER");
  660. b.HasKey("Id");
  661. b.HasIndex("UserId", "Kind")
  662. .IsUnique()
  663. .HasFilter("[UserId] IS NOT NULL");
  664. b.ToTable("Permissions");
  665. });
  666. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  667. {
  668. b.Property<int>("Id")
  669. .ValueGeneratedOnAdd()
  670. .HasColumnType("INTEGER");
  671. b.Property<int>("Kind")
  672. .HasColumnType("INTEGER");
  673. b.Property<Guid?>("Preference_Preferences_Guid")
  674. .HasColumnType("TEXT");
  675. b.Property<uint>("RowVersion")
  676. .IsConcurrencyToken()
  677. .HasColumnType("INTEGER");
  678. b.Property<Guid?>("UserId")
  679. .HasColumnType("TEXT");
  680. b.Property<string>("Value")
  681. .IsRequired()
  682. .HasMaxLength(65535)
  683. .HasColumnType("TEXT");
  684. b.HasKey("Id");
  685. b.HasIndex("UserId", "Kind")
  686. .IsUnique()
  687. .HasFilter("[UserId] IS NOT NULL");
  688. b.ToTable("Preferences");
  689. });
  690. modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
  691. {
  692. b.Property<int>("Id")
  693. .ValueGeneratedOnAdd()
  694. .HasColumnType("INTEGER");
  695. b.Property<string>("AccessToken")
  696. .IsRequired()
  697. .HasColumnType("TEXT");
  698. b.Property<DateTime>("DateCreated")
  699. .HasColumnType("TEXT");
  700. b.Property<DateTime>("DateLastActivity")
  701. .HasColumnType("TEXT");
  702. b.Property<string>("Name")
  703. .IsRequired()
  704. .HasMaxLength(64)
  705. .HasColumnType("TEXT");
  706. b.HasKey("Id");
  707. b.HasIndex("AccessToken")
  708. .IsUnique();
  709. b.ToTable("ApiKeys");
  710. });
  711. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  712. {
  713. b.Property<int>("Id")
  714. .ValueGeneratedOnAdd()
  715. .HasColumnType("INTEGER");
  716. b.Property<string>("AccessToken")
  717. .IsRequired()
  718. .HasColumnType("TEXT");
  719. b.Property<string>("AppName")
  720. .IsRequired()
  721. .HasMaxLength(64)
  722. .HasColumnType("TEXT");
  723. b.Property<string>("AppVersion")
  724. .IsRequired()
  725. .HasMaxLength(32)
  726. .HasColumnType("TEXT");
  727. b.Property<DateTime>("DateCreated")
  728. .HasColumnType("TEXT");
  729. b.Property<DateTime>("DateLastActivity")
  730. .HasColumnType("TEXT");
  731. b.Property<DateTime>("DateModified")
  732. .HasColumnType("TEXT");
  733. b.Property<string>("DeviceId")
  734. .IsRequired()
  735. .HasMaxLength(256)
  736. .HasColumnType("TEXT");
  737. b.Property<string>("DeviceName")
  738. .IsRequired()
  739. .HasMaxLength(64)
  740. .HasColumnType("TEXT");
  741. b.Property<bool>("IsActive")
  742. .HasColumnType("INTEGER");
  743. b.Property<Guid>("UserId")
  744. .HasColumnType("TEXT");
  745. b.HasKey("Id");
  746. b.HasIndex("DeviceId");
  747. b.HasIndex("AccessToken", "DateLastActivity");
  748. b.HasIndex("DeviceId", "DateLastActivity");
  749. b.HasIndex("UserId", "DeviceId");
  750. b.ToTable("Devices");
  751. });
  752. modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
  753. {
  754. b.Property<int>("Id")
  755. .ValueGeneratedOnAdd()
  756. .HasColumnType("INTEGER");
  757. b.Property<string>("CustomName")
  758. .HasColumnType("TEXT");
  759. b.Property<string>("DeviceId")
  760. .IsRequired()
  761. .HasColumnType("TEXT");
  762. b.HasKey("Id");
  763. b.HasIndex("DeviceId")
  764. .IsUnique();
  765. b.ToTable("DeviceOptions");
  766. });
  767. modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
  768. {
  769. b.Property<Guid>("ItemId")
  770. .HasColumnType("TEXT");
  771. b.Property<int>("Width")
  772. .HasColumnType("INTEGER");
  773. b.Property<int>("Bandwidth")
  774. .HasColumnType("INTEGER");
  775. b.Property<int>("Height")
  776. .HasColumnType("INTEGER");
  777. b.Property<int>("Interval")
  778. .HasColumnType("INTEGER");
  779. b.Property<int>("ThumbnailCount")
  780. .HasColumnType("INTEGER");
  781. b.Property<int>("TileHeight")
  782. .HasColumnType("INTEGER");
  783. b.Property<int>("TileWidth")
  784. .HasColumnType("INTEGER");
  785. b.HasKey("ItemId", "Width");
  786. b.ToTable("TrickplayInfos");
  787. });
  788. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  789. {
  790. b.Property<Guid>("Id")
  791. .ValueGeneratedOnAdd()
  792. .HasColumnType("TEXT");
  793. b.Property<string>("AudioLanguagePreference")
  794. .HasMaxLength(255)
  795. .HasColumnType("TEXT");
  796. b.Property<string>("AuthenticationProviderId")
  797. .IsRequired()
  798. .HasMaxLength(255)
  799. .HasColumnType("TEXT");
  800. b.Property<string>("CastReceiverId")
  801. .HasMaxLength(32)
  802. .HasColumnType("TEXT");
  803. b.Property<bool>("DisplayCollectionsView")
  804. .HasColumnType("INTEGER");
  805. b.Property<bool>("DisplayMissingEpisodes")
  806. .HasColumnType("INTEGER");
  807. b.Property<bool>("EnableAutoLogin")
  808. .HasColumnType("INTEGER");
  809. b.Property<bool>("EnableLocalPassword")
  810. .HasColumnType("INTEGER");
  811. b.Property<bool>("EnableNextEpisodeAutoPlay")
  812. .HasColumnType("INTEGER");
  813. b.Property<bool>("EnableUserPreferenceAccess")
  814. .HasColumnType("INTEGER");
  815. b.Property<bool>("HidePlayedInLatest")
  816. .HasColumnType("INTEGER");
  817. b.Property<long>("InternalId")
  818. .HasColumnType("INTEGER");
  819. b.Property<int>("InvalidLoginAttemptCount")
  820. .HasColumnType("INTEGER");
  821. b.Property<DateTime?>("LastActivityDate")
  822. .HasColumnType("TEXT");
  823. b.Property<DateTime?>("LastLoginDate")
  824. .HasColumnType("TEXT");
  825. b.Property<int?>("LoginAttemptsBeforeLockout")
  826. .HasColumnType("INTEGER");
  827. b.Property<int>("MaxActiveSessions")
  828. .HasColumnType("INTEGER");
  829. b.Property<int?>("MaxParentalAgeRating")
  830. .HasColumnType("INTEGER");
  831. b.Property<bool>("MustUpdatePassword")
  832. .HasColumnType("INTEGER");
  833. b.Property<string>("Password")
  834. .HasMaxLength(65535)
  835. .HasColumnType("TEXT");
  836. b.Property<string>("PasswordResetProviderId")
  837. .IsRequired()
  838. .HasMaxLength(255)
  839. .HasColumnType("TEXT");
  840. b.Property<bool>("PlayDefaultAudioTrack")
  841. .HasColumnType("INTEGER");
  842. b.Property<bool>("RememberAudioSelections")
  843. .HasColumnType("INTEGER");
  844. b.Property<bool>("RememberSubtitleSelections")
  845. .HasColumnType("INTEGER");
  846. b.Property<int?>("RemoteClientBitrateLimit")
  847. .HasColumnType("INTEGER");
  848. b.Property<uint>("RowVersion")
  849. .IsConcurrencyToken()
  850. .HasColumnType("INTEGER");
  851. b.Property<string>("SubtitleLanguagePreference")
  852. .HasMaxLength(255)
  853. .HasColumnType("TEXT");
  854. b.Property<int>("SubtitleMode")
  855. .HasColumnType("INTEGER");
  856. b.Property<int>("SyncPlayAccess")
  857. .HasColumnType("INTEGER");
  858. b.Property<string>("Username")
  859. .IsRequired()
  860. .HasMaxLength(255)
  861. .HasColumnType("TEXT")
  862. .UseCollation("NOCASE");
  863. b.HasKey("Id");
  864. b.HasIndex("Username")
  865. .IsUnique();
  866. b.ToTable("Users");
  867. });
  868. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  869. {
  870. b.Property<Guid>("ItemId")
  871. .HasColumnType("TEXT");
  872. b.Property<Guid>("UserId")
  873. .HasColumnType("TEXT");
  874. b.Property<string>("CustomDataKey")
  875. .HasColumnType("TEXT");
  876. b.Property<int?>("AudioStreamIndex")
  877. .HasColumnType("INTEGER");
  878. b.Property<bool>("IsFavorite")
  879. .HasColumnType("INTEGER");
  880. b.Property<DateTime?>("LastPlayedDate")
  881. .HasColumnType("TEXT");
  882. b.Property<bool?>("Likes")
  883. .HasColumnType("INTEGER");
  884. b.Property<int>("PlayCount")
  885. .HasColumnType("INTEGER");
  886. b.Property<long>("PlaybackPositionTicks")
  887. .HasColumnType("INTEGER");
  888. b.Property<bool>("Played")
  889. .HasColumnType("INTEGER");
  890. b.Property<double?>("Rating")
  891. .HasColumnType("REAL");
  892. b.Property<int?>("SubtitleStreamIndex")
  893. .HasColumnType("INTEGER");
  894. b.HasKey("ItemId", "UserId", "CustomDataKey");
  895. b.HasIndex("UserId");
  896. b.HasIndex("ItemId", "UserId", "IsFavorite");
  897. b.HasIndex("ItemId", "UserId", "LastPlayedDate");
  898. b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
  899. b.HasIndex("ItemId", "UserId", "Played");
  900. b.ToTable("UserData");
  901. });
  902. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  903. {
  904. b.HasOne("Jellyfin.Data.Entities.User", null)
  905. .WithMany("AccessSchedules")
  906. .HasForeignKey("UserId")
  907. .OnDelete(DeleteBehavior.Cascade)
  908. .IsRequired();
  909. });
  910. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  911. {
  912. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  913. .WithMany("Children")
  914. .HasForeignKey("ItemId")
  915. .OnDelete(DeleteBehavior.Cascade)
  916. .IsRequired();
  917. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
  918. .WithMany("ParentAncestors")
  919. .HasForeignKey("ParentItemId")
  920. .OnDelete(DeleteBehavior.Cascade)
  921. .IsRequired();
  922. b.Navigation("Item");
  923. b.Navigation("ParentItem");
  924. });
  925. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  926. {
  927. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  928. .WithMany()
  929. .HasForeignKey("ItemId")
  930. .OnDelete(DeleteBehavior.Cascade)
  931. .IsRequired();
  932. b.Navigation("Item");
  933. });
  934. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  935. {
  936. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  937. .WithMany("Images")
  938. .HasForeignKey("ItemId")
  939. .OnDelete(DeleteBehavior.Cascade)
  940. .IsRequired();
  941. b.Navigation("Item");
  942. });
  943. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  944. {
  945. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  946. .WithMany("LockedFields")
  947. .HasForeignKey("ItemId")
  948. .OnDelete(DeleteBehavior.Cascade)
  949. .IsRequired();
  950. b.Navigation("Item");
  951. });
  952. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  953. {
  954. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  955. .WithMany("Provider")
  956. .HasForeignKey("ItemId")
  957. .OnDelete(DeleteBehavior.Cascade)
  958. .IsRequired();
  959. b.Navigation("Item");
  960. });
  961. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  962. {
  963. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  964. .WithMany("TrailerTypes")
  965. .HasForeignKey("ItemId")
  966. .OnDelete(DeleteBehavior.Cascade)
  967. .IsRequired();
  968. b.Navigation("Item");
  969. });
  970. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  971. {
  972. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  973. .WithMany("Chapters")
  974. .HasForeignKey("ItemId")
  975. .OnDelete(DeleteBehavior.Cascade)
  976. .IsRequired();
  977. b.Navigation("Item");
  978. });
  979. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  980. {
  981. b.HasOne("Jellyfin.Data.Entities.User", null)
  982. .WithMany("DisplayPreferences")
  983. .HasForeignKey("UserId")
  984. .OnDelete(DeleteBehavior.Cascade)
  985. .IsRequired();
  986. });
  987. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  988. {
  989. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  990. .WithMany("HomeSections")
  991. .HasForeignKey("DisplayPreferencesId")
  992. .OnDelete(DeleteBehavior.Cascade)
  993. .IsRequired();
  994. });
  995. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  996. {
  997. b.HasOne("Jellyfin.Data.Entities.User", null)
  998. .WithOne("ProfileImage")
  999. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  1000. .OnDelete(DeleteBehavior.Cascade);
  1001. });
  1002. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  1003. {
  1004. b.HasOne("Jellyfin.Data.Entities.User", null)
  1005. .WithMany("ItemDisplayPreferences")
  1006. .HasForeignKey("UserId")
  1007. .OnDelete(DeleteBehavior.Cascade)
  1008. .IsRequired();
  1009. });
  1010. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  1011. {
  1012. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1013. .WithMany("ItemValues")
  1014. .HasForeignKey("ItemId")
  1015. .OnDelete(DeleteBehavior.Cascade)
  1016. .IsRequired();
  1017. b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
  1018. .WithMany("BaseItemsMap")
  1019. .HasForeignKey("ItemValueId")
  1020. .OnDelete(DeleteBehavior.Cascade)
  1021. .IsRequired();
  1022. b.Navigation("Item");
  1023. b.Navigation("ItemValue");
  1024. });
  1025. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1026. {
  1027. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1028. .WithMany("MediaStreams")
  1029. .HasForeignKey("ItemId")
  1030. .OnDelete(DeleteBehavior.Cascade)
  1031. .IsRequired();
  1032. b.Navigation("Item");
  1033. });
  1034. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  1035. {
  1036. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1037. .WithMany("Peoples")
  1038. .HasForeignKey("ItemId")
  1039. .OnDelete(DeleteBehavior.Cascade)
  1040. .IsRequired();
  1041. b.HasOne("Jellyfin.Data.Entities.People", "People")
  1042. .WithMany("BaseItems")
  1043. .HasForeignKey("PeopleId")
  1044. .OnDelete(DeleteBehavior.Cascade)
  1045. .IsRequired();
  1046. b.Navigation("Item");
  1047. b.Navigation("People");
  1048. });
  1049. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1050. {
  1051. b.HasOne("Jellyfin.Data.Entities.User", null)
  1052. .WithMany("Permissions")
  1053. .HasForeignKey("UserId")
  1054. .OnDelete(DeleteBehavior.Cascade);
  1055. });
  1056. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1057. {
  1058. b.HasOne("Jellyfin.Data.Entities.User", null)
  1059. .WithMany("Preferences")
  1060. .HasForeignKey("UserId")
  1061. .OnDelete(DeleteBehavior.Cascade);
  1062. });
  1063. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1064. {
  1065. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1066. .WithMany()
  1067. .HasForeignKey("UserId")
  1068. .OnDelete(DeleteBehavior.Cascade)
  1069. .IsRequired();
  1070. b.Navigation("User");
  1071. });
  1072. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1073. {
  1074. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1075. .WithMany("UserData")
  1076. .HasForeignKey("ItemId")
  1077. .OnDelete(DeleteBehavior.Cascade)
  1078. .IsRequired();
  1079. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1080. .WithMany()
  1081. .HasForeignKey("UserId")
  1082. .OnDelete(DeleteBehavior.Cascade)
  1083. .IsRequired();
  1084. b.Navigation("Item");
  1085. b.Navigation("User");
  1086. });
  1087. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1088. {
  1089. b.Navigation("Chapters");
  1090. b.Navigation("Children");
  1091. b.Navigation("Images");
  1092. b.Navigation("ItemValues");
  1093. b.Navigation("LockedFields");
  1094. b.Navigation("MediaStreams");
  1095. b.Navigation("ParentAncestors");
  1096. b.Navigation("Peoples");
  1097. b.Navigation("Provider");
  1098. b.Navigation("TrailerTypes");
  1099. b.Navigation("UserData");
  1100. });
  1101. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1102. {
  1103. b.Navigation("HomeSections");
  1104. });
  1105. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  1106. {
  1107. b.Navigation("BaseItemsMap");
  1108. });
  1109. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1110. {
  1111. b.Navigation("BaseItems");
  1112. });
  1113. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1114. {
  1115. b.Navigation("AccessSchedules");
  1116. b.Navigation("DisplayPreferences");
  1117. b.Navigation("ItemDisplayPreferences");
  1118. b.Navigation("Permissions");
  1119. b.Navigation("Preferences");
  1120. b.Navigation("ProfileImage");
  1121. });
  1122. #pragma warning restore 612, 618
  1123. }
  1124. }
  1125. }