20241111135439_AddedCustomDataKeyKey.Designer.cs 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610
  1. // <auto-generated />
  2. using System;
  3. using Jellyfin.Server.Implementations;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Migrations;
  7. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  8. #nullable disable
  9. namespace Jellyfin.Server.Implementations.Migrations
  10. {
  11. [DbContext(typeof(JellyfinDbContext))]
  12. [Migration("20241111135439_AddedCustomDataKeyKey")]
  13. partial class AddedCustomDataKeyKey
  14. {
  15. /// <inheritdoc />
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
  20. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  21. {
  22. b.Property<int>("Id")
  23. .ValueGeneratedOnAdd()
  24. .HasColumnType("INTEGER");
  25. b.Property<int>("DayOfWeek")
  26. .HasColumnType("INTEGER");
  27. b.Property<double>("EndHour")
  28. .HasColumnType("REAL");
  29. b.Property<double>("StartHour")
  30. .HasColumnType("REAL");
  31. b.Property<Guid>("UserId")
  32. .HasColumnType("TEXT");
  33. b.HasKey("Id");
  34. b.HasIndex("UserId");
  35. b.ToTable("AccessSchedules");
  36. });
  37. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  38. {
  39. b.Property<int>("Id")
  40. .ValueGeneratedOnAdd()
  41. .HasColumnType("INTEGER");
  42. b.Property<DateTime>("DateCreated")
  43. .HasColumnType("TEXT");
  44. b.Property<string>("ItemId")
  45. .HasMaxLength(256)
  46. .HasColumnType("TEXT");
  47. b.Property<int>("LogSeverity")
  48. .HasColumnType("INTEGER");
  49. b.Property<string>("Name")
  50. .IsRequired()
  51. .HasMaxLength(512)
  52. .HasColumnType("TEXT");
  53. b.Property<string>("Overview")
  54. .HasMaxLength(512)
  55. .HasColumnType("TEXT");
  56. b.Property<uint>("RowVersion")
  57. .IsConcurrencyToken()
  58. .HasColumnType("INTEGER");
  59. b.Property<string>("ShortOverview")
  60. .HasMaxLength(512)
  61. .HasColumnType("TEXT");
  62. b.Property<string>("Type")
  63. .IsRequired()
  64. .HasMaxLength(256)
  65. .HasColumnType("TEXT");
  66. b.Property<Guid>("UserId")
  67. .HasColumnType("TEXT");
  68. b.HasKey("Id");
  69. b.HasIndex("DateCreated");
  70. b.ToTable("ActivityLogs");
  71. });
  72. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  73. {
  74. b.Property<Guid>("ItemId")
  75. .HasColumnType("TEXT");
  76. b.Property<Guid>("ParentItemId")
  77. .HasColumnType("TEXT");
  78. b.Property<Guid?>("BaseItemEntityId")
  79. .HasColumnType("TEXT");
  80. b.HasKey("ItemId", "ParentItemId");
  81. b.HasIndex("BaseItemEntityId");
  82. b.HasIndex("ParentItemId");
  83. b.ToTable("AncestorIds");
  84. });
  85. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  86. {
  87. b.Property<Guid>("ItemId")
  88. .HasColumnType("TEXT");
  89. b.Property<int>("Index")
  90. .HasColumnType("INTEGER");
  91. b.Property<string>("Codec")
  92. .IsRequired()
  93. .HasColumnType("TEXT");
  94. b.Property<string>("CodecTag")
  95. .HasColumnType("TEXT");
  96. b.Property<string>("Comment")
  97. .HasColumnType("TEXT");
  98. b.Property<string>("Filename")
  99. .HasColumnType("TEXT");
  100. b.Property<string>("MimeType")
  101. .HasColumnType("TEXT");
  102. b.HasKey("ItemId", "Index");
  103. b.ToTable("AttachmentStreamInfos");
  104. });
  105. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  106. {
  107. b.Property<Guid>("Id")
  108. .ValueGeneratedOnAdd()
  109. .HasColumnType("TEXT");
  110. b.Property<string>("Album")
  111. .HasColumnType("TEXT");
  112. b.Property<string>("AlbumArtists")
  113. .HasColumnType("TEXT");
  114. b.Property<string>("Artists")
  115. .HasColumnType("TEXT");
  116. b.Property<int?>("Audio")
  117. .HasColumnType("INTEGER");
  118. b.Property<string>("ChannelId")
  119. .HasColumnType("TEXT");
  120. b.Property<string>("CleanName")
  121. .HasColumnType("TEXT");
  122. b.Property<float?>("CommunityRating")
  123. .HasColumnType("REAL");
  124. b.Property<float?>("CriticRating")
  125. .HasColumnType("REAL");
  126. b.Property<string>("CustomRating")
  127. .HasColumnType("TEXT");
  128. b.Property<string>("Data")
  129. .HasColumnType("TEXT");
  130. b.Property<DateTime?>("DateCreated")
  131. .HasColumnType("TEXT");
  132. b.Property<DateTime?>("DateLastMediaAdded")
  133. .HasColumnType("TEXT");
  134. b.Property<DateTime?>("DateLastRefreshed")
  135. .HasColumnType("TEXT");
  136. b.Property<DateTime?>("DateLastSaved")
  137. .HasColumnType("TEXT");
  138. b.Property<DateTime?>("DateModified")
  139. .HasColumnType("TEXT");
  140. b.Property<DateTime>("EndDate")
  141. .HasColumnType("TEXT");
  142. b.Property<string>("EpisodeTitle")
  143. .HasColumnType("TEXT");
  144. b.Property<string>("ExternalId")
  145. .HasColumnType("TEXT");
  146. b.Property<string>("ExternalSeriesId")
  147. .HasColumnType("TEXT");
  148. b.Property<string>("ExternalServiceId")
  149. .HasColumnType("TEXT");
  150. b.Property<string>("ExtraIds")
  151. .HasColumnType("TEXT");
  152. b.Property<int?>("ExtraType")
  153. .HasColumnType("INTEGER");
  154. b.Property<string>("ForcedSortName")
  155. .HasColumnType("TEXT");
  156. b.Property<string>("Genres")
  157. .HasColumnType("TEXT");
  158. b.Property<int?>("Height")
  159. .HasColumnType("INTEGER");
  160. b.Property<int?>("IndexNumber")
  161. .HasColumnType("INTEGER");
  162. b.Property<int?>("InheritedParentalRatingValue")
  163. .HasColumnType("INTEGER");
  164. b.Property<bool>("IsFolder")
  165. .HasColumnType("INTEGER");
  166. b.Property<bool>("IsInMixedFolder")
  167. .HasColumnType("INTEGER");
  168. b.Property<bool>("IsLocked")
  169. .HasColumnType("INTEGER");
  170. b.Property<bool>("IsMovie")
  171. .HasColumnType("INTEGER");
  172. b.Property<bool>("IsRepeat")
  173. .HasColumnType("INTEGER");
  174. b.Property<bool>("IsSeries")
  175. .HasColumnType("INTEGER");
  176. b.Property<bool>("IsVirtualItem")
  177. .HasColumnType("INTEGER");
  178. b.Property<float?>("LUFS")
  179. .HasColumnType("REAL");
  180. b.Property<string>("MediaType")
  181. .HasColumnType("TEXT");
  182. b.Property<string>("Name")
  183. .HasColumnType("TEXT");
  184. b.Property<float?>("NormalizationGain")
  185. .HasColumnType("REAL");
  186. b.Property<string>("OfficialRating")
  187. .HasColumnType("TEXT");
  188. b.Property<string>("OriginalTitle")
  189. .HasColumnType("TEXT");
  190. b.Property<string>("Overview")
  191. .HasColumnType("TEXT");
  192. b.Property<string>("OwnerId")
  193. .HasColumnType("TEXT");
  194. b.Property<Guid?>("ParentId")
  195. .HasColumnType("TEXT");
  196. b.Property<int?>("ParentIndexNumber")
  197. .HasColumnType("INTEGER");
  198. b.Property<string>("Path")
  199. .HasColumnType("TEXT");
  200. b.Property<string>("PreferredMetadataCountryCode")
  201. .HasColumnType("TEXT");
  202. b.Property<string>("PreferredMetadataLanguage")
  203. .HasColumnType("TEXT");
  204. b.Property<DateTime?>("PremiereDate")
  205. .HasColumnType("TEXT");
  206. b.Property<string>("PresentationUniqueKey")
  207. .HasColumnType("TEXT");
  208. b.Property<string>("PrimaryVersionId")
  209. .HasColumnType("TEXT");
  210. b.Property<string>("ProductionLocations")
  211. .HasColumnType("TEXT");
  212. b.Property<int?>("ProductionYear")
  213. .HasColumnType("INTEGER");
  214. b.Property<long?>("RunTimeTicks")
  215. .HasColumnType("INTEGER");
  216. b.Property<Guid?>("SeasonId")
  217. .HasColumnType("TEXT");
  218. b.Property<string>("SeasonName")
  219. .HasColumnType("TEXT");
  220. b.Property<Guid?>("SeriesId")
  221. .HasColumnType("TEXT");
  222. b.Property<string>("SeriesName")
  223. .HasColumnType("TEXT");
  224. b.Property<string>("SeriesPresentationUniqueKey")
  225. .HasColumnType("TEXT");
  226. b.Property<string>("ShowId")
  227. .HasColumnType("TEXT");
  228. b.Property<long?>("Size")
  229. .HasColumnType("INTEGER");
  230. b.Property<string>("SortName")
  231. .HasColumnType("TEXT");
  232. b.Property<DateTime>("StartDate")
  233. .HasColumnType("TEXT");
  234. b.Property<string>("Studios")
  235. .HasColumnType("TEXT");
  236. b.Property<string>("Tagline")
  237. .HasColumnType("TEXT");
  238. b.Property<string>("Tags")
  239. .HasColumnType("TEXT");
  240. b.Property<Guid?>("TopParentId")
  241. .HasColumnType("TEXT");
  242. b.Property<int?>("TotalBitrate")
  243. .HasColumnType("INTEGER");
  244. b.Property<string>("Type")
  245. .IsRequired()
  246. .HasColumnType("TEXT");
  247. b.Property<string>("UnratedType")
  248. .HasColumnType("TEXT");
  249. b.Property<int?>("Width")
  250. .HasColumnType("INTEGER");
  251. b.HasKey("Id");
  252. b.HasIndex("ParentId");
  253. b.HasIndex("Path");
  254. b.HasIndex("PresentationUniqueKey");
  255. b.HasIndex("TopParentId", "Id");
  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>("Id")
  627. .ValueGeneratedOnAdd()
  628. .HasColumnType("TEXT");
  629. b.Property<string>("Name")
  630. .IsRequired()
  631. .HasColumnType("TEXT");
  632. b.Property<string>("PersonType")
  633. .HasColumnType("TEXT");
  634. b.HasKey("Id");
  635. b.HasIndex("Name");
  636. b.ToTable("Peoples");
  637. });
  638. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  639. {
  640. b.Property<Guid>("ItemId")
  641. .HasColumnType("TEXT");
  642. b.Property<Guid>("PeopleId")
  643. .HasColumnType("TEXT");
  644. b.Property<int?>("ListOrder")
  645. .HasColumnType("INTEGER");
  646. b.Property<string>("Role")
  647. .HasColumnType("TEXT");
  648. b.Property<int?>("SortOrder")
  649. .HasColumnType("INTEGER");
  650. b.HasKey("ItemId", "PeopleId");
  651. b.HasIndex("PeopleId");
  652. b.HasIndex("ItemId", "ListOrder");
  653. b.HasIndex("ItemId", "SortOrder");
  654. b.ToTable("PeopleBaseItemMap");
  655. });
  656. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  657. {
  658. b.Property<int>("Id")
  659. .ValueGeneratedOnAdd()
  660. .HasColumnType("INTEGER");
  661. b.Property<int>("Kind")
  662. .HasColumnType("INTEGER");
  663. b.Property<Guid?>("Permission_Permissions_Guid")
  664. .HasColumnType("TEXT");
  665. b.Property<uint>("RowVersion")
  666. .IsConcurrencyToken()
  667. .HasColumnType("INTEGER");
  668. b.Property<Guid?>("UserId")
  669. .HasColumnType("TEXT");
  670. b.Property<bool>("Value")
  671. .HasColumnType("INTEGER");
  672. b.HasKey("Id");
  673. b.HasIndex("UserId", "Kind")
  674. .IsUnique()
  675. .HasFilter("[UserId] IS NOT NULL");
  676. b.ToTable("Permissions");
  677. });
  678. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  679. {
  680. b.Property<int>("Id")
  681. .ValueGeneratedOnAdd()
  682. .HasColumnType("INTEGER");
  683. b.Property<int>("Kind")
  684. .HasColumnType("INTEGER");
  685. b.Property<Guid?>("Preference_Preferences_Guid")
  686. .HasColumnType("TEXT");
  687. b.Property<uint>("RowVersion")
  688. .IsConcurrencyToken()
  689. .HasColumnType("INTEGER");
  690. b.Property<Guid?>("UserId")
  691. .HasColumnType("TEXT");
  692. b.Property<string>("Value")
  693. .IsRequired()
  694. .HasMaxLength(65535)
  695. .HasColumnType("TEXT");
  696. b.HasKey("Id");
  697. b.HasIndex("UserId", "Kind")
  698. .IsUnique()
  699. .HasFilter("[UserId] IS NOT NULL");
  700. b.ToTable("Preferences");
  701. });
  702. modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
  703. {
  704. b.Property<int>("Id")
  705. .ValueGeneratedOnAdd()
  706. .HasColumnType("INTEGER");
  707. b.Property<string>("AccessToken")
  708. .IsRequired()
  709. .HasColumnType("TEXT");
  710. b.Property<DateTime>("DateCreated")
  711. .HasColumnType("TEXT");
  712. b.Property<DateTime>("DateLastActivity")
  713. .HasColumnType("TEXT");
  714. b.Property<string>("Name")
  715. .IsRequired()
  716. .HasMaxLength(64)
  717. .HasColumnType("TEXT");
  718. b.HasKey("Id");
  719. b.HasIndex("AccessToken")
  720. .IsUnique();
  721. b.ToTable("ApiKeys");
  722. });
  723. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  724. {
  725. b.Property<int>("Id")
  726. .ValueGeneratedOnAdd()
  727. .HasColumnType("INTEGER");
  728. b.Property<string>("AccessToken")
  729. .IsRequired()
  730. .HasColumnType("TEXT");
  731. b.Property<string>("AppName")
  732. .IsRequired()
  733. .HasMaxLength(64)
  734. .HasColumnType("TEXT");
  735. b.Property<string>("AppVersion")
  736. .IsRequired()
  737. .HasMaxLength(32)
  738. .HasColumnType("TEXT");
  739. b.Property<DateTime>("DateCreated")
  740. .HasColumnType("TEXT");
  741. b.Property<DateTime>("DateLastActivity")
  742. .HasColumnType("TEXT");
  743. b.Property<DateTime>("DateModified")
  744. .HasColumnType("TEXT");
  745. b.Property<string>("DeviceId")
  746. .IsRequired()
  747. .HasMaxLength(256)
  748. .HasColumnType("TEXT");
  749. b.Property<string>("DeviceName")
  750. .IsRequired()
  751. .HasMaxLength(64)
  752. .HasColumnType("TEXT");
  753. b.Property<bool>("IsActive")
  754. .HasColumnType("INTEGER");
  755. b.Property<Guid>("UserId")
  756. .HasColumnType("TEXT");
  757. b.HasKey("Id");
  758. b.HasIndex("DeviceId");
  759. b.HasIndex("AccessToken", "DateLastActivity");
  760. b.HasIndex("DeviceId", "DateLastActivity");
  761. b.HasIndex("UserId", "DeviceId");
  762. b.ToTable("Devices");
  763. });
  764. modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
  765. {
  766. b.Property<int>("Id")
  767. .ValueGeneratedOnAdd()
  768. .HasColumnType("INTEGER");
  769. b.Property<string>("CustomName")
  770. .HasColumnType("TEXT");
  771. b.Property<string>("DeviceId")
  772. .IsRequired()
  773. .HasColumnType("TEXT");
  774. b.HasKey("Id");
  775. b.HasIndex("DeviceId")
  776. .IsUnique();
  777. b.ToTable("DeviceOptions");
  778. });
  779. modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
  780. {
  781. b.Property<Guid>("ItemId")
  782. .HasColumnType("TEXT");
  783. b.Property<int>("Width")
  784. .HasColumnType("INTEGER");
  785. b.Property<int>("Bandwidth")
  786. .HasColumnType("INTEGER");
  787. b.Property<int>("Height")
  788. .HasColumnType("INTEGER");
  789. b.Property<int>("Interval")
  790. .HasColumnType("INTEGER");
  791. b.Property<int>("ThumbnailCount")
  792. .HasColumnType("INTEGER");
  793. b.Property<int>("TileHeight")
  794. .HasColumnType("INTEGER");
  795. b.Property<int>("TileWidth")
  796. .HasColumnType("INTEGER");
  797. b.HasKey("ItemId", "Width");
  798. b.ToTable("TrickplayInfos");
  799. });
  800. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  801. {
  802. b.Property<Guid>("Id")
  803. .ValueGeneratedOnAdd()
  804. .HasColumnType("TEXT");
  805. b.Property<string>("AudioLanguagePreference")
  806. .HasMaxLength(255)
  807. .HasColumnType("TEXT");
  808. b.Property<string>("AuthenticationProviderId")
  809. .IsRequired()
  810. .HasMaxLength(255)
  811. .HasColumnType("TEXT");
  812. b.Property<string>("CastReceiverId")
  813. .HasMaxLength(32)
  814. .HasColumnType("TEXT");
  815. b.Property<bool>("DisplayCollectionsView")
  816. .HasColumnType("INTEGER");
  817. b.Property<bool>("DisplayMissingEpisodes")
  818. .HasColumnType("INTEGER");
  819. b.Property<bool>("EnableAutoLogin")
  820. .HasColumnType("INTEGER");
  821. b.Property<bool>("EnableLocalPassword")
  822. .HasColumnType("INTEGER");
  823. b.Property<bool>("EnableNextEpisodeAutoPlay")
  824. .HasColumnType("INTEGER");
  825. b.Property<bool>("EnableUserPreferenceAccess")
  826. .HasColumnType("INTEGER");
  827. b.Property<bool>("HidePlayedInLatest")
  828. .HasColumnType("INTEGER");
  829. b.Property<long>("InternalId")
  830. .HasColumnType("INTEGER");
  831. b.Property<int>("InvalidLoginAttemptCount")
  832. .HasColumnType("INTEGER");
  833. b.Property<DateTime?>("LastActivityDate")
  834. .HasColumnType("TEXT");
  835. b.Property<DateTime?>("LastLoginDate")
  836. .HasColumnType("TEXT");
  837. b.Property<int?>("LoginAttemptsBeforeLockout")
  838. .HasColumnType("INTEGER");
  839. b.Property<int>("MaxActiveSessions")
  840. .HasColumnType("INTEGER");
  841. b.Property<int?>("MaxParentalAgeRating")
  842. .HasColumnType("INTEGER");
  843. b.Property<bool>("MustUpdatePassword")
  844. .HasColumnType("INTEGER");
  845. b.Property<string>("Password")
  846. .HasMaxLength(65535)
  847. .HasColumnType("TEXT");
  848. b.Property<string>("PasswordResetProviderId")
  849. .IsRequired()
  850. .HasMaxLength(255)
  851. .HasColumnType("TEXT");
  852. b.Property<bool>("PlayDefaultAudioTrack")
  853. .HasColumnType("INTEGER");
  854. b.Property<bool>("RememberAudioSelections")
  855. .HasColumnType("INTEGER");
  856. b.Property<bool>("RememberSubtitleSelections")
  857. .HasColumnType("INTEGER");
  858. b.Property<int?>("RemoteClientBitrateLimit")
  859. .HasColumnType("INTEGER");
  860. b.Property<uint>("RowVersion")
  861. .IsConcurrencyToken()
  862. .HasColumnType("INTEGER");
  863. b.Property<string>("SubtitleLanguagePreference")
  864. .HasMaxLength(255)
  865. .HasColumnType("TEXT");
  866. b.Property<int>("SubtitleMode")
  867. .HasColumnType("INTEGER");
  868. b.Property<int>("SyncPlayAccess")
  869. .HasColumnType("INTEGER");
  870. b.Property<string>("Username")
  871. .IsRequired()
  872. .HasMaxLength(255)
  873. .HasColumnType("TEXT")
  874. .UseCollation("NOCASE");
  875. b.HasKey("Id");
  876. b.HasIndex("Username")
  877. .IsUnique();
  878. b.ToTable("Users");
  879. });
  880. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  881. {
  882. b.Property<Guid>("ItemId")
  883. .HasColumnType("TEXT");
  884. b.Property<Guid>("UserId")
  885. .HasColumnType("TEXT");
  886. b.Property<string>("CustomDataKey")
  887. .HasColumnType("TEXT");
  888. b.Property<int?>("AudioStreamIndex")
  889. .HasColumnType("INTEGER");
  890. b.Property<bool>("IsFavorite")
  891. .HasColumnType("INTEGER");
  892. b.Property<DateTime?>("LastPlayedDate")
  893. .HasColumnType("TEXT");
  894. b.Property<bool?>("Likes")
  895. .HasColumnType("INTEGER");
  896. b.Property<int>("PlayCount")
  897. .HasColumnType("INTEGER");
  898. b.Property<long>("PlaybackPositionTicks")
  899. .HasColumnType("INTEGER");
  900. b.Property<bool>("Played")
  901. .HasColumnType("INTEGER");
  902. b.Property<double?>("Rating")
  903. .HasColumnType("REAL");
  904. b.Property<int?>("SubtitleStreamIndex")
  905. .HasColumnType("INTEGER");
  906. b.HasKey("ItemId", "UserId", "CustomDataKey");
  907. b.HasIndex("UserId");
  908. b.HasIndex("ItemId", "UserId", "IsFavorite");
  909. b.HasIndex("ItemId", "UserId", "LastPlayedDate");
  910. b.HasIndex("ItemId", "UserId", "PlaybackPositionTicks");
  911. b.HasIndex("ItemId", "UserId", "Played");
  912. b.ToTable("UserData");
  913. });
  914. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  915. {
  916. b.HasOne("Jellyfin.Data.Entities.User", null)
  917. .WithMany("AccessSchedules")
  918. .HasForeignKey("UserId")
  919. .OnDelete(DeleteBehavior.Cascade)
  920. .IsRequired();
  921. });
  922. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  923. {
  924. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  925. .WithMany("AncestorIds")
  926. .HasForeignKey("BaseItemEntityId");
  927. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  928. .WithMany()
  929. .HasForeignKey("ItemId")
  930. .OnDelete(DeleteBehavior.Cascade)
  931. .IsRequired();
  932. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
  933. .WithMany()
  934. .HasForeignKey("ParentItemId")
  935. .OnDelete(DeleteBehavior.Cascade)
  936. .IsRequired();
  937. b.Navigation("Item");
  938. b.Navigation("ParentItem");
  939. });
  940. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  941. {
  942. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  943. .WithMany()
  944. .HasForeignKey("ItemId")
  945. .OnDelete(DeleteBehavior.Cascade)
  946. .IsRequired();
  947. b.Navigation("Item");
  948. });
  949. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  950. {
  951. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  952. .WithMany("Images")
  953. .HasForeignKey("ItemId")
  954. .OnDelete(DeleteBehavior.Cascade)
  955. .IsRequired();
  956. b.Navigation("Item");
  957. });
  958. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  959. {
  960. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  961. .WithMany("LockedFields")
  962. .HasForeignKey("ItemId")
  963. .OnDelete(DeleteBehavior.Cascade)
  964. .IsRequired();
  965. b.Navigation("Item");
  966. });
  967. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  968. {
  969. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  970. .WithMany("Provider")
  971. .HasForeignKey("ItemId")
  972. .OnDelete(DeleteBehavior.Cascade)
  973. .IsRequired();
  974. b.Navigation("Item");
  975. });
  976. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  977. {
  978. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  979. .WithMany("TrailerTypes")
  980. .HasForeignKey("ItemId")
  981. .OnDelete(DeleteBehavior.Cascade)
  982. .IsRequired();
  983. b.Navigation("Item");
  984. });
  985. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  986. {
  987. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  988. .WithMany("Chapters")
  989. .HasForeignKey("ItemId")
  990. .OnDelete(DeleteBehavior.Cascade)
  991. .IsRequired();
  992. b.Navigation("Item");
  993. });
  994. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  995. {
  996. b.HasOne("Jellyfin.Data.Entities.User", null)
  997. .WithMany("DisplayPreferences")
  998. .HasForeignKey("UserId")
  999. .OnDelete(DeleteBehavior.Cascade)
  1000. .IsRequired();
  1001. });
  1002. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  1003. {
  1004. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  1005. .WithMany("HomeSections")
  1006. .HasForeignKey("DisplayPreferencesId")
  1007. .OnDelete(DeleteBehavior.Cascade)
  1008. .IsRequired();
  1009. });
  1010. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  1011. {
  1012. b.HasOne("Jellyfin.Data.Entities.User", null)
  1013. .WithOne("ProfileImage")
  1014. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  1015. .OnDelete(DeleteBehavior.Cascade);
  1016. });
  1017. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  1018. {
  1019. b.HasOne("Jellyfin.Data.Entities.User", null)
  1020. .WithMany("ItemDisplayPreferences")
  1021. .HasForeignKey("UserId")
  1022. .OnDelete(DeleteBehavior.Cascade)
  1023. .IsRequired();
  1024. });
  1025. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  1026. {
  1027. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1028. .WithMany("ItemValues")
  1029. .HasForeignKey("ItemId")
  1030. .OnDelete(DeleteBehavior.Cascade)
  1031. .IsRequired();
  1032. b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
  1033. .WithMany("BaseItemsMap")
  1034. .HasForeignKey("ItemValueId")
  1035. .OnDelete(DeleteBehavior.Cascade)
  1036. .IsRequired();
  1037. b.Navigation("Item");
  1038. b.Navigation("ItemValue");
  1039. });
  1040. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1041. {
  1042. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1043. .WithMany("MediaStreams")
  1044. .HasForeignKey("ItemId")
  1045. .OnDelete(DeleteBehavior.Cascade)
  1046. .IsRequired();
  1047. b.Navigation("Item");
  1048. });
  1049. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  1050. {
  1051. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1052. .WithMany("Peoples")
  1053. .HasForeignKey("ItemId")
  1054. .OnDelete(DeleteBehavior.Cascade)
  1055. .IsRequired();
  1056. b.HasOne("Jellyfin.Data.Entities.People", "People")
  1057. .WithMany("BaseItems")
  1058. .HasForeignKey("PeopleId")
  1059. .OnDelete(DeleteBehavior.Cascade)
  1060. .IsRequired();
  1061. b.Navigation("Item");
  1062. b.Navigation("People");
  1063. });
  1064. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1065. {
  1066. b.HasOne("Jellyfin.Data.Entities.User", null)
  1067. .WithMany("Permissions")
  1068. .HasForeignKey("UserId")
  1069. .OnDelete(DeleteBehavior.Cascade);
  1070. });
  1071. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1072. {
  1073. b.HasOne("Jellyfin.Data.Entities.User", null)
  1074. .WithMany("Preferences")
  1075. .HasForeignKey("UserId")
  1076. .OnDelete(DeleteBehavior.Cascade);
  1077. });
  1078. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1079. {
  1080. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1081. .WithMany()
  1082. .HasForeignKey("UserId")
  1083. .OnDelete(DeleteBehavior.Cascade)
  1084. .IsRequired();
  1085. b.Navigation("User");
  1086. });
  1087. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1088. {
  1089. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1090. .WithMany("UserData")
  1091. .HasForeignKey("ItemId")
  1092. .OnDelete(DeleteBehavior.Cascade)
  1093. .IsRequired();
  1094. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1095. .WithMany()
  1096. .HasForeignKey("UserId")
  1097. .OnDelete(DeleteBehavior.Cascade)
  1098. .IsRequired();
  1099. b.Navigation("Item");
  1100. b.Navigation("User");
  1101. });
  1102. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1103. {
  1104. b.Navigation("AncestorIds");
  1105. b.Navigation("Chapters");
  1106. b.Navigation("Images");
  1107. b.Navigation("ItemValues");
  1108. b.Navigation("LockedFields");
  1109. b.Navigation("MediaStreams");
  1110. b.Navigation("Peoples");
  1111. b.Navigation("Provider");
  1112. b.Navigation("TrailerTypes");
  1113. b.Navigation("UserData");
  1114. });
  1115. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1116. {
  1117. b.Navigation("HomeSections");
  1118. });
  1119. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  1120. {
  1121. b.Navigation("BaseItemsMap");
  1122. });
  1123. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1124. {
  1125. b.Navigation("BaseItems");
  1126. });
  1127. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1128. {
  1129. b.Navigation("AccessSchedules");
  1130. b.Navigation("DisplayPreferences");
  1131. b.Navigation("ItemDisplayPreferences");
  1132. b.Navigation("Permissions");
  1133. b.Navigation("Preferences");
  1134. b.Navigation("ProfileImage");
  1135. });
  1136. #pragma warning restore 612, 618
  1137. }
  1138. }
  1139. }