JellyfinDbModelSnapshot.cs 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579
  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.Property<Guid?>("BaseItemEntityId")
  76. .HasColumnType("TEXT");
  77. b.HasKey("ItemId", "ParentItemId");
  78. b.HasIndex("BaseItemEntityId");
  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<string>("UserDataKey")
  247. .HasColumnType("TEXT");
  248. b.Property<int?>("Width")
  249. .HasColumnType("INTEGER");
  250. b.HasKey("Id");
  251. b.HasIndex("ParentId");
  252. b.HasIndex("Path");
  253. b.HasIndex("PresentationUniqueKey");
  254. b.HasIndex("TopParentId", "Id");
  255. b.HasIndex("UserDataKey", "Type");
  256. b.HasIndex("Type", "TopParentId", "Id");
  257. b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
  258. b.HasIndex("Type", "TopParentId", "StartDate");
  259. b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
  260. b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
  261. b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
  262. b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
  263. b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  264. b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  265. b.ToTable("BaseItems");
  266. });
  267. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  268. {
  269. b.Property<Guid>("Id")
  270. .ValueGeneratedOnAdd()
  271. .HasColumnType("TEXT");
  272. b.Property<byte[]>("Blurhash")
  273. .HasColumnType("BLOB");
  274. b.Property<DateTime>("DateModified")
  275. .HasColumnType("TEXT");
  276. b.Property<int>("Height")
  277. .HasColumnType("INTEGER");
  278. b.Property<int>("ImageType")
  279. .HasColumnType("INTEGER");
  280. b.Property<Guid>("ItemId")
  281. .HasColumnType("TEXT");
  282. b.Property<string>("Path")
  283. .IsRequired()
  284. .HasColumnType("TEXT");
  285. b.Property<int>("Width")
  286. .HasColumnType("INTEGER");
  287. b.HasKey("Id");
  288. b.HasIndex("ItemId");
  289. b.ToTable("BaseItemImageInfos");
  290. });
  291. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  292. {
  293. b.Property<int>("Id")
  294. .HasColumnType("INTEGER");
  295. b.Property<Guid>("ItemId")
  296. .HasColumnType("TEXT");
  297. b.HasKey("Id", "ItemId");
  298. b.HasIndex("ItemId");
  299. b.ToTable("BaseItemMetadataFields");
  300. });
  301. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  302. {
  303. b.Property<Guid>("ItemId")
  304. .HasColumnType("TEXT");
  305. b.Property<string>("ProviderId")
  306. .HasColumnType("TEXT");
  307. b.Property<string>("ProviderValue")
  308. .IsRequired()
  309. .HasColumnType("TEXT");
  310. b.HasKey("ItemId", "ProviderId");
  311. b.HasIndex("ProviderId", "ProviderValue", "ItemId");
  312. b.ToTable("BaseItemProviders");
  313. });
  314. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  315. {
  316. b.Property<int>("Id")
  317. .HasColumnType("INTEGER");
  318. b.Property<Guid>("ItemId")
  319. .HasColumnType("TEXT");
  320. b.HasKey("Id", "ItemId");
  321. b.HasIndex("ItemId");
  322. b.ToTable("BaseItemTrailerTypes");
  323. });
  324. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  325. {
  326. b.Property<Guid>("ItemId")
  327. .HasColumnType("TEXT");
  328. b.Property<int>("ChapterIndex")
  329. .HasColumnType("INTEGER");
  330. b.Property<DateTime?>("ImageDateModified")
  331. .HasColumnType("TEXT");
  332. b.Property<string>("ImagePath")
  333. .HasColumnType("TEXT");
  334. b.Property<string>("Name")
  335. .HasColumnType("TEXT");
  336. b.Property<long>("StartPositionTicks")
  337. .HasColumnType("INTEGER");
  338. b.HasKey("ItemId", "ChapterIndex");
  339. b.ToTable("Chapters");
  340. });
  341. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  342. {
  343. b.Property<int>("Id")
  344. .ValueGeneratedOnAdd()
  345. .HasColumnType("INTEGER");
  346. b.Property<string>("Client")
  347. .IsRequired()
  348. .HasMaxLength(32)
  349. .HasColumnType("TEXT");
  350. b.Property<Guid>("ItemId")
  351. .HasColumnType("TEXT");
  352. b.Property<string>("Key")
  353. .IsRequired()
  354. .HasColumnType("TEXT");
  355. b.Property<Guid>("UserId")
  356. .HasColumnType("TEXT");
  357. b.Property<string>("Value")
  358. .HasColumnType("TEXT");
  359. b.HasKey("Id");
  360. b.HasIndex("UserId", "ItemId", "Client", "Key")
  361. .IsUnique();
  362. b.ToTable("CustomItemDisplayPreferences");
  363. });
  364. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  365. {
  366. b.Property<int>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasColumnType("INTEGER");
  369. b.Property<int>("ChromecastVersion")
  370. .HasColumnType("INTEGER");
  371. b.Property<string>("Client")
  372. .IsRequired()
  373. .HasMaxLength(32)
  374. .HasColumnType("TEXT");
  375. b.Property<string>("DashboardTheme")
  376. .HasMaxLength(32)
  377. .HasColumnType("TEXT");
  378. b.Property<bool>("EnableNextVideoInfoOverlay")
  379. .HasColumnType("INTEGER");
  380. b.Property<int?>("IndexBy")
  381. .HasColumnType("INTEGER");
  382. b.Property<Guid>("ItemId")
  383. .HasColumnType("TEXT");
  384. b.Property<int>("ScrollDirection")
  385. .HasColumnType("INTEGER");
  386. b.Property<bool>("ShowBackdrop")
  387. .HasColumnType("INTEGER");
  388. b.Property<bool>("ShowSidebar")
  389. .HasColumnType("INTEGER");
  390. b.Property<int>("SkipBackwardLength")
  391. .HasColumnType("INTEGER");
  392. b.Property<int>("SkipForwardLength")
  393. .HasColumnType("INTEGER");
  394. b.Property<string>("TvHome")
  395. .HasMaxLength(32)
  396. .HasColumnType("TEXT");
  397. b.Property<Guid>("UserId")
  398. .HasColumnType("TEXT");
  399. b.HasKey("Id");
  400. b.HasIndex("UserId", "ItemId", "Client")
  401. .IsUnique();
  402. b.ToTable("DisplayPreferences");
  403. });
  404. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  405. {
  406. b.Property<int>("Id")
  407. .ValueGeneratedOnAdd()
  408. .HasColumnType("INTEGER");
  409. b.Property<int>("DisplayPreferencesId")
  410. .HasColumnType("INTEGER");
  411. b.Property<int>("Order")
  412. .HasColumnType("INTEGER");
  413. b.Property<int>("Type")
  414. .HasColumnType("INTEGER");
  415. b.HasKey("Id");
  416. b.HasIndex("DisplayPreferencesId");
  417. b.ToTable("HomeSection");
  418. });
  419. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  420. {
  421. b.Property<int>("Id")
  422. .ValueGeneratedOnAdd()
  423. .HasColumnType("INTEGER");
  424. b.Property<DateTime>("LastModified")
  425. .HasColumnType("TEXT");
  426. b.Property<string>("Path")
  427. .IsRequired()
  428. .HasMaxLength(512)
  429. .HasColumnType("TEXT");
  430. b.Property<Guid?>("UserId")
  431. .HasColumnType("TEXT");
  432. b.HasKey("Id");
  433. b.HasIndex("UserId")
  434. .IsUnique();
  435. b.ToTable("ImageInfos");
  436. });
  437. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  438. {
  439. b.Property<int>("Id")
  440. .ValueGeneratedOnAdd()
  441. .HasColumnType("INTEGER");
  442. b.Property<string>("Client")
  443. .IsRequired()
  444. .HasMaxLength(32)
  445. .HasColumnType("TEXT");
  446. b.Property<int?>("IndexBy")
  447. .HasColumnType("INTEGER");
  448. b.Property<Guid>("ItemId")
  449. .HasColumnType("TEXT");
  450. b.Property<bool>("RememberIndexing")
  451. .HasColumnType("INTEGER");
  452. b.Property<bool>("RememberSorting")
  453. .HasColumnType("INTEGER");
  454. b.Property<string>("SortBy")
  455. .IsRequired()
  456. .HasMaxLength(64)
  457. .HasColumnType("TEXT");
  458. b.Property<int>("SortOrder")
  459. .HasColumnType("INTEGER");
  460. b.Property<Guid>("UserId")
  461. .HasColumnType("TEXT");
  462. b.Property<int>("ViewType")
  463. .HasColumnType("INTEGER");
  464. b.HasKey("Id");
  465. b.HasIndex("UserId");
  466. b.ToTable("ItemDisplayPreferences");
  467. });
  468. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  469. {
  470. b.Property<Guid>("ItemValueId")
  471. .ValueGeneratedOnAdd()
  472. .HasColumnType("TEXT");
  473. b.Property<string>("CleanValue")
  474. .IsRequired()
  475. .HasColumnType("TEXT");
  476. b.Property<int>("Type")
  477. .HasColumnType("INTEGER");
  478. b.Property<string>("Value")
  479. .IsRequired()
  480. .HasColumnType("TEXT");
  481. b.HasKey("ItemValueId");
  482. b.HasIndex("Type", "CleanValue");
  483. b.ToTable("ItemValues");
  484. });
  485. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  486. {
  487. b.Property<Guid>("ItemValueId")
  488. .HasColumnType("TEXT");
  489. b.Property<Guid>("ItemId")
  490. .HasColumnType("TEXT");
  491. b.HasKey("ItemValueId", "ItemId");
  492. b.HasIndex("ItemId");
  493. b.ToTable("ItemValuesMap");
  494. });
  495. modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
  496. {
  497. b.Property<Guid>("Id")
  498. .ValueGeneratedOnAdd()
  499. .HasColumnType("TEXT");
  500. b.Property<long>("EndTicks")
  501. .HasColumnType("INTEGER");
  502. b.Property<Guid>("ItemId")
  503. .HasColumnType("TEXT");
  504. b.Property<string>("SegmentProviderId")
  505. .IsRequired()
  506. .HasColumnType("TEXT");
  507. b.Property<long>("StartTicks")
  508. .HasColumnType("INTEGER");
  509. b.Property<int>("Type")
  510. .HasColumnType("INTEGER");
  511. b.HasKey("Id");
  512. b.ToTable("MediaSegments");
  513. });
  514. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  515. {
  516. b.Property<Guid>("ItemId")
  517. .HasColumnType("TEXT");
  518. b.Property<int>("StreamIndex")
  519. .HasColumnType("INTEGER");
  520. b.Property<string>("AspectRatio")
  521. .HasColumnType("TEXT");
  522. b.Property<float>("AverageFrameRate")
  523. .HasColumnType("REAL");
  524. b.Property<int>("BitDepth")
  525. .HasColumnType("INTEGER");
  526. b.Property<int>("BitRate")
  527. .HasColumnType("INTEGER");
  528. b.Property<int>("BlPresentFlag")
  529. .HasColumnType("INTEGER");
  530. b.Property<string>("ChannelLayout")
  531. .HasColumnType("TEXT");
  532. b.Property<int>("Channels")
  533. .HasColumnType("INTEGER");
  534. b.Property<string>("Codec")
  535. .HasColumnType("TEXT");
  536. b.Property<string>("CodecTag")
  537. .IsRequired()
  538. .HasColumnType("TEXT");
  539. b.Property<string>("CodecTimeBase")
  540. .IsRequired()
  541. .HasColumnType("TEXT");
  542. b.Property<string>("ColorPrimaries")
  543. .IsRequired()
  544. .HasColumnType("TEXT");
  545. b.Property<string>("ColorSpace")
  546. .IsRequired()
  547. .HasColumnType("TEXT");
  548. b.Property<string>("ColorTransfer")
  549. .IsRequired()
  550. .HasColumnType("TEXT");
  551. b.Property<string>("Comment")
  552. .IsRequired()
  553. .HasColumnType("TEXT");
  554. b.Property<int>("DvBlSignalCompatibilityId")
  555. .HasColumnType("INTEGER");
  556. b.Property<int>("DvLevel")
  557. .HasColumnType("INTEGER");
  558. b.Property<int>("DvProfile")
  559. .HasColumnType("INTEGER");
  560. b.Property<int>("DvVersionMajor")
  561. .HasColumnType("INTEGER");
  562. b.Property<int>("DvVersionMinor")
  563. .HasColumnType("INTEGER");
  564. b.Property<int>("ElPresentFlag")
  565. .HasColumnType("INTEGER");
  566. b.Property<int>("Height")
  567. .HasColumnType("INTEGER");
  568. b.Property<bool>("IsAnamorphic")
  569. .HasColumnType("INTEGER");
  570. b.Property<bool>("IsAvc")
  571. .HasColumnType("INTEGER");
  572. b.Property<bool>("IsDefault")
  573. .HasColumnType("INTEGER");
  574. b.Property<bool>("IsExternal")
  575. .HasColumnType("INTEGER");
  576. b.Property<bool>("IsForced")
  577. .HasColumnType("INTEGER");
  578. b.Property<bool>("IsHearingImpaired")
  579. .HasColumnType("INTEGER");
  580. b.Property<bool>("IsInterlaced")
  581. .HasColumnType("INTEGER");
  582. b.Property<string>("KeyFrames")
  583. .HasColumnType("TEXT");
  584. b.Property<string>("Language")
  585. .HasColumnType("TEXT");
  586. b.Property<float>("Level")
  587. .HasColumnType("REAL");
  588. b.Property<string>("NalLengthSize")
  589. .IsRequired()
  590. .HasColumnType("TEXT");
  591. b.Property<string>("Path")
  592. .HasColumnType("TEXT");
  593. b.Property<string>("PixelFormat")
  594. .HasColumnType("TEXT");
  595. b.Property<string>("Profile")
  596. .HasColumnType("TEXT");
  597. b.Property<float>("RealFrameRate")
  598. .HasColumnType("REAL");
  599. b.Property<int>("RefFrames")
  600. .HasColumnType("INTEGER");
  601. b.Property<int>("Rotation")
  602. .HasColumnType("INTEGER");
  603. b.Property<int>("RpuPresentFlag")
  604. .HasColumnType("INTEGER");
  605. b.Property<int>("SampleRate")
  606. .HasColumnType("INTEGER");
  607. b.Property<int?>("StreamType")
  608. .HasColumnType("INTEGER");
  609. b.Property<string>("TimeBase")
  610. .IsRequired()
  611. .HasColumnType("TEXT");
  612. b.Property<string>("Title")
  613. .IsRequired()
  614. .HasColumnType("TEXT");
  615. b.Property<int>("Width")
  616. .HasColumnType("INTEGER");
  617. b.HasKey("ItemId", "StreamIndex");
  618. b.HasIndex("StreamIndex");
  619. b.HasIndex("StreamType");
  620. b.HasIndex("StreamIndex", "StreamType");
  621. b.HasIndex("StreamIndex", "StreamType", "Language");
  622. b.ToTable("MediaStreamInfos");
  623. });
  624. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  625. {
  626. b.Property<Guid>("ItemId")
  627. .HasColumnType("TEXT");
  628. b.Property<string>("Role")
  629. .HasColumnType("TEXT");
  630. b.Property<int?>("ListOrder")
  631. .HasColumnType("INTEGER");
  632. b.Property<string>("Name")
  633. .IsRequired()
  634. .HasColumnType("TEXT");
  635. b.Property<string>("PersonType")
  636. .HasColumnType("TEXT");
  637. b.Property<int?>("SortOrder")
  638. .HasColumnType("INTEGER");
  639. b.HasKey("ItemId", "Role", "ListOrder");
  640. b.HasIndex("Name");
  641. b.HasIndex("ItemId", "ListOrder");
  642. b.ToTable("Peoples");
  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<string>("Key")
  871. .HasColumnType("TEXT");
  872. b.Property<Guid>("UserId")
  873. .HasColumnType("TEXT");
  874. b.Property<int?>("AudioStreamIndex")
  875. .HasColumnType("INTEGER");
  876. b.Property<Guid?>("BaseItemEntityId")
  877. .HasColumnType("TEXT");
  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("Key", "UserId");
  895. b.HasIndex("BaseItemEntityId");
  896. b.HasIndex("UserId");
  897. b.HasIndex("Key", "UserId", "IsFavorite");
  898. b.HasIndex("Key", "UserId", "LastPlayedDate");
  899. b.HasIndex("Key", "UserId", "PlaybackPositionTicks");
  900. b.HasIndex("Key", "UserId", "Played");
  901. b.ToTable("UserData");
  902. });
  903. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  904. {
  905. b.HasOne("Jellyfin.Data.Entities.User", null)
  906. .WithMany("AccessSchedules")
  907. .HasForeignKey("UserId")
  908. .OnDelete(DeleteBehavior.Cascade)
  909. .IsRequired();
  910. });
  911. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  912. {
  913. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  914. .WithMany("AncestorIds")
  915. .HasForeignKey("BaseItemEntityId");
  916. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  917. .WithMany()
  918. .HasForeignKey("ItemId")
  919. .OnDelete(DeleteBehavior.Cascade)
  920. .IsRequired();
  921. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
  922. .WithMany()
  923. .HasForeignKey("ParentItemId")
  924. .OnDelete(DeleteBehavior.Cascade)
  925. .IsRequired();
  926. b.Navigation("Item");
  927. b.Navigation("ParentItem");
  928. });
  929. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  930. {
  931. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  932. .WithMany()
  933. .HasForeignKey("ItemId")
  934. .OnDelete(DeleteBehavior.Cascade)
  935. .IsRequired();
  936. b.Navigation("Item");
  937. });
  938. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  939. {
  940. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  941. .WithMany("Images")
  942. .HasForeignKey("ItemId")
  943. .OnDelete(DeleteBehavior.Cascade)
  944. .IsRequired();
  945. b.Navigation("Item");
  946. });
  947. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  948. {
  949. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  950. .WithMany("LockedFields")
  951. .HasForeignKey("ItemId")
  952. .OnDelete(DeleteBehavior.Cascade)
  953. .IsRequired();
  954. b.Navigation("Item");
  955. });
  956. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  957. {
  958. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  959. .WithMany("Provider")
  960. .HasForeignKey("ItemId")
  961. .OnDelete(DeleteBehavior.Cascade)
  962. .IsRequired();
  963. b.Navigation("Item");
  964. });
  965. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  966. {
  967. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  968. .WithMany("TrailerTypes")
  969. .HasForeignKey("ItemId")
  970. .OnDelete(DeleteBehavior.Cascade)
  971. .IsRequired();
  972. b.Navigation("Item");
  973. });
  974. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  975. {
  976. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  977. .WithMany("Chapters")
  978. .HasForeignKey("ItemId")
  979. .OnDelete(DeleteBehavior.Cascade)
  980. .IsRequired();
  981. b.Navigation("Item");
  982. });
  983. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  984. {
  985. b.HasOne("Jellyfin.Data.Entities.User", null)
  986. .WithMany("DisplayPreferences")
  987. .HasForeignKey("UserId")
  988. .OnDelete(DeleteBehavior.Cascade)
  989. .IsRequired();
  990. });
  991. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  992. {
  993. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  994. .WithMany("HomeSections")
  995. .HasForeignKey("DisplayPreferencesId")
  996. .OnDelete(DeleteBehavior.Cascade)
  997. .IsRequired();
  998. });
  999. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  1000. {
  1001. b.HasOne("Jellyfin.Data.Entities.User", null)
  1002. .WithOne("ProfileImage")
  1003. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  1004. .OnDelete(DeleteBehavior.Cascade);
  1005. });
  1006. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  1007. {
  1008. b.HasOne("Jellyfin.Data.Entities.User", null)
  1009. .WithMany("ItemDisplayPreferences")
  1010. .HasForeignKey("UserId")
  1011. .OnDelete(DeleteBehavior.Cascade)
  1012. .IsRequired();
  1013. });
  1014. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  1015. {
  1016. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1017. .WithMany("ItemValues")
  1018. .HasForeignKey("ItemId")
  1019. .OnDelete(DeleteBehavior.Cascade)
  1020. .IsRequired();
  1021. b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
  1022. .WithMany("BaseItemsMap")
  1023. .HasForeignKey("ItemValueId")
  1024. .OnDelete(DeleteBehavior.Cascade)
  1025. .IsRequired();
  1026. b.Navigation("Item");
  1027. b.Navigation("ItemValue");
  1028. });
  1029. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1030. {
  1031. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1032. .WithMany("MediaStreams")
  1033. .HasForeignKey("ItemId")
  1034. .OnDelete(DeleteBehavior.Cascade)
  1035. .IsRequired();
  1036. b.Navigation("Item");
  1037. });
  1038. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1039. {
  1040. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1041. .WithMany("Peoples")
  1042. .HasForeignKey("ItemId")
  1043. .OnDelete(DeleteBehavior.Cascade)
  1044. .IsRequired();
  1045. b.Navigation("Item");
  1046. });
  1047. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1048. {
  1049. b.HasOne("Jellyfin.Data.Entities.User", null)
  1050. .WithMany("Permissions")
  1051. .HasForeignKey("UserId")
  1052. .OnDelete(DeleteBehavior.Cascade);
  1053. });
  1054. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1055. {
  1056. b.HasOne("Jellyfin.Data.Entities.User", null)
  1057. .WithMany("Preferences")
  1058. .HasForeignKey("UserId")
  1059. .OnDelete(DeleteBehavior.Cascade);
  1060. });
  1061. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1062. {
  1063. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1064. .WithMany()
  1065. .HasForeignKey("UserId")
  1066. .OnDelete(DeleteBehavior.Cascade)
  1067. .IsRequired();
  1068. b.Navigation("User");
  1069. });
  1070. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1071. {
  1072. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  1073. .WithMany("UserData")
  1074. .HasForeignKey("BaseItemEntityId");
  1075. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1076. .WithMany()
  1077. .HasForeignKey("UserId")
  1078. .OnDelete(DeleteBehavior.Cascade)
  1079. .IsRequired();
  1080. b.Navigation("User");
  1081. });
  1082. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1083. {
  1084. b.Navigation("AncestorIds");
  1085. b.Navigation("Chapters");
  1086. b.Navigation("Images");
  1087. b.Navigation("ItemValues");
  1088. b.Navigation("LockedFields");
  1089. b.Navigation("MediaStreams");
  1090. b.Navigation("Peoples");
  1091. b.Navigation("Provider");
  1092. b.Navigation("TrailerTypes");
  1093. b.Navigation("UserData");
  1094. });
  1095. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1096. {
  1097. b.Navigation("HomeSections");
  1098. });
  1099. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  1100. {
  1101. b.Navigation("BaseItemsMap");
  1102. });
  1103. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1104. {
  1105. b.Navigation("AccessSchedules");
  1106. b.Navigation("DisplayPreferences");
  1107. b.Navigation("ItemDisplayPreferences");
  1108. b.Navigation("Permissions");
  1109. b.Navigation("Preferences");
  1110. b.Navigation("ProfileImage");
  1111. });
  1112. #pragma warning restore 612, 618
  1113. }
  1114. }
  1115. }