JellyfinDbModelSnapshot.cs 53 KB

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