JellyfinDbModelSnapshot.cs 53 KB

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