JellyfinDbModelSnapshot.cs 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607
  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<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. .IsRequired()
  535. .HasColumnType("TEXT");
  536. b.Property<string>("CodecTimeBase")
  537. .IsRequired()
  538. .HasColumnType("TEXT");
  539. b.Property<string>("ColorPrimaries")
  540. .IsRequired()
  541. .HasColumnType("TEXT");
  542. b.Property<string>("ColorSpace")
  543. .IsRequired()
  544. .HasColumnType("TEXT");
  545. b.Property<string>("ColorTransfer")
  546. .IsRequired()
  547. .HasColumnType("TEXT");
  548. b.Property<string>("Comment")
  549. .IsRequired()
  550. .HasColumnType("TEXT");
  551. b.Property<int>("DvBlSignalCompatibilityId")
  552. .HasColumnType("INTEGER");
  553. b.Property<int>("DvLevel")
  554. .HasColumnType("INTEGER");
  555. b.Property<int>("DvProfile")
  556. .HasColumnType("INTEGER");
  557. b.Property<int>("DvVersionMajor")
  558. .HasColumnType("INTEGER");
  559. b.Property<int>("DvVersionMinor")
  560. .HasColumnType("INTEGER");
  561. b.Property<int>("ElPresentFlag")
  562. .HasColumnType("INTEGER");
  563. b.Property<int>("Height")
  564. .HasColumnType("INTEGER");
  565. b.Property<bool>("IsAnamorphic")
  566. .HasColumnType("INTEGER");
  567. b.Property<bool>("IsAvc")
  568. .HasColumnType("INTEGER");
  569. b.Property<bool>("IsDefault")
  570. .HasColumnType("INTEGER");
  571. b.Property<bool>("IsExternal")
  572. .HasColumnType("INTEGER");
  573. b.Property<bool>("IsForced")
  574. .HasColumnType("INTEGER");
  575. b.Property<bool>("IsHearingImpaired")
  576. .HasColumnType("INTEGER");
  577. b.Property<bool>("IsInterlaced")
  578. .HasColumnType("INTEGER");
  579. b.Property<string>("KeyFrames")
  580. .HasColumnType("TEXT");
  581. b.Property<string>("Language")
  582. .HasColumnType("TEXT");
  583. b.Property<float>("Level")
  584. .HasColumnType("REAL");
  585. b.Property<string>("NalLengthSize")
  586. .IsRequired()
  587. .HasColumnType("TEXT");
  588. b.Property<string>("Path")
  589. .HasColumnType("TEXT");
  590. b.Property<string>("PixelFormat")
  591. .HasColumnType("TEXT");
  592. b.Property<string>("Profile")
  593. .HasColumnType("TEXT");
  594. b.Property<float>("RealFrameRate")
  595. .HasColumnType("REAL");
  596. b.Property<int>("RefFrames")
  597. .HasColumnType("INTEGER");
  598. b.Property<int>("Rotation")
  599. .HasColumnType("INTEGER");
  600. b.Property<int>("RpuPresentFlag")
  601. .HasColumnType("INTEGER");
  602. b.Property<int>("SampleRate")
  603. .HasColumnType("INTEGER");
  604. b.Property<int?>("StreamType")
  605. .HasColumnType("INTEGER");
  606. b.Property<string>("TimeBase")
  607. .IsRequired()
  608. .HasColumnType("TEXT");
  609. b.Property<string>("Title")
  610. .IsRequired()
  611. .HasColumnType("TEXT");
  612. b.Property<int>("Width")
  613. .HasColumnType("INTEGER");
  614. b.HasKey("ItemId", "StreamIndex");
  615. b.HasIndex("StreamIndex");
  616. b.HasIndex("StreamType");
  617. b.HasIndex("StreamIndex", "StreamType");
  618. b.HasIndex("StreamIndex", "StreamType", "Language");
  619. b.ToTable("MediaStreamInfos");
  620. });
  621. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  622. {
  623. b.Property<Guid>("Id")
  624. .ValueGeneratedOnAdd()
  625. .HasColumnType("TEXT");
  626. b.Property<string>("Name")
  627. .IsRequired()
  628. .HasColumnType("TEXT");
  629. b.Property<string>("PersonType")
  630. .HasColumnType("TEXT");
  631. b.HasKey("Id");
  632. b.HasIndex("Name");
  633. b.ToTable("Peoples");
  634. });
  635. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  636. {
  637. b.Property<Guid>("ItemId")
  638. .HasColumnType("TEXT");
  639. b.Property<Guid>("PeopleId")
  640. .HasColumnType("TEXT");
  641. b.Property<int?>("ListOrder")
  642. .HasColumnType("INTEGER");
  643. b.Property<string>("Role")
  644. .HasColumnType("TEXT");
  645. b.Property<int?>("SortOrder")
  646. .HasColumnType("INTEGER");
  647. b.HasKey("ItemId", "PeopleId");
  648. b.HasIndex("PeopleId");
  649. b.HasIndex("ItemId", "ListOrder");
  650. b.HasIndex("ItemId", "SortOrder");
  651. b.ToTable("PeopleBaseItemMap");
  652. });
  653. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  654. {
  655. b.Property<int>("Id")
  656. .ValueGeneratedOnAdd()
  657. .HasColumnType("INTEGER");
  658. b.Property<int>("Kind")
  659. .HasColumnType("INTEGER");
  660. b.Property<Guid?>("Permission_Permissions_Guid")
  661. .HasColumnType("TEXT");
  662. b.Property<uint>("RowVersion")
  663. .IsConcurrencyToken()
  664. .HasColumnType("INTEGER");
  665. b.Property<Guid?>("UserId")
  666. .HasColumnType("TEXT");
  667. b.Property<bool>("Value")
  668. .HasColumnType("INTEGER");
  669. b.HasKey("Id");
  670. b.HasIndex("UserId", "Kind")
  671. .IsUnique()
  672. .HasFilter("[UserId] IS NOT NULL");
  673. b.ToTable("Permissions");
  674. });
  675. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  676. {
  677. b.Property<int>("Id")
  678. .ValueGeneratedOnAdd()
  679. .HasColumnType("INTEGER");
  680. b.Property<int>("Kind")
  681. .HasColumnType("INTEGER");
  682. b.Property<Guid?>("Preference_Preferences_Guid")
  683. .HasColumnType("TEXT");
  684. b.Property<uint>("RowVersion")
  685. .IsConcurrencyToken()
  686. .HasColumnType("INTEGER");
  687. b.Property<Guid?>("UserId")
  688. .HasColumnType("TEXT");
  689. b.Property<string>("Value")
  690. .IsRequired()
  691. .HasMaxLength(65535)
  692. .HasColumnType("TEXT");
  693. b.HasKey("Id");
  694. b.HasIndex("UserId", "Kind")
  695. .IsUnique()
  696. .HasFilter("[UserId] IS NOT NULL");
  697. b.ToTable("Preferences");
  698. });
  699. modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
  700. {
  701. b.Property<int>("Id")
  702. .ValueGeneratedOnAdd()
  703. .HasColumnType("INTEGER");
  704. b.Property<string>("AccessToken")
  705. .IsRequired()
  706. .HasColumnType("TEXT");
  707. b.Property<DateTime>("DateCreated")
  708. .HasColumnType("TEXT");
  709. b.Property<DateTime>("DateLastActivity")
  710. .HasColumnType("TEXT");
  711. b.Property<string>("Name")
  712. .IsRequired()
  713. .HasMaxLength(64)
  714. .HasColumnType("TEXT");
  715. b.HasKey("Id");
  716. b.HasIndex("AccessToken")
  717. .IsUnique();
  718. b.ToTable("ApiKeys");
  719. });
  720. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  721. {
  722. b.Property<int>("Id")
  723. .ValueGeneratedOnAdd()
  724. .HasColumnType("INTEGER");
  725. b.Property<string>("AccessToken")
  726. .IsRequired()
  727. .HasColumnType("TEXT");
  728. b.Property<string>("AppName")
  729. .IsRequired()
  730. .HasMaxLength(64)
  731. .HasColumnType("TEXT");
  732. b.Property<string>("AppVersion")
  733. .IsRequired()
  734. .HasMaxLength(32)
  735. .HasColumnType("TEXT");
  736. b.Property<DateTime>("DateCreated")
  737. .HasColumnType("TEXT");
  738. b.Property<DateTime>("DateLastActivity")
  739. .HasColumnType("TEXT");
  740. b.Property<DateTime>("DateModified")
  741. .HasColumnType("TEXT");
  742. b.Property<string>("DeviceId")
  743. .IsRequired()
  744. .HasMaxLength(256)
  745. .HasColumnType("TEXT");
  746. b.Property<string>("DeviceName")
  747. .IsRequired()
  748. .HasMaxLength(64)
  749. .HasColumnType("TEXT");
  750. b.Property<bool>("IsActive")
  751. .HasColumnType("INTEGER");
  752. b.Property<Guid>("UserId")
  753. .HasColumnType("TEXT");
  754. b.HasKey("Id");
  755. b.HasIndex("DeviceId");
  756. b.HasIndex("AccessToken", "DateLastActivity");
  757. b.HasIndex("DeviceId", "DateLastActivity");
  758. b.HasIndex("UserId", "DeviceId");
  759. b.ToTable("Devices");
  760. });
  761. modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
  762. {
  763. b.Property<int>("Id")
  764. .ValueGeneratedOnAdd()
  765. .HasColumnType("INTEGER");
  766. b.Property<string>("CustomName")
  767. .HasColumnType("TEXT");
  768. b.Property<string>("DeviceId")
  769. .IsRequired()
  770. .HasColumnType("TEXT");
  771. b.HasKey("Id");
  772. b.HasIndex("DeviceId")
  773. .IsUnique();
  774. b.ToTable("DeviceOptions");
  775. });
  776. modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
  777. {
  778. b.Property<Guid>("ItemId")
  779. .HasColumnType("TEXT");
  780. b.Property<int>("Width")
  781. .HasColumnType("INTEGER");
  782. b.Property<int>("Bandwidth")
  783. .HasColumnType("INTEGER");
  784. b.Property<int>("Height")
  785. .HasColumnType("INTEGER");
  786. b.Property<int>("Interval")
  787. .HasColumnType("INTEGER");
  788. b.Property<int>("ThumbnailCount")
  789. .HasColumnType("INTEGER");
  790. b.Property<int>("TileHeight")
  791. .HasColumnType("INTEGER");
  792. b.Property<int>("TileWidth")
  793. .HasColumnType("INTEGER");
  794. b.HasKey("ItemId", "Width");
  795. b.ToTable("TrickplayInfos");
  796. });
  797. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  798. {
  799. b.Property<Guid>("Id")
  800. .ValueGeneratedOnAdd()
  801. .HasColumnType("TEXT");
  802. b.Property<string>("AudioLanguagePreference")
  803. .HasMaxLength(255)
  804. .HasColumnType("TEXT");
  805. b.Property<string>("AuthenticationProviderId")
  806. .IsRequired()
  807. .HasMaxLength(255)
  808. .HasColumnType("TEXT");
  809. b.Property<string>("CastReceiverId")
  810. .HasMaxLength(32)
  811. .HasColumnType("TEXT");
  812. b.Property<bool>("DisplayCollectionsView")
  813. .HasColumnType("INTEGER");
  814. b.Property<bool>("DisplayMissingEpisodes")
  815. .HasColumnType("INTEGER");
  816. b.Property<bool>("EnableAutoLogin")
  817. .HasColumnType("INTEGER");
  818. b.Property<bool>("EnableLocalPassword")
  819. .HasColumnType("INTEGER");
  820. b.Property<bool>("EnableNextEpisodeAutoPlay")
  821. .HasColumnType("INTEGER");
  822. b.Property<bool>("EnableUserPreferenceAccess")
  823. .HasColumnType("INTEGER");
  824. b.Property<bool>("HidePlayedInLatest")
  825. .HasColumnType("INTEGER");
  826. b.Property<long>("InternalId")
  827. .HasColumnType("INTEGER");
  828. b.Property<int>("InvalidLoginAttemptCount")
  829. .HasColumnType("INTEGER");
  830. b.Property<DateTime?>("LastActivityDate")
  831. .HasColumnType("TEXT");
  832. b.Property<DateTime?>("LastLoginDate")
  833. .HasColumnType("TEXT");
  834. b.Property<int?>("LoginAttemptsBeforeLockout")
  835. .HasColumnType("INTEGER");
  836. b.Property<int>("MaxActiveSessions")
  837. .HasColumnType("INTEGER");
  838. b.Property<int?>("MaxParentalAgeRating")
  839. .HasColumnType("INTEGER");
  840. b.Property<bool>("MustUpdatePassword")
  841. .HasColumnType("INTEGER");
  842. b.Property<string>("Password")
  843. .HasMaxLength(65535)
  844. .HasColumnType("TEXT");
  845. b.Property<string>("PasswordResetProviderId")
  846. .IsRequired()
  847. .HasMaxLength(255)
  848. .HasColumnType("TEXT");
  849. b.Property<bool>("PlayDefaultAudioTrack")
  850. .HasColumnType("INTEGER");
  851. b.Property<bool>("RememberAudioSelections")
  852. .HasColumnType("INTEGER");
  853. b.Property<bool>("RememberSubtitleSelections")
  854. .HasColumnType("INTEGER");
  855. b.Property<int?>("RemoteClientBitrateLimit")
  856. .HasColumnType("INTEGER");
  857. b.Property<uint>("RowVersion")
  858. .IsConcurrencyToken()
  859. .HasColumnType("INTEGER");
  860. b.Property<string>("SubtitleLanguagePreference")
  861. .HasMaxLength(255)
  862. .HasColumnType("TEXT");
  863. b.Property<int>("SubtitleMode")
  864. .HasColumnType("INTEGER");
  865. b.Property<int>("SyncPlayAccess")
  866. .HasColumnType("INTEGER");
  867. b.Property<string>("Username")
  868. .IsRequired()
  869. .HasMaxLength(255)
  870. .HasColumnType("TEXT")
  871. .UseCollation("NOCASE");
  872. b.HasKey("Id");
  873. b.HasIndex("Username")
  874. .IsUnique();
  875. b.ToTable("Users");
  876. });
  877. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  878. {
  879. b.Property<Guid>("ItemId")
  880. .HasColumnType("TEXT");
  881. b.Property<Guid>("UserId")
  882. .HasColumnType("TEXT");
  883. b.Property<string>("CustomDataKey")
  884. .HasColumnType("TEXT");
  885. b.Property<int?>("AudioStreamIndex")
  886. .HasColumnType("INTEGER");
  887. b.Property<bool>("IsFavorite")
  888. .HasColumnType("INTEGER");
  889. b.Property<DateTime?>("LastPlayedDate")
  890. .HasColumnType("TEXT");
  891. b.Property<bool?>("Likes")
  892. .HasColumnType("INTEGER");
  893. b.Property<int>("PlayCount")
  894. .HasColumnType("INTEGER");
  895. b.Property<long>("PlaybackPositionTicks")
  896. .HasColumnType("INTEGER");
  897. b.Property<bool>("Played")
  898. .HasColumnType("INTEGER");
  899. b.Property<double?>("Rating")
  900. .HasColumnType("REAL");
  901. b.Property<int?>("SubtitleStreamIndex")
  902. .HasColumnType("INTEGER");
  903. b.HasKey("ItemId", "UserId", "CustomDataKey");
  904. b.HasIndex("UserId");
  905. b.HasIndex("ItemId", "UserId", "IsFavorite");
  906. b.HasIndex("ItemId", "UserId", "LastPlayedDate");
  907. b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
  908. b.HasIndex("ItemId", "UserId", "Played");
  909. b.ToTable("UserData");
  910. });
  911. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  912. {
  913. b.HasOne("Jellyfin.Data.Entities.User", null)
  914. .WithMany("AccessSchedules")
  915. .HasForeignKey("UserId")
  916. .OnDelete(DeleteBehavior.Cascade)
  917. .IsRequired();
  918. });
  919. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  920. {
  921. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  922. .WithMany("AncestorIds")
  923. .HasForeignKey("BaseItemEntityId");
  924. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  925. .WithMany()
  926. .HasForeignKey("ItemId")
  927. .OnDelete(DeleteBehavior.Cascade)
  928. .IsRequired();
  929. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
  930. .WithMany()
  931. .HasForeignKey("ParentItemId")
  932. .OnDelete(DeleteBehavior.Cascade)
  933. .IsRequired();
  934. b.Navigation("Item");
  935. b.Navigation("ParentItem");
  936. });
  937. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  938. {
  939. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  940. .WithMany()
  941. .HasForeignKey("ItemId")
  942. .OnDelete(DeleteBehavior.Cascade)
  943. .IsRequired();
  944. b.Navigation("Item");
  945. });
  946. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  947. {
  948. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  949. .WithMany("Images")
  950. .HasForeignKey("ItemId")
  951. .OnDelete(DeleteBehavior.Cascade)
  952. .IsRequired();
  953. b.Navigation("Item");
  954. });
  955. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  956. {
  957. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  958. .WithMany("LockedFields")
  959. .HasForeignKey("ItemId")
  960. .OnDelete(DeleteBehavior.Cascade)
  961. .IsRequired();
  962. b.Navigation("Item");
  963. });
  964. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  965. {
  966. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  967. .WithMany("Provider")
  968. .HasForeignKey("ItemId")
  969. .OnDelete(DeleteBehavior.Cascade)
  970. .IsRequired();
  971. b.Navigation("Item");
  972. });
  973. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  974. {
  975. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  976. .WithMany("TrailerTypes")
  977. .HasForeignKey("ItemId")
  978. .OnDelete(DeleteBehavior.Cascade)
  979. .IsRequired();
  980. b.Navigation("Item");
  981. });
  982. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  983. {
  984. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  985. .WithMany("Chapters")
  986. .HasForeignKey("ItemId")
  987. .OnDelete(DeleteBehavior.Cascade)
  988. .IsRequired();
  989. b.Navigation("Item");
  990. });
  991. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  992. {
  993. b.HasOne("Jellyfin.Data.Entities.User", null)
  994. .WithMany("DisplayPreferences")
  995. .HasForeignKey("UserId")
  996. .OnDelete(DeleteBehavior.Cascade)
  997. .IsRequired();
  998. });
  999. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  1000. {
  1001. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  1002. .WithMany("HomeSections")
  1003. .HasForeignKey("DisplayPreferencesId")
  1004. .OnDelete(DeleteBehavior.Cascade)
  1005. .IsRequired();
  1006. });
  1007. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  1008. {
  1009. b.HasOne("Jellyfin.Data.Entities.User", null)
  1010. .WithOne("ProfileImage")
  1011. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  1012. .OnDelete(DeleteBehavior.Cascade);
  1013. });
  1014. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  1015. {
  1016. b.HasOne("Jellyfin.Data.Entities.User", null)
  1017. .WithMany("ItemDisplayPreferences")
  1018. .HasForeignKey("UserId")
  1019. .OnDelete(DeleteBehavior.Cascade)
  1020. .IsRequired();
  1021. });
  1022. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  1023. {
  1024. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1025. .WithMany("ItemValues")
  1026. .HasForeignKey("ItemId")
  1027. .OnDelete(DeleteBehavior.Cascade)
  1028. .IsRequired();
  1029. b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
  1030. .WithMany("BaseItemsMap")
  1031. .HasForeignKey("ItemValueId")
  1032. .OnDelete(DeleteBehavior.Cascade)
  1033. .IsRequired();
  1034. b.Navigation("Item");
  1035. b.Navigation("ItemValue");
  1036. });
  1037. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1038. {
  1039. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1040. .WithMany("MediaStreams")
  1041. .HasForeignKey("ItemId")
  1042. .OnDelete(DeleteBehavior.Cascade)
  1043. .IsRequired();
  1044. b.Navigation("Item");
  1045. });
  1046. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  1047. {
  1048. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1049. .WithMany("Peoples")
  1050. .HasForeignKey("ItemId")
  1051. .OnDelete(DeleteBehavior.Cascade)
  1052. .IsRequired();
  1053. b.HasOne("Jellyfin.Data.Entities.People", "People")
  1054. .WithMany("BaseItems")
  1055. .HasForeignKey("PeopleId")
  1056. .OnDelete(DeleteBehavior.Cascade)
  1057. .IsRequired();
  1058. b.Navigation("Item");
  1059. b.Navigation("People");
  1060. });
  1061. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1062. {
  1063. b.HasOne("Jellyfin.Data.Entities.User", null)
  1064. .WithMany("Permissions")
  1065. .HasForeignKey("UserId")
  1066. .OnDelete(DeleteBehavior.Cascade);
  1067. });
  1068. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1069. {
  1070. b.HasOne("Jellyfin.Data.Entities.User", null)
  1071. .WithMany("Preferences")
  1072. .HasForeignKey("UserId")
  1073. .OnDelete(DeleteBehavior.Cascade);
  1074. });
  1075. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1076. {
  1077. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1078. .WithMany()
  1079. .HasForeignKey("UserId")
  1080. .OnDelete(DeleteBehavior.Cascade)
  1081. .IsRequired();
  1082. b.Navigation("User");
  1083. });
  1084. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1085. {
  1086. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1087. .WithMany("UserData")
  1088. .HasForeignKey("ItemId")
  1089. .OnDelete(DeleteBehavior.Cascade)
  1090. .IsRequired();
  1091. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1092. .WithMany()
  1093. .HasForeignKey("UserId")
  1094. .OnDelete(DeleteBehavior.Cascade)
  1095. .IsRequired();
  1096. b.Navigation("Item");
  1097. b.Navigation("User");
  1098. });
  1099. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1100. {
  1101. b.Navigation("AncestorIds");
  1102. b.Navigation("Chapters");
  1103. b.Navigation("Images");
  1104. b.Navigation("ItemValues");
  1105. b.Navigation("LockedFields");
  1106. b.Navigation("MediaStreams");
  1107. b.Navigation("Peoples");
  1108. b.Navigation("Provider");
  1109. b.Navigation("TrailerTypes");
  1110. b.Navigation("UserData");
  1111. });
  1112. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1113. {
  1114. b.Navigation("HomeSections");
  1115. });
  1116. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  1117. {
  1118. b.Navigation("BaseItemsMap");
  1119. });
  1120. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1121. {
  1122. b.Navigation("BaseItems");
  1123. });
  1124. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1125. {
  1126. b.Navigation("AccessSchedules");
  1127. b.Navigation("DisplayPreferences");
  1128. b.Navigation("ItemDisplayPreferences");
  1129. b.Navigation("Permissions");
  1130. b.Navigation("Preferences");
  1131. b.Navigation("ProfileImage");
  1132. });
  1133. #pragma warning restore 612, 618
  1134. }
  1135. }
  1136. }