20241011100757_LibraryPeopleRoleMigration.Designer.cs 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613
  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("20241011100757_LibraryPeopleRoleMigration")]
  13. partial class LibraryPeopleRoleMigration
  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<string>("UserDataKey")
  250. .HasColumnType("TEXT");
  251. b.Property<int?>("Width")
  252. .HasColumnType("INTEGER");
  253. b.HasKey("Id");
  254. b.HasIndex("ParentId");
  255. b.HasIndex("Path");
  256. b.HasIndex("PresentationUniqueKey");
  257. b.HasIndex("TopParentId", "Id");
  258. b.HasIndex("UserDataKey", "Type");
  259. b.HasIndex("Type", "TopParentId", "Id");
  260. b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
  261. b.HasIndex("Type", "TopParentId", "StartDate");
  262. b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
  263. b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
  264. b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
  265. b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
  266. b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  267. b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  268. b.ToTable("BaseItems");
  269. });
  270. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  271. {
  272. b.Property<Guid>("Id")
  273. .ValueGeneratedOnAdd()
  274. .HasColumnType("TEXT");
  275. b.Property<byte[]>("Blurhash")
  276. .HasColumnType("BLOB");
  277. b.Property<DateTime>("DateModified")
  278. .HasColumnType("TEXT");
  279. b.Property<int>("Height")
  280. .HasColumnType("INTEGER");
  281. b.Property<int>("ImageType")
  282. .HasColumnType("INTEGER");
  283. b.Property<Guid>("ItemId")
  284. .HasColumnType("TEXT");
  285. b.Property<string>("Path")
  286. .IsRequired()
  287. .HasColumnType("TEXT");
  288. b.Property<int>("Width")
  289. .HasColumnType("INTEGER");
  290. b.HasKey("Id");
  291. b.HasIndex("ItemId");
  292. b.ToTable("BaseItemImageInfos");
  293. });
  294. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  295. {
  296. b.Property<int>("Id")
  297. .HasColumnType("INTEGER");
  298. b.Property<Guid>("ItemId")
  299. .HasColumnType("TEXT");
  300. b.HasKey("Id", "ItemId");
  301. b.HasIndex("ItemId");
  302. b.ToTable("BaseItemMetadataFields");
  303. });
  304. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  305. {
  306. b.Property<Guid>("ItemId")
  307. .HasColumnType("TEXT");
  308. b.Property<string>("ProviderId")
  309. .HasColumnType("TEXT");
  310. b.Property<string>("ProviderValue")
  311. .IsRequired()
  312. .HasColumnType("TEXT");
  313. b.HasKey("ItemId", "ProviderId");
  314. b.HasIndex("ProviderId", "ProviderValue", "ItemId");
  315. b.ToTable("BaseItemProviders");
  316. });
  317. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  318. {
  319. b.Property<int>("Id")
  320. .HasColumnType("INTEGER");
  321. b.Property<Guid>("ItemId")
  322. .HasColumnType("TEXT");
  323. b.HasKey("Id", "ItemId");
  324. b.HasIndex("ItemId");
  325. b.ToTable("BaseItemTrailerTypes");
  326. });
  327. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  328. {
  329. b.Property<Guid>("ItemId")
  330. .HasColumnType("TEXT");
  331. b.Property<int>("ChapterIndex")
  332. .HasColumnType("INTEGER");
  333. b.Property<DateTime?>("ImageDateModified")
  334. .HasColumnType("TEXT");
  335. b.Property<string>("ImagePath")
  336. .HasColumnType("TEXT");
  337. b.Property<string>("Name")
  338. .HasColumnType("TEXT");
  339. b.Property<long>("StartPositionTicks")
  340. .HasColumnType("INTEGER");
  341. b.HasKey("ItemId", "ChapterIndex");
  342. b.ToTable("Chapters");
  343. });
  344. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  345. {
  346. b.Property<int>("Id")
  347. .ValueGeneratedOnAdd()
  348. .HasColumnType("INTEGER");
  349. b.Property<string>("Client")
  350. .IsRequired()
  351. .HasMaxLength(32)
  352. .HasColumnType("TEXT");
  353. b.Property<Guid>("ItemId")
  354. .HasColumnType("TEXT");
  355. b.Property<string>("Key")
  356. .IsRequired()
  357. .HasColumnType("TEXT");
  358. b.Property<Guid>("UserId")
  359. .HasColumnType("TEXT");
  360. b.Property<string>("Value")
  361. .HasColumnType("TEXT");
  362. b.HasKey("Id");
  363. b.HasIndex("UserId", "ItemId", "Client", "Key")
  364. .IsUnique();
  365. b.ToTable("CustomItemDisplayPreferences");
  366. });
  367. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  368. {
  369. b.Property<int>("Id")
  370. .ValueGeneratedOnAdd()
  371. .HasColumnType("INTEGER");
  372. b.Property<int>("ChromecastVersion")
  373. .HasColumnType("INTEGER");
  374. b.Property<string>("Client")
  375. .IsRequired()
  376. .HasMaxLength(32)
  377. .HasColumnType("TEXT");
  378. b.Property<string>("DashboardTheme")
  379. .HasMaxLength(32)
  380. .HasColumnType("TEXT");
  381. b.Property<bool>("EnableNextVideoInfoOverlay")
  382. .HasColumnType("INTEGER");
  383. b.Property<int?>("IndexBy")
  384. .HasColumnType("INTEGER");
  385. b.Property<Guid>("ItemId")
  386. .HasColumnType("TEXT");
  387. b.Property<int>("ScrollDirection")
  388. .HasColumnType("INTEGER");
  389. b.Property<bool>("ShowBackdrop")
  390. .HasColumnType("INTEGER");
  391. b.Property<bool>("ShowSidebar")
  392. .HasColumnType("INTEGER");
  393. b.Property<int>("SkipBackwardLength")
  394. .HasColumnType("INTEGER");
  395. b.Property<int>("SkipForwardLength")
  396. .HasColumnType("INTEGER");
  397. b.Property<string>("TvHome")
  398. .HasMaxLength(32)
  399. .HasColumnType("TEXT");
  400. b.Property<Guid>("UserId")
  401. .HasColumnType("TEXT");
  402. b.HasKey("Id");
  403. b.HasIndex("UserId", "ItemId", "Client")
  404. .IsUnique();
  405. b.ToTable("DisplayPreferences");
  406. });
  407. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  408. {
  409. b.Property<int>("Id")
  410. .ValueGeneratedOnAdd()
  411. .HasColumnType("INTEGER");
  412. b.Property<int>("DisplayPreferencesId")
  413. .HasColumnType("INTEGER");
  414. b.Property<int>("Order")
  415. .HasColumnType("INTEGER");
  416. b.Property<int>("Type")
  417. .HasColumnType("INTEGER");
  418. b.HasKey("Id");
  419. b.HasIndex("DisplayPreferencesId");
  420. b.ToTable("HomeSection");
  421. });
  422. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  423. {
  424. b.Property<int>("Id")
  425. .ValueGeneratedOnAdd()
  426. .HasColumnType("INTEGER");
  427. b.Property<DateTime>("LastModified")
  428. .HasColumnType("TEXT");
  429. b.Property<string>("Path")
  430. .IsRequired()
  431. .HasMaxLength(512)
  432. .HasColumnType("TEXT");
  433. b.Property<Guid?>("UserId")
  434. .HasColumnType("TEXT");
  435. b.HasKey("Id");
  436. b.HasIndex("UserId")
  437. .IsUnique();
  438. b.ToTable("ImageInfos");
  439. });
  440. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  441. {
  442. b.Property<int>("Id")
  443. .ValueGeneratedOnAdd()
  444. .HasColumnType("INTEGER");
  445. b.Property<string>("Client")
  446. .IsRequired()
  447. .HasMaxLength(32)
  448. .HasColumnType("TEXT");
  449. b.Property<int?>("IndexBy")
  450. .HasColumnType("INTEGER");
  451. b.Property<Guid>("ItemId")
  452. .HasColumnType("TEXT");
  453. b.Property<bool>("RememberIndexing")
  454. .HasColumnType("INTEGER");
  455. b.Property<bool>("RememberSorting")
  456. .HasColumnType("INTEGER");
  457. b.Property<string>("SortBy")
  458. .IsRequired()
  459. .HasMaxLength(64)
  460. .HasColumnType("TEXT");
  461. b.Property<int>("SortOrder")
  462. .HasColumnType("INTEGER");
  463. b.Property<Guid>("UserId")
  464. .HasColumnType("TEXT");
  465. b.Property<int>("ViewType")
  466. .HasColumnType("INTEGER");
  467. b.HasKey("Id");
  468. b.HasIndex("UserId");
  469. b.ToTable("ItemDisplayPreferences");
  470. });
  471. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  472. {
  473. b.Property<Guid>("ItemValueId")
  474. .ValueGeneratedOnAdd()
  475. .HasColumnType("TEXT");
  476. b.Property<string>("CleanValue")
  477. .IsRequired()
  478. .HasColumnType("TEXT");
  479. b.Property<int>("Type")
  480. .HasColumnType("INTEGER");
  481. b.Property<string>("Value")
  482. .IsRequired()
  483. .HasColumnType("TEXT");
  484. b.HasKey("ItemValueId");
  485. b.HasIndex("Type", "CleanValue");
  486. b.ToTable("ItemValues");
  487. });
  488. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  489. {
  490. b.Property<Guid>("ItemValueId")
  491. .HasColumnType("TEXT");
  492. b.Property<Guid>("ItemId")
  493. .HasColumnType("TEXT");
  494. b.HasKey("ItemValueId", "ItemId");
  495. b.HasIndex("ItemId");
  496. b.ToTable("ItemValuesMap");
  497. });
  498. modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
  499. {
  500. b.Property<Guid>("Id")
  501. .ValueGeneratedOnAdd()
  502. .HasColumnType("TEXT");
  503. b.Property<long>("EndTicks")
  504. .HasColumnType("INTEGER");
  505. b.Property<Guid>("ItemId")
  506. .HasColumnType("TEXT");
  507. b.Property<string>("SegmentProviderId")
  508. .IsRequired()
  509. .HasColumnType("TEXT");
  510. b.Property<long>("StartTicks")
  511. .HasColumnType("INTEGER");
  512. b.Property<int>("Type")
  513. .HasColumnType("INTEGER");
  514. b.HasKey("Id");
  515. b.ToTable("MediaSegments");
  516. });
  517. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  518. {
  519. b.Property<Guid>("ItemId")
  520. .HasColumnType("TEXT");
  521. b.Property<int>("StreamIndex")
  522. .HasColumnType("INTEGER");
  523. b.Property<string>("AspectRatio")
  524. .HasColumnType("TEXT");
  525. b.Property<float>("AverageFrameRate")
  526. .HasColumnType("REAL");
  527. b.Property<int>("BitDepth")
  528. .HasColumnType("INTEGER");
  529. b.Property<int>("BitRate")
  530. .HasColumnType("INTEGER");
  531. b.Property<int>("BlPresentFlag")
  532. .HasColumnType("INTEGER");
  533. b.Property<string>("ChannelLayout")
  534. .HasColumnType("TEXT");
  535. b.Property<int>("Channels")
  536. .HasColumnType("INTEGER");
  537. b.Property<string>("Codec")
  538. .HasColumnType("TEXT");
  539. b.Property<string>("CodecTag")
  540. .IsRequired()
  541. .HasColumnType("TEXT");
  542. b.Property<string>("CodecTimeBase")
  543. .IsRequired()
  544. .HasColumnType("TEXT");
  545. b.Property<string>("ColorPrimaries")
  546. .IsRequired()
  547. .HasColumnType("TEXT");
  548. b.Property<string>("ColorSpace")
  549. .IsRequired()
  550. .HasColumnType("TEXT");
  551. b.Property<string>("ColorTransfer")
  552. .IsRequired()
  553. .HasColumnType("TEXT");
  554. b.Property<string>("Comment")
  555. .IsRequired()
  556. .HasColumnType("TEXT");
  557. b.Property<int>("DvBlSignalCompatibilityId")
  558. .HasColumnType("INTEGER");
  559. b.Property<int>("DvLevel")
  560. .HasColumnType("INTEGER");
  561. b.Property<int>("DvProfile")
  562. .HasColumnType("INTEGER");
  563. b.Property<int>("DvVersionMajor")
  564. .HasColumnType("INTEGER");
  565. b.Property<int>("DvVersionMinor")
  566. .HasColumnType("INTEGER");
  567. b.Property<int>("ElPresentFlag")
  568. .HasColumnType("INTEGER");
  569. b.Property<int>("Height")
  570. .HasColumnType("INTEGER");
  571. b.Property<bool>("IsAnamorphic")
  572. .HasColumnType("INTEGER");
  573. b.Property<bool>("IsAvc")
  574. .HasColumnType("INTEGER");
  575. b.Property<bool>("IsDefault")
  576. .HasColumnType("INTEGER");
  577. b.Property<bool>("IsExternal")
  578. .HasColumnType("INTEGER");
  579. b.Property<bool>("IsForced")
  580. .HasColumnType("INTEGER");
  581. b.Property<bool>("IsHearingImpaired")
  582. .HasColumnType("INTEGER");
  583. b.Property<bool>("IsInterlaced")
  584. .HasColumnType("INTEGER");
  585. b.Property<string>("KeyFrames")
  586. .HasColumnType("TEXT");
  587. b.Property<string>("Language")
  588. .HasColumnType("TEXT");
  589. b.Property<float>("Level")
  590. .HasColumnType("REAL");
  591. b.Property<string>("NalLengthSize")
  592. .IsRequired()
  593. .HasColumnType("TEXT");
  594. b.Property<string>("Path")
  595. .HasColumnType("TEXT");
  596. b.Property<string>("PixelFormat")
  597. .HasColumnType("TEXT");
  598. b.Property<string>("Profile")
  599. .HasColumnType("TEXT");
  600. b.Property<float>("RealFrameRate")
  601. .HasColumnType("REAL");
  602. b.Property<int>("RefFrames")
  603. .HasColumnType("INTEGER");
  604. b.Property<int>("Rotation")
  605. .HasColumnType("INTEGER");
  606. b.Property<int>("RpuPresentFlag")
  607. .HasColumnType("INTEGER");
  608. b.Property<int>("SampleRate")
  609. .HasColumnType("INTEGER");
  610. b.Property<int?>("StreamType")
  611. .HasColumnType("INTEGER");
  612. b.Property<string>("TimeBase")
  613. .IsRequired()
  614. .HasColumnType("TEXT");
  615. b.Property<string>("Title")
  616. .IsRequired()
  617. .HasColumnType("TEXT");
  618. b.Property<int>("Width")
  619. .HasColumnType("INTEGER");
  620. b.HasKey("ItemId", "StreamIndex");
  621. b.HasIndex("StreamIndex");
  622. b.HasIndex("StreamType");
  623. b.HasIndex("StreamIndex", "StreamType");
  624. b.HasIndex("StreamIndex", "StreamType", "Language");
  625. b.ToTable("MediaStreamInfos");
  626. });
  627. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  628. {
  629. b.Property<Guid>("Id")
  630. .ValueGeneratedOnAdd()
  631. .HasColumnType("TEXT");
  632. b.Property<string>("Name")
  633. .IsRequired()
  634. .HasColumnType("TEXT");
  635. b.Property<string>("PersonType")
  636. .HasColumnType("TEXT");
  637. b.HasKey("Id");
  638. b.HasIndex("Name");
  639. b.ToTable("Peoples");
  640. });
  641. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  642. {
  643. b.Property<Guid>("ItemId")
  644. .HasColumnType("TEXT");
  645. b.Property<Guid>("PeopleId")
  646. .HasColumnType("TEXT");
  647. b.Property<int?>("ListOrder")
  648. .HasColumnType("INTEGER");
  649. b.Property<string>("Role")
  650. .HasColumnType("TEXT");
  651. b.Property<int?>("SortOrder")
  652. .HasColumnType("INTEGER");
  653. b.HasKey("ItemId", "PeopleId");
  654. b.HasIndex("PeopleId");
  655. b.HasIndex("ItemId", "ListOrder");
  656. b.HasIndex("ItemId", "SortOrder");
  657. b.ToTable("PeopleBaseItemMap");
  658. });
  659. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  660. {
  661. b.Property<int>("Id")
  662. .ValueGeneratedOnAdd()
  663. .HasColumnType("INTEGER");
  664. b.Property<int>("Kind")
  665. .HasColumnType("INTEGER");
  666. b.Property<Guid?>("Permission_Permissions_Guid")
  667. .HasColumnType("TEXT");
  668. b.Property<uint>("RowVersion")
  669. .IsConcurrencyToken()
  670. .HasColumnType("INTEGER");
  671. b.Property<Guid?>("UserId")
  672. .HasColumnType("TEXT");
  673. b.Property<bool>("Value")
  674. .HasColumnType("INTEGER");
  675. b.HasKey("Id");
  676. b.HasIndex("UserId", "Kind")
  677. .IsUnique()
  678. .HasFilter("[UserId] IS NOT NULL");
  679. b.ToTable("Permissions");
  680. });
  681. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  682. {
  683. b.Property<int>("Id")
  684. .ValueGeneratedOnAdd()
  685. .HasColumnType("INTEGER");
  686. b.Property<int>("Kind")
  687. .HasColumnType("INTEGER");
  688. b.Property<Guid?>("Preference_Preferences_Guid")
  689. .HasColumnType("TEXT");
  690. b.Property<uint>("RowVersion")
  691. .IsConcurrencyToken()
  692. .HasColumnType("INTEGER");
  693. b.Property<Guid?>("UserId")
  694. .HasColumnType("TEXT");
  695. b.Property<string>("Value")
  696. .IsRequired()
  697. .HasMaxLength(65535)
  698. .HasColumnType("TEXT");
  699. b.HasKey("Id");
  700. b.HasIndex("UserId", "Kind")
  701. .IsUnique()
  702. .HasFilter("[UserId] IS NOT NULL");
  703. b.ToTable("Preferences");
  704. });
  705. modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
  706. {
  707. b.Property<int>("Id")
  708. .ValueGeneratedOnAdd()
  709. .HasColumnType("INTEGER");
  710. b.Property<string>("AccessToken")
  711. .IsRequired()
  712. .HasColumnType("TEXT");
  713. b.Property<DateTime>("DateCreated")
  714. .HasColumnType("TEXT");
  715. b.Property<DateTime>("DateLastActivity")
  716. .HasColumnType("TEXT");
  717. b.Property<string>("Name")
  718. .IsRequired()
  719. .HasMaxLength(64)
  720. .HasColumnType("TEXT");
  721. b.HasKey("Id");
  722. b.HasIndex("AccessToken")
  723. .IsUnique();
  724. b.ToTable("ApiKeys");
  725. });
  726. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  727. {
  728. b.Property<int>("Id")
  729. .ValueGeneratedOnAdd()
  730. .HasColumnType("INTEGER");
  731. b.Property<string>("AccessToken")
  732. .IsRequired()
  733. .HasColumnType("TEXT");
  734. b.Property<string>("AppName")
  735. .IsRequired()
  736. .HasMaxLength(64)
  737. .HasColumnType("TEXT");
  738. b.Property<string>("AppVersion")
  739. .IsRequired()
  740. .HasMaxLength(32)
  741. .HasColumnType("TEXT");
  742. b.Property<DateTime>("DateCreated")
  743. .HasColumnType("TEXT");
  744. b.Property<DateTime>("DateLastActivity")
  745. .HasColumnType("TEXT");
  746. b.Property<DateTime>("DateModified")
  747. .HasColumnType("TEXT");
  748. b.Property<string>("DeviceId")
  749. .IsRequired()
  750. .HasMaxLength(256)
  751. .HasColumnType("TEXT");
  752. b.Property<string>("DeviceName")
  753. .IsRequired()
  754. .HasMaxLength(64)
  755. .HasColumnType("TEXT");
  756. b.Property<bool>("IsActive")
  757. .HasColumnType("INTEGER");
  758. b.Property<Guid>("UserId")
  759. .HasColumnType("TEXT");
  760. b.HasKey("Id");
  761. b.HasIndex("DeviceId");
  762. b.HasIndex("AccessToken", "DateLastActivity");
  763. b.HasIndex("DeviceId", "DateLastActivity");
  764. b.HasIndex("UserId", "DeviceId");
  765. b.ToTable("Devices");
  766. });
  767. modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
  768. {
  769. b.Property<int>("Id")
  770. .ValueGeneratedOnAdd()
  771. .HasColumnType("INTEGER");
  772. b.Property<string>("CustomName")
  773. .HasColumnType("TEXT");
  774. b.Property<string>("DeviceId")
  775. .IsRequired()
  776. .HasColumnType("TEXT");
  777. b.HasKey("Id");
  778. b.HasIndex("DeviceId")
  779. .IsUnique();
  780. b.ToTable("DeviceOptions");
  781. });
  782. modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
  783. {
  784. b.Property<Guid>("ItemId")
  785. .HasColumnType("TEXT");
  786. b.Property<int>("Width")
  787. .HasColumnType("INTEGER");
  788. b.Property<int>("Bandwidth")
  789. .HasColumnType("INTEGER");
  790. b.Property<int>("Height")
  791. .HasColumnType("INTEGER");
  792. b.Property<int>("Interval")
  793. .HasColumnType("INTEGER");
  794. b.Property<int>("ThumbnailCount")
  795. .HasColumnType("INTEGER");
  796. b.Property<int>("TileHeight")
  797. .HasColumnType("INTEGER");
  798. b.Property<int>("TileWidth")
  799. .HasColumnType("INTEGER");
  800. b.HasKey("ItemId", "Width");
  801. b.ToTable("TrickplayInfos");
  802. });
  803. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  804. {
  805. b.Property<Guid>("Id")
  806. .ValueGeneratedOnAdd()
  807. .HasColumnType("TEXT");
  808. b.Property<string>("AudioLanguagePreference")
  809. .HasMaxLength(255)
  810. .HasColumnType("TEXT");
  811. b.Property<string>("AuthenticationProviderId")
  812. .IsRequired()
  813. .HasMaxLength(255)
  814. .HasColumnType("TEXT");
  815. b.Property<string>("CastReceiverId")
  816. .HasMaxLength(32)
  817. .HasColumnType("TEXT");
  818. b.Property<bool>("DisplayCollectionsView")
  819. .HasColumnType("INTEGER");
  820. b.Property<bool>("DisplayMissingEpisodes")
  821. .HasColumnType("INTEGER");
  822. b.Property<bool>("EnableAutoLogin")
  823. .HasColumnType("INTEGER");
  824. b.Property<bool>("EnableLocalPassword")
  825. .HasColumnType("INTEGER");
  826. b.Property<bool>("EnableNextEpisodeAutoPlay")
  827. .HasColumnType("INTEGER");
  828. b.Property<bool>("EnableUserPreferenceAccess")
  829. .HasColumnType("INTEGER");
  830. b.Property<bool>("HidePlayedInLatest")
  831. .HasColumnType("INTEGER");
  832. b.Property<long>("InternalId")
  833. .HasColumnType("INTEGER");
  834. b.Property<int>("InvalidLoginAttemptCount")
  835. .HasColumnType("INTEGER");
  836. b.Property<DateTime?>("LastActivityDate")
  837. .HasColumnType("TEXT");
  838. b.Property<DateTime?>("LastLoginDate")
  839. .HasColumnType("TEXT");
  840. b.Property<int?>("LoginAttemptsBeforeLockout")
  841. .HasColumnType("INTEGER");
  842. b.Property<int>("MaxActiveSessions")
  843. .HasColumnType("INTEGER");
  844. b.Property<int?>("MaxParentalAgeRating")
  845. .HasColumnType("INTEGER");
  846. b.Property<bool>("MustUpdatePassword")
  847. .HasColumnType("INTEGER");
  848. b.Property<string>("Password")
  849. .HasMaxLength(65535)
  850. .HasColumnType("TEXT");
  851. b.Property<string>("PasswordResetProviderId")
  852. .IsRequired()
  853. .HasMaxLength(255)
  854. .HasColumnType("TEXT");
  855. b.Property<bool>("PlayDefaultAudioTrack")
  856. .HasColumnType("INTEGER");
  857. b.Property<bool>("RememberAudioSelections")
  858. .HasColumnType("INTEGER");
  859. b.Property<bool>("RememberSubtitleSelections")
  860. .HasColumnType("INTEGER");
  861. b.Property<int?>("RemoteClientBitrateLimit")
  862. .HasColumnType("INTEGER");
  863. b.Property<uint>("RowVersion")
  864. .IsConcurrencyToken()
  865. .HasColumnType("INTEGER");
  866. b.Property<string>("SubtitleLanguagePreference")
  867. .HasMaxLength(255)
  868. .HasColumnType("TEXT");
  869. b.Property<int>("SubtitleMode")
  870. .HasColumnType("INTEGER");
  871. b.Property<int>("SyncPlayAccess")
  872. .HasColumnType("INTEGER");
  873. b.Property<string>("Username")
  874. .IsRequired()
  875. .HasMaxLength(255)
  876. .HasColumnType("TEXT")
  877. .UseCollation("NOCASE");
  878. b.HasKey("Id");
  879. b.HasIndex("Username")
  880. .IsUnique();
  881. b.ToTable("Users");
  882. });
  883. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  884. {
  885. b.Property<string>("Key")
  886. .HasColumnType("TEXT");
  887. b.Property<Guid>("UserId")
  888. .HasColumnType("TEXT");
  889. b.Property<int?>("AudioStreamIndex")
  890. .HasColumnType("INTEGER");
  891. b.Property<Guid?>("BaseItemEntityId")
  892. .HasColumnType("TEXT");
  893. b.Property<bool>("IsFavorite")
  894. .HasColumnType("INTEGER");
  895. b.Property<DateTime?>("LastPlayedDate")
  896. .HasColumnType("TEXT");
  897. b.Property<bool?>("Likes")
  898. .HasColumnType("INTEGER");
  899. b.Property<int>("PlayCount")
  900. .HasColumnType("INTEGER");
  901. b.Property<long>("PlaybackPositionTicks")
  902. .HasColumnType("INTEGER");
  903. b.Property<bool>("Played")
  904. .HasColumnType("INTEGER");
  905. b.Property<double?>("Rating")
  906. .HasColumnType("REAL");
  907. b.Property<int?>("SubtitleStreamIndex")
  908. .HasColumnType("INTEGER");
  909. b.HasKey("Key", "UserId");
  910. b.HasIndex("BaseItemEntityId");
  911. b.HasIndex("UserId");
  912. b.HasIndex("Key", "UserId", "IsFavorite");
  913. b.HasIndex("Key", "UserId", "LastPlayedDate");
  914. b.HasIndex("Key", "UserId", "PlaybackPositionTicks");
  915. b.HasIndex("Key", "UserId", "Played");
  916. b.ToTable("UserData");
  917. });
  918. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  919. {
  920. b.HasOne("Jellyfin.Data.Entities.User", null)
  921. .WithMany("AccessSchedules")
  922. .HasForeignKey("UserId")
  923. .OnDelete(DeleteBehavior.Cascade)
  924. .IsRequired();
  925. });
  926. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  927. {
  928. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  929. .WithMany("AncestorIds")
  930. .HasForeignKey("BaseItemEntityId");
  931. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  932. .WithMany()
  933. .HasForeignKey("ItemId")
  934. .OnDelete(DeleteBehavior.Cascade)
  935. .IsRequired();
  936. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "ParentItem")
  937. .WithMany()
  938. .HasForeignKey("ParentItemId")
  939. .OnDelete(DeleteBehavior.Cascade)
  940. .IsRequired();
  941. b.Navigation("Item");
  942. b.Navigation("ParentItem");
  943. });
  944. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  945. {
  946. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  947. .WithMany()
  948. .HasForeignKey("ItemId")
  949. .OnDelete(DeleteBehavior.Cascade)
  950. .IsRequired();
  951. b.Navigation("Item");
  952. });
  953. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  954. {
  955. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  956. .WithMany("Images")
  957. .HasForeignKey("ItemId")
  958. .OnDelete(DeleteBehavior.Cascade)
  959. .IsRequired();
  960. b.Navigation("Item");
  961. });
  962. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  963. {
  964. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  965. .WithMany("LockedFields")
  966. .HasForeignKey("ItemId")
  967. .OnDelete(DeleteBehavior.Cascade)
  968. .IsRequired();
  969. b.Navigation("Item");
  970. });
  971. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  972. {
  973. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  974. .WithMany("Provider")
  975. .HasForeignKey("ItemId")
  976. .OnDelete(DeleteBehavior.Cascade)
  977. .IsRequired();
  978. b.Navigation("Item");
  979. });
  980. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  981. {
  982. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  983. .WithMany("TrailerTypes")
  984. .HasForeignKey("ItemId")
  985. .OnDelete(DeleteBehavior.Cascade)
  986. .IsRequired();
  987. b.Navigation("Item");
  988. });
  989. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  990. {
  991. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  992. .WithMany("Chapters")
  993. .HasForeignKey("ItemId")
  994. .OnDelete(DeleteBehavior.Cascade)
  995. .IsRequired();
  996. b.Navigation("Item");
  997. });
  998. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  999. {
  1000. b.HasOne("Jellyfin.Data.Entities.User", null)
  1001. .WithMany("DisplayPreferences")
  1002. .HasForeignKey("UserId")
  1003. .OnDelete(DeleteBehavior.Cascade)
  1004. .IsRequired();
  1005. });
  1006. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  1007. {
  1008. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  1009. .WithMany("HomeSections")
  1010. .HasForeignKey("DisplayPreferencesId")
  1011. .OnDelete(DeleteBehavior.Cascade)
  1012. .IsRequired();
  1013. });
  1014. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  1015. {
  1016. b.HasOne("Jellyfin.Data.Entities.User", null)
  1017. .WithOne("ProfileImage")
  1018. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  1019. .OnDelete(DeleteBehavior.Cascade);
  1020. });
  1021. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  1022. {
  1023. b.HasOne("Jellyfin.Data.Entities.User", null)
  1024. .WithMany("ItemDisplayPreferences")
  1025. .HasForeignKey("UserId")
  1026. .OnDelete(DeleteBehavior.Cascade)
  1027. .IsRequired();
  1028. });
  1029. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValueMap", b =>
  1030. {
  1031. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1032. .WithMany("ItemValues")
  1033. .HasForeignKey("ItemId")
  1034. .OnDelete(DeleteBehavior.Cascade)
  1035. .IsRequired();
  1036. b.HasOne("Jellyfin.Data.Entities.ItemValue", "ItemValue")
  1037. .WithMany("BaseItemsMap")
  1038. .HasForeignKey("ItemValueId")
  1039. .OnDelete(DeleteBehavior.Cascade)
  1040. .IsRequired();
  1041. b.Navigation("Item");
  1042. b.Navigation("ItemValue");
  1043. });
  1044. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1045. {
  1046. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1047. .WithMany("MediaStreams")
  1048. .HasForeignKey("ItemId")
  1049. .OnDelete(DeleteBehavior.Cascade)
  1050. .IsRequired();
  1051. b.Navigation("Item");
  1052. });
  1053. modelBuilder.Entity("Jellyfin.Data.Entities.PeopleBaseItemMap", b =>
  1054. {
  1055. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1056. .WithMany("Peoples")
  1057. .HasForeignKey("ItemId")
  1058. .OnDelete(DeleteBehavior.Cascade)
  1059. .IsRequired();
  1060. b.HasOne("Jellyfin.Data.Entities.People", "People")
  1061. .WithMany("BaseItems")
  1062. .HasForeignKey("PeopleId")
  1063. .OnDelete(DeleteBehavior.Cascade)
  1064. .IsRequired();
  1065. b.Navigation("Item");
  1066. b.Navigation("People");
  1067. });
  1068. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1069. {
  1070. b.HasOne("Jellyfin.Data.Entities.User", null)
  1071. .WithMany("Permissions")
  1072. .HasForeignKey("UserId")
  1073. .OnDelete(DeleteBehavior.Cascade);
  1074. });
  1075. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1076. {
  1077. b.HasOne("Jellyfin.Data.Entities.User", null)
  1078. .WithMany("Preferences")
  1079. .HasForeignKey("UserId")
  1080. .OnDelete(DeleteBehavior.Cascade);
  1081. });
  1082. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1083. {
  1084. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1085. .WithMany()
  1086. .HasForeignKey("UserId")
  1087. .OnDelete(DeleteBehavior.Cascade)
  1088. .IsRequired();
  1089. b.Navigation("User");
  1090. });
  1091. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1092. {
  1093. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  1094. .WithMany("UserData")
  1095. .HasForeignKey("BaseItemEntityId");
  1096. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1097. .WithMany()
  1098. .HasForeignKey("UserId")
  1099. .OnDelete(DeleteBehavior.Cascade)
  1100. .IsRequired();
  1101. b.Navigation("User");
  1102. });
  1103. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1104. {
  1105. b.Navigation("AncestorIds");
  1106. b.Navigation("Chapters");
  1107. b.Navigation("Images");
  1108. b.Navigation("ItemValues");
  1109. b.Navigation("LockedFields");
  1110. b.Navigation("MediaStreams");
  1111. b.Navigation("Peoples");
  1112. b.Navigation("Provider");
  1113. b.Navigation("TrailerTypes");
  1114. b.Navigation("UserData");
  1115. });
  1116. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1117. {
  1118. b.Navigation("HomeSections");
  1119. });
  1120. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  1121. {
  1122. b.Navigation("BaseItemsMap");
  1123. });
  1124. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1125. {
  1126. b.Navigation("BaseItems");
  1127. });
  1128. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1129. {
  1130. b.Navigation("AccessSchedules");
  1131. b.Navigation("DisplayPreferences");
  1132. b.Navigation("ItemDisplayPreferences");
  1133. b.Navigation("Permissions");
  1134. b.Navigation("Preferences");
  1135. b.Navigation("ProfileImage");
  1136. });
  1137. #pragma warning restore 612, 618
  1138. }
  1139. }
  1140. }