JellyfinDbModelSnapshot.cs 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533
  1. // <auto-generated />
  2. using System;
  3. using Jellyfin.Server.Implementations;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  7. #nullable disable
  8. namespace Jellyfin.Server.Implementations.Migrations
  9. {
  10. [DbContext(typeof(JellyfinDbContext))]
  11. partial class JellyfinDbModelSnapshot : ModelSnapshot
  12. {
  13. protected override void BuildModel(ModelBuilder modelBuilder)
  14. {
  15. #pragma warning disable 612, 618
  16. modelBuilder.HasAnnotation("ProductVersion", "8.0.10");
  17. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  18. {
  19. b.Property<int>("Id")
  20. .ValueGeneratedOnAdd()
  21. .HasColumnType("INTEGER");
  22. b.Property<int>("DayOfWeek")
  23. .HasColumnType("INTEGER");
  24. b.Property<double>("EndHour")
  25. .HasColumnType("REAL");
  26. b.Property<double>("StartHour")
  27. .HasColumnType("REAL");
  28. b.Property<Guid>("UserId")
  29. .HasColumnType("TEXT");
  30. b.HasKey("Id");
  31. b.HasIndex("UserId");
  32. b.ToTable("AccessSchedules");
  33. });
  34. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  35. {
  36. b.Property<int>("Id")
  37. .ValueGeneratedOnAdd()
  38. .HasColumnType("INTEGER");
  39. b.Property<DateTime>("DateCreated")
  40. .HasColumnType("TEXT");
  41. b.Property<string>("ItemId")
  42. .HasMaxLength(256)
  43. .HasColumnType("TEXT");
  44. b.Property<int>("LogSeverity")
  45. .HasColumnType("INTEGER");
  46. b.Property<string>("Name")
  47. .IsRequired()
  48. .HasMaxLength(512)
  49. .HasColumnType("TEXT");
  50. b.Property<string>("Overview")
  51. .HasMaxLength(512)
  52. .HasColumnType("TEXT");
  53. b.Property<uint>("RowVersion")
  54. .IsConcurrencyToken()
  55. .HasColumnType("INTEGER");
  56. b.Property<string>("ShortOverview")
  57. .HasMaxLength(512)
  58. .HasColumnType("TEXT");
  59. b.Property<string>("Type")
  60. .IsRequired()
  61. .HasMaxLength(256)
  62. .HasColumnType("TEXT");
  63. b.Property<Guid>("UserId")
  64. .HasColumnType("TEXT");
  65. b.HasKey("Id");
  66. b.HasIndex("DateCreated");
  67. b.ToTable("ActivityLogs");
  68. });
  69. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  70. {
  71. b.Property<Guid>("ItemId")
  72. .HasColumnType("TEXT");
  73. b.Property<Guid>("ParentItemId")
  74. .HasColumnType("TEXT");
  75. b.Property<Guid?>("BaseItemEntityId")
  76. .HasColumnType("TEXT");
  77. b.HasKey("ItemId", "ParentItemId");
  78. b.HasIndex("BaseItemEntityId");
  79. b.HasIndex("ParentItemId");
  80. b.ToTable("AncestorIds");
  81. });
  82. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  83. {
  84. b.Property<Guid>("ItemId")
  85. .HasColumnType("TEXT");
  86. b.Property<int>("Index")
  87. .HasColumnType("INTEGER");
  88. b.Property<string>("Codec")
  89. .IsRequired()
  90. .HasColumnType("TEXT");
  91. b.Property<string>("CodecTag")
  92. .HasColumnType("TEXT");
  93. b.Property<string>("Comment")
  94. .HasColumnType("TEXT");
  95. b.Property<string>("Filename")
  96. .HasColumnType("TEXT");
  97. b.Property<string>("MimeType")
  98. .HasColumnType("TEXT");
  99. b.HasKey("ItemId", "Index");
  100. b.ToTable("AttachmentStreamInfos");
  101. });
  102. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  103. {
  104. b.Property<Guid>("Id")
  105. .ValueGeneratedOnAdd()
  106. .HasColumnType("TEXT");
  107. b.Property<string>("Album")
  108. .HasColumnType("TEXT");
  109. b.Property<string>("AlbumArtists")
  110. .HasColumnType("TEXT");
  111. b.Property<string>("Artists")
  112. .HasColumnType("TEXT");
  113. b.Property<int?>("Audio")
  114. .HasColumnType("INTEGER");
  115. b.Property<string>("ChannelId")
  116. .HasColumnType("TEXT");
  117. b.Property<string>("CleanName")
  118. .HasColumnType("TEXT");
  119. b.Property<float?>("CommunityRating")
  120. .HasColumnType("REAL");
  121. b.Property<float?>("CriticRating")
  122. .HasColumnType("REAL");
  123. b.Property<string>("CustomRating")
  124. .HasColumnType("TEXT");
  125. b.Property<string>("Data")
  126. .HasColumnType("TEXT");
  127. b.Property<DateTime?>("DateCreated")
  128. .HasColumnType("TEXT");
  129. b.Property<DateTime?>("DateLastMediaAdded")
  130. .HasColumnType("TEXT");
  131. b.Property<DateTime?>("DateLastRefreshed")
  132. .HasColumnType("TEXT");
  133. b.Property<DateTime?>("DateLastSaved")
  134. .HasColumnType("TEXT");
  135. b.Property<DateTime?>("DateModified")
  136. .HasColumnType("TEXT");
  137. b.Property<DateTime>("EndDate")
  138. .HasColumnType("TEXT");
  139. b.Property<string>("EpisodeTitle")
  140. .HasColumnType("TEXT");
  141. b.Property<string>("ExternalId")
  142. .HasColumnType("TEXT");
  143. b.Property<string>("ExternalSeriesId")
  144. .HasColumnType("TEXT");
  145. b.Property<string>("ExternalServiceId")
  146. .HasColumnType("TEXT");
  147. b.Property<string>("ExtraIds")
  148. .HasColumnType("TEXT");
  149. b.Property<int?>("ExtraType")
  150. .HasColumnType("INTEGER");
  151. b.Property<string>("ForcedSortName")
  152. .HasColumnType("TEXT");
  153. b.Property<string>("Genres")
  154. .HasColumnType("TEXT");
  155. b.Property<int?>("Height")
  156. .HasColumnType("INTEGER");
  157. b.Property<int?>("IndexNumber")
  158. .HasColumnType("INTEGER");
  159. b.Property<int?>("InheritedParentalRatingValue")
  160. .HasColumnType("INTEGER");
  161. b.Property<bool>("IsFolder")
  162. .HasColumnType("INTEGER");
  163. b.Property<bool>("IsInMixedFolder")
  164. .HasColumnType("INTEGER");
  165. b.Property<bool>("IsLocked")
  166. .HasColumnType("INTEGER");
  167. b.Property<bool>("IsMovie")
  168. .HasColumnType("INTEGER");
  169. b.Property<bool>("IsRepeat")
  170. .HasColumnType("INTEGER");
  171. b.Property<bool>("IsSeries")
  172. .HasColumnType("INTEGER");
  173. b.Property<bool>("IsVirtualItem")
  174. .HasColumnType("INTEGER");
  175. b.Property<float?>("LUFS")
  176. .HasColumnType("REAL");
  177. b.Property<string>("MediaType")
  178. .HasColumnType("TEXT");
  179. b.Property<string>("Name")
  180. .HasColumnType("TEXT");
  181. b.Property<float?>("NormalizationGain")
  182. .HasColumnType("REAL");
  183. b.Property<string>("OfficialRating")
  184. .HasColumnType("TEXT");
  185. b.Property<string>("OriginalTitle")
  186. .HasColumnType("TEXT");
  187. b.Property<string>("Overview")
  188. .HasColumnType("TEXT");
  189. b.Property<string>("OwnerId")
  190. .HasColumnType("TEXT");
  191. b.Property<Guid?>("ParentId")
  192. .HasColumnType("TEXT");
  193. b.Property<int?>("ParentIndexNumber")
  194. .HasColumnType("INTEGER");
  195. b.Property<string>("Path")
  196. .HasColumnType("TEXT");
  197. b.Property<string>("PreferredMetadataCountryCode")
  198. .HasColumnType("TEXT");
  199. b.Property<string>("PreferredMetadataLanguage")
  200. .HasColumnType("TEXT");
  201. b.Property<DateTime?>("PremiereDate")
  202. .HasColumnType("TEXT");
  203. b.Property<string>("PresentationUniqueKey")
  204. .HasColumnType("TEXT");
  205. b.Property<string>("PrimaryVersionId")
  206. .HasColumnType("TEXT");
  207. b.Property<string>("ProductionLocations")
  208. .HasColumnType("TEXT");
  209. b.Property<int?>("ProductionYear")
  210. .HasColumnType("INTEGER");
  211. b.Property<long?>("RunTimeTicks")
  212. .HasColumnType("INTEGER");
  213. b.Property<Guid?>("SeasonId")
  214. .HasColumnType("TEXT");
  215. b.Property<string>("SeasonName")
  216. .HasColumnType("TEXT");
  217. b.Property<Guid?>("SeriesId")
  218. .HasColumnType("TEXT");
  219. b.Property<string>("SeriesName")
  220. .HasColumnType("TEXT");
  221. b.Property<string>("SeriesPresentationUniqueKey")
  222. .HasColumnType("TEXT");
  223. b.Property<string>("ShowId")
  224. .HasColumnType("TEXT");
  225. b.Property<long?>("Size")
  226. .HasColumnType("INTEGER");
  227. b.Property<string>("SortName")
  228. .HasColumnType("TEXT");
  229. b.Property<DateTime>("StartDate")
  230. .HasColumnType("TEXT");
  231. b.Property<string>("Studios")
  232. .HasColumnType("TEXT");
  233. b.Property<string>("Tagline")
  234. .HasColumnType("TEXT");
  235. b.Property<string>("Tags")
  236. .HasColumnType("TEXT");
  237. b.Property<Guid?>("TopParentId")
  238. .HasColumnType("TEXT");
  239. b.Property<int?>("TotalBitrate")
  240. .HasColumnType("INTEGER");
  241. b.Property<string>("Type")
  242. .IsRequired()
  243. .HasColumnType("TEXT");
  244. b.Property<string>("UnratedType")
  245. .HasColumnType("TEXT");
  246. b.Property<string>("UserDataKey")
  247. .HasColumnType("TEXT");
  248. b.Property<int?>("Width")
  249. .HasColumnType("INTEGER");
  250. b.HasKey("Id");
  251. b.HasIndex("ParentId");
  252. b.HasIndex("Path");
  253. b.HasIndex("PresentationUniqueKey");
  254. b.HasIndex("TopParentId", "Id");
  255. b.HasIndex("UserDataKey", "Type");
  256. b.HasIndex("Type", "TopParentId", "Id");
  257. b.HasIndex("Type", "TopParentId", "PresentationUniqueKey");
  258. b.HasIndex("Type", "TopParentId", "StartDate");
  259. b.HasIndex("Id", "Type", "IsFolder", "IsVirtualItem");
  260. b.HasIndex("MediaType", "TopParentId", "IsVirtualItem", "PresentationUniqueKey");
  261. b.HasIndex("Type", "SeriesPresentationUniqueKey", "IsFolder", "IsVirtualItem");
  262. b.HasIndex("Type", "SeriesPresentationUniqueKey", "PresentationUniqueKey", "SortName");
  263. b.HasIndex("IsFolder", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  264. b.HasIndex("Type", "TopParentId", "IsVirtualItem", "PresentationUniqueKey", "DateCreated");
  265. b.ToTable("BaseItems");
  266. });
  267. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  268. {
  269. b.Property<Guid>("Id")
  270. .ValueGeneratedOnAdd()
  271. .HasColumnType("TEXT");
  272. b.Property<byte[]>("Blurhash")
  273. .HasColumnType("BLOB");
  274. b.Property<DateTime>("DateModified")
  275. .HasColumnType("TEXT");
  276. b.Property<int>("Height")
  277. .HasColumnType("INTEGER");
  278. b.Property<int>("ImageType")
  279. .HasColumnType("INTEGER");
  280. b.Property<Guid>("ItemId")
  281. .HasColumnType("TEXT");
  282. b.Property<string>("Path")
  283. .IsRequired()
  284. .HasColumnType("TEXT");
  285. b.Property<int>("Width")
  286. .HasColumnType("INTEGER");
  287. b.HasKey("Id");
  288. b.HasIndex("ItemId");
  289. b.ToTable("BaseItemImageInfos");
  290. });
  291. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  292. {
  293. b.Property<int>("Id")
  294. .HasColumnType("INTEGER");
  295. b.Property<Guid>("ItemId")
  296. .HasColumnType("TEXT");
  297. b.HasKey("Id", "ItemId");
  298. b.HasIndex("ItemId");
  299. b.ToTable("BaseItemMetadataFields");
  300. });
  301. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  302. {
  303. b.Property<Guid>("ItemId")
  304. .HasColumnType("TEXT");
  305. b.Property<string>("ProviderId")
  306. .HasColumnType("TEXT");
  307. b.Property<string>("ProviderValue")
  308. .IsRequired()
  309. .HasColumnType("TEXT");
  310. b.HasKey("ItemId", "ProviderId");
  311. b.HasIndex("ProviderId", "ProviderValue", "ItemId");
  312. b.ToTable("BaseItemProviders");
  313. });
  314. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  315. {
  316. b.Property<int>("Id")
  317. .HasColumnType("INTEGER");
  318. b.Property<Guid>("ItemId")
  319. .HasColumnType("TEXT");
  320. b.HasKey("Id", "ItemId");
  321. b.HasIndex("ItemId");
  322. b.ToTable("BaseItemTrailerTypes");
  323. });
  324. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  325. {
  326. b.Property<Guid>("ItemId")
  327. .HasColumnType("TEXT");
  328. b.Property<int>("ChapterIndex")
  329. .HasColumnType("INTEGER");
  330. b.Property<DateTime?>("ImageDateModified")
  331. .HasColumnType("TEXT");
  332. b.Property<string>("ImagePath")
  333. .HasColumnType("TEXT");
  334. b.Property<string>("Name")
  335. .HasColumnType("TEXT");
  336. b.Property<long>("StartPositionTicks")
  337. .HasColumnType("INTEGER");
  338. b.HasKey("ItemId", "ChapterIndex");
  339. b.ToTable("Chapters");
  340. });
  341. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  342. {
  343. b.Property<int>("Id")
  344. .ValueGeneratedOnAdd()
  345. .HasColumnType("INTEGER");
  346. b.Property<string>("Client")
  347. .IsRequired()
  348. .HasMaxLength(32)
  349. .HasColumnType("TEXT");
  350. b.Property<Guid>("ItemId")
  351. .HasColumnType("TEXT");
  352. b.Property<string>("Key")
  353. .IsRequired()
  354. .HasColumnType("TEXT");
  355. b.Property<Guid>("UserId")
  356. .HasColumnType("TEXT");
  357. b.Property<string>("Value")
  358. .HasColumnType("TEXT");
  359. b.HasKey("Id");
  360. b.HasIndex("UserId", "ItemId", "Client", "Key")
  361. .IsUnique();
  362. b.ToTable("CustomItemDisplayPreferences");
  363. });
  364. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  365. {
  366. b.Property<int>("Id")
  367. .ValueGeneratedOnAdd()
  368. .HasColumnType("INTEGER");
  369. b.Property<int>("ChromecastVersion")
  370. .HasColumnType("INTEGER");
  371. b.Property<string>("Client")
  372. .IsRequired()
  373. .HasMaxLength(32)
  374. .HasColumnType("TEXT");
  375. b.Property<string>("DashboardTheme")
  376. .HasMaxLength(32)
  377. .HasColumnType("TEXT");
  378. b.Property<bool>("EnableNextVideoInfoOverlay")
  379. .HasColumnType("INTEGER");
  380. b.Property<int?>("IndexBy")
  381. .HasColumnType("INTEGER");
  382. b.Property<Guid>("ItemId")
  383. .HasColumnType("TEXT");
  384. b.Property<int>("ScrollDirection")
  385. .HasColumnType("INTEGER");
  386. b.Property<bool>("ShowBackdrop")
  387. .HasColumnType("INTEGER");
  388. b.Property<bool>("ShowSidebar")
  389. .HasColumnType("INTEGER");
  390. b.Property<int>("SkipBackwardLength")
  391. .HasColumnType("INTEGER");
  392. b.Property<int>("SkipForwardLength")
  393. .HasColumnType("INTEGER");
  394. b.Property<string>("TvHome")
  395. .HasMaxLength(32)
  396. .HasColumnType("TEXT");
  397. b.Property<Guid>("UserId")
  398. .HasColumnType("TEXT");
  399. b.HasKey("Id");
  400. b.HasIndex("UserId", "ItemId", "Client")
  401. .IsUnique();
  402. b.ToTable("DisplayPreferences");
  403. });
  404. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  405. {
  406. b.Property<int>("Id")
  407. .ValueGeneratedOnAdd()
  408. .HasColumnType("INTEGER");
  409. b.Property<int>("DisplayPreferencesId")
  410. .HasColumnType("INTEGER");
  411. b.Property<int>("Order")
  412. .HasColumnType("INTEGER");
  413. b.Property<int>("Type")
  414. .HasColumnType("INTEGER");
  415. b.HasKey("Id");
  416. b.HasIndex("DisplayPreferencesId");
  417. b.ToTable("HomeSection");
  418. });
  419. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  420. {
  421. b.Property<int>("Id")
  422. .ValueGeneratedOnAdd()
  423. .HasColumnType("INTEGER");
  424. b.Property<DateTime>("LastModified")
  425. .HasColumnType("TEXT");
  426. b.Property<string>("Path")
  427. .IsRequired()
  428. .HasMaxLength(512)
  429. .HasColumnType("TEXT");
  430. b.Property<Guid?>("UserId")
  431. .HasColumnType("TEXT");
  432. b.HasKey("Id");
  433. b.HasIndex("UserId")
  434. .IsUnique();
  435. b.ToTable("ImageInfos");
  436. });
  437. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  438. {
  439. b.Property<int>("Id")
  440. .ValueGeneratedOnAdd()
  441. .HasColumnType("INTEGER");
  442. b.Property<string>("Client")
  443. .IsRequired()
  444. .HasMaxLength(32)
  445. .HasColumnType("TEXT");
  446. b.Property<int?>("IndexBy")
  447. .HasColumnType("INTEGER");
  448. b.Property<Guid>("ItemId")
  449. .HasColumnType("TEXT");
  450. b.Property<bool>("RememberIndexing")
  451. .HasColumnType("INTEGER");
  452. b.Property<bool>("RememberSorting")
  453. .HasColumnType("INTEGER");
  454. b.Property<string>("SortBy")
  455. .IsRequired()
  456. .HasMaxLength(64)
  457. .HasColumnType("TEXT");
  458. b.Property<int>("SortOrder")
  459. .HasColumnType("INTEGER");
  460. b.Property<Guid>("UserId")
  461. .HasColumnType("TEXT");
  462. b.Property<int>("ViewType")
  463. .HasColumnType("INTEGER");
  464. b.HasKey("Id");
  465. b.HasIndex("UserId");
  466. b.ToTable("ItemDisplayPreferences");
  467. });
  468. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  469. {
  470. b.Property<Guid>("ItemId")
  471. .HasColumnType("TEXT");
  472. b.Property<int>("Type")
  473. .HasColumnType("INTEGER");
  474. b.Property<string>("Value")
  475. .HasColumnType("TEXT");
  476. b.Property<string>("CleanValue")
  477. .IsRequired()
  478. .HasColumnType("TEXT");
  479. b.HasKey("ItemId", "Type", "Value");
  480. b.HasIndex("ItemId", "Type", "CleanValue");
  481. b.ToTable("ItemValues");
  482. });
  483. modelBuilder.Entity("Jellyfin.Data.Entities.MediaSegment", b =>
  484. {
  485. b.Property<Guid>("Id")
  486. .ValueGeneratedOnAdd()
  487. .HasColumnType("TEXT");
  488. b.Property<long>("EndTicks")
  489. .HasColumnType("INTEGER");
  490. b.Property<Guid>("ItemId")
  491. .HasColumnType("TEXT");
  492. b.Property<string>("SegmentProviderId")
  493. .IsRequired()
  494. .HasColumnType("TEXT");
  495. b.Property<long>("StartTicks")
  496. .HasColumnType("INTEGER");
  497. b.Property<int>("Type")
  498. .HasColumnType("INTEGER");
  499. b.HasKey("Id");
  500. b.ToTable("MediaSegments");
  501. });
  502. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  503. {
  504. b.Property<Guid>("ItemId")
  505. .HasColumnType("TEXT");
  506. b.Property<int>("StreamIndex")
  507. .HasColumnType("INTEGER");
  508. b.Property<string>("AspectRatio")
  509. .HasColumnType("TEXT");
  510. b.Property<float>("AverageFrameRate")
  511. .HasColumnType("REAL");
  512. b.Property<int>("BitDepth")
  513. .HasColumnType("INTEGER");
  514. b.Property<int>("BitRate")
  515. .HasColumnType("INTEGER");
  516. b.Property<int>("BlPresentFlag")
  517. .HasColumnType("INTEGER");
  518. b.Property<string>("ChannelLayout")
  519. .HasColumnType("TEXT");
  520. b.Property<int>("Channels")
  521. .HasColumnType("INTEGER");
  522. b.Property<string>("Codec")
  523. .HasColumnType("TEXT");
  524. b.Property<string>("CodecTag")
  525. .IsRequired()
  526. .HasColumnType("TEXT");
  527. b.Property<string>("CodecTimeBase")
  528. .IsRequired()
  529. .HasColumnType("TEXT");
  530. b.Property<string>("ColorPrimaries")
  531. .IsRequired()
  532. .HasColumnType("TEXT");
  533. b.Property<string>("ColorSpace")
  534. .IsRequired()
  535. .HasColumnType("TEXT");
  536. b.Property<string>("ColorTransfer")
  537. .IsRequired()
  538. .HasColumnType("TEXT");
  539. b.Property<string>("Comment")
  540. .IsRequired()
  541. .HasColumnType("TEXT");
  542. b.Property<int>("DvBlSignalCompatibilityId")
  543. .HasColumnType("INTEGER");
  544. b.Property<int>("DvLevel")
  545. .HasColumnType("INTEGER");
  546. b.Property<int>("DvProfile")
  547. .HasColumnType("INTEGER");
  548. b.Property<int>("DvVersionMajor")
  549. .HasColumnType("INTEGER");
  550. b.Property<int>("DvVersionMinor")
  551. .HasColumnType("INTEGER");
  552. b.Property<int>("ElPresentFlag")
  553. .HasColumnType("INTEGER");
  554. b.Property<int>("Height")
  555. .HasColumnType("INTEGER");
  556. b.Property<bool>("IsAnamorphic")
  557. .HasColumnType("INTEGER");
  558. b.Property<bool>("IsAvc")
  559. .HasColumnType("INTEGER");
  560. b.Property<bool>("IsDefault")
  561. .HasColumnType("INTEGER");
  562. b.Property<bool>("IsExternal")
  563. .HasColumnType("INTEGER");
  564. b.Property<bool>("IsForced")
  565. .HasColumnType("INTEGER");
  566. b.Property<bool>("IsHearingImpaired")
  567. .HasColumnType("INTEGER");
  568. b.Property<bool>("IsInterlaced")
  569. .HasColumnType("INTEGER");
  570. b.Property<string>("KeyFrames")
  571. .HasColumnType("TEXT");
  572. b.Property<string>("Language")
  573. .HasColumnType("TEXT");
  574. b.Property<float>("Level")
  575. .HasColumnType("REAL");
  576. b.Property<string>("NalLengthSize")
  577. .IsRequired()
  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. .IsRequired()
  599. .HasColumnType("TEXT");
  600. b.Property<string>("Title")
  601. .IsRequired()
  602. .HasColumnType("TEXT");
  603. b.Property<int>("Width")
  604. .HasColumnType("INTEGER");
  605. b.HasKey("ItemId", "StreamIndex");
  606. b.HasIndex("StreamIndex");
  607. b.HasIndex("StreamType");
  608. b.HasIndex("StreamIndex", "StreamType");
  609. b.HasIndex("StreamIndex", "StreamType", "Language");
  610. b.ToTable("MediaStreamInfos");
  611. });
  612. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  613. {
  614. b.Property<Guid>("ItemId")
  615. .HasColumnType("TEXT");
  616. b.Property<string>("Role")
  617. .HasColumnType("TEXT");
  618. b.Property<int?>("ListOrder")
  619. .HasColumnType("INTEGER");
  620. b.Property<string>("Name")
  621. .IsRequired()
  622. .HasColumnType("TEXT");
  623. b.Property<string>("PersonType")
  624. .HasColumnType("TEXT");
  625. b.Property<int?>("SortOrder")
  626. .HasColumnType("INTEGER");
  627. b.HasKey("ItemId", "Role", "ListOrder");
  628. b.HasIndex("Name");
  629. b.HasIndex("ItemId", "ListOrder");
  630. b.ToTable("Peoples");
  631. });
  632. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  633. {
  634. b.Property<int>("Id")
  635. .ValueGeneratedOnAdd()
  636. .HasColumnType("INTEGER");
  637. b.Property<int>("Kind")
  638. .HasColumnType("INTEGER");
  639. b.Property<Guid?>("Permission_Permissions_Guid")
  640. .HasColumnType("TEXT");
  641. b.Property<uint>("RowVersion")
  642. .IsConcurrencyToken()
  643. .HasColumnType("INTEGER");
  644. b.Property<Guid?>("UserId")
  645. .HasColumnType("TEXT");
  646. b.Property<bool>("Value")
  647. .HasColumnType("INTEGER");
  648. b.HasKey("Id");
  649. b.HasIndex("UserId", "Kind")
  650. .IsUnique()
  651. .HasFilter("[UserId] IS NOT NULL");
  652. b.ToTable("Permissions");
  653. });
  654. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  655. {
  656. b.Property<int>("Id")
  657. .ValueGeneratedOnAdd()
  658. .HasColumnType("INTEGER");
  659. b.Property<int>("Kind")
  660. .HasColumnType("INTEGER");
  661. b.Property<Guid?>("Preference_Preferences_Guid")
  662. .HasColumnType("TEXT");
  663. b.Property<uint>("RowVersion")
  664. .IsConcurrencyToken()
  665. .HasColumnType("INTEGER");
  666. b.Property<Guid?>("UserId")
  667. .HasColumnType("TEXT");
  668. b.Property<string>("Value")
  669. .IsRequired()
  670. .HasMaxLength(65535)
  671. .HasColumnType("TEXT");
  672. b.HasKey("Id");
  673. b.HasIndex("UserId", "Kind")
  674. .IsUnique()
  675. .HasFilter("[UserId] IS NOT NULL");
  676. b.ToTable("Preferences");
  677. });
  678. modelBuilder.Entity("Jellyfin.Data.Entities.Security.ApiKey", b =>
  679. {
  680. b.Property<int>("Id")
  681. .ValueGeneratedOnAdd()
  682. .HasColumnType("INTEGER");
  683. b.Property<string>("AccessToken")
  684. .IsRequired()
  685. .HasColumnType("TEXT");
  686. b.Property<DateTime>("DateCreated")
  687. .HasColumnType("TEXT");
  688. b.Property<DateTime>("DateLastActivity")
  689. .HasColumnType("TEXT");
  690. b.Property<string>("Name")
  691. .IsRequired()
  692. .HasMaxLength(64)
  693. .HasColumnType("TEXT");
  694. b.HasKey("Id");
  695. b.HasIndex("AccessToken")
  696. .IsUnique();
  697. b.ToTable("ApiKeys");
  698. });
  699. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  700. {
  701. b.Property<int>("Id")
  702. .ValueGeneratedOnAdd()
  703. .HasColumnType("INTEGER");
  704. b.Property<string>("AccessToken")
  705. .IsRequired()
  706. .HasColumnType("TEXT");
  707. b.Property<string>("AppName")
  708. .IsRequired()
  709. .HasMaxLength(64)
  710. .HasColumnType("TEXT");
  711. b.Property<string>("AppVersion")
  712. .IsRequired()
  713. .HasMaxLength(32)
  714. .HasColumnType("TEXT");
  715. b.Property<DateTime>("DateCreated")
  716. .HasColumnType("TEXT");
  717. b.Property<DateTime>("DateLastActivity")
  718. .HasColumnType("TEXT");
  719. b.Property<DateTime>("DateModified")
  720. .HasColumnType("TEXT");
  721. b.Property<string>("DeviceId")
  722. .IsRequired()
  723. .HasMaxLength(256)
  724. .HasColumnType("TEXT");
  725. b.Property<string>("DeviceName")
  726. .IsRequired()
  727. .HasMaxLength(64)
  728. .HasColumnType("TEXT");
  729. b.Property<bool>("IsActive")
  730. .HasColumnType("INTEGER");
  731. b.Property<Guid>("UserId")
  732. .HasColumnType("TEXT");
  733. b.HasKey("Id");
  734. b.HasIndex("DeviceId");
  735. b.HasIndex("AccessToken", "DateLastActivity");
  736. b.HasIndex("DeviceId", "DateLastActivity");
  737. b.HasIndex("UserId", "DeviceId");
  738. b.ToTable("Devices");
  739. });
  740. modelBuilder.Entity("Jellyfin.Data.Entities.Security.DeviceOptions", b =>
  741. {
  742. b.Property<int>("Id")
  743. .ValueGeneratedOnAdd()
  744. .HasColumnType("INTEGER");
  745. b.Property<string>("CustomName")
  746. .HasColumnType("TEXT");
  747. b.Property<string>("DeviceId")
  748. .IsRequired()
  749. .HasColumnType("TEXT");
  750. b.HasKey("Id");
  751. b.HasIndex("DeviceId")
  752. .IsUnique();
  753. b.ToTable("DeviceOptions");
  754. });
  755. modelBuilder.Entity("Jellyfin.Data.Entities.TrickplayInfo", b =>
  756. {
  757. b.Property<Guid>("ItemId")
  758. .HasColumnType("TEXT");
  759. b.Property<int>("Width")
  760. .HasColumnType("INTEGER");
  761. b.Property<int>("Bandwidth")
  762. .HasColumnType("INTEGER");
  763. b.Property<int>("Height")
  764. .HasColumnType("INTEGER");
  765. b.Property<int>("Interval")
  766. .HasColumnType("INTEGER");
  767. b.Property<int>("ThumbnailCount")
  768. .HasColumnType("INTEGER");
  769. b.Property<int>("TileHeight")
  770. .HasColumnType("INTEGER");
  771. b.Property<int>("TileWidth")
  772. .HasColumnType("INTEGER");
  773. b.HasKey("ItemId", "Width");
  774. b.ToTable("TrickplayInfos");
  775. });
  776. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  777. {
  778. b.Property<Guid>("Id")
  779. .ValueGeneratedOnAdd()
  780. .HasColumnType("TEXT");
  781. b.Property<string>("AudioLanguagePreference")
  782. .HasMaxLength(255)
  783. .HasColumnType("TEXT");
  784. b.Property<string>("AuthenticationProviderId")
  785. .IsRequired()
  786. .HasMaxLength(255)
  787. .HasColumnType("TEXT");
  788. b.Property<string>("CastReceiverId")
  789. .HasMaxLength(32)
  790. .HasColumnType("TEXT");
  791. b.Property<bool>("DisplayCollectionsView")
  792. .HasColumnType("INTEGER");
  793. b.Property<bool>("DisplayMissingEpisodes")
  794. .HasColumnType("INTEGER");
  795. b.Property<bool>("EnableAutoLogin")
  796. .HasColumnType("INTEGER");
  797. b.Property<bool>("EnableLocalPassword")
  798. .HasColumnType("INTEGER");
  799. b.Property<bool>("EnableNextEpisodeAutoPlay")
  800. .HasColumnType("INTEGER");
  801. b.Property<bool>("EnableUserPreferenceAccess")
  802. .HasColumnType("INTEGER");
  803. b.Property<bool>("HidePlayedInLatest")
  804. .HasColumnType("INTEGER");
  805. b.Property<long>("InternalId")
  806. .HasColumnType("INTEGER");
  807. b.Property<int>("InvalidLoginAttemptCount")
  808. .HasColumnType("INTEGER");
  809. b.Property<DateTime?>("LastActivityDate")
  810. .HasColumnType("TEXT");
  811. b.Property<DateTime?>("LastLoginDate")
  812. .HasColumnType("TEXT");
  813. b.Property<int?>("LoginAttemptsBeforeLockout")
  814. .HasColumnType("INTEGER");
  815. b.Property<int>("MaxActiveSessions")
  816. .HasColumnType("INTEGER");
  817. b.Property<int?>("MaxParentalAgeRating")
  818. .HasColumnType("INTEGER");
  819. b.Property<bool>("MustUpdatePassword")
  820. .HasColumnType("INTEGER");
  821. b.Property<string>("Password")
  822. .HasMaxLength(65535)
  823. .HasColumnType("TEXT");
  824. b.Property<string>("PasswordResetProviderId")
  825. .IsRequired()
  826. .HasMaxLength(255)
  827. .HasColumnType("TEXT");
  828. b.Property<bool>("PlayDefaultAudioTrack")
  829. .HasColumnType("INTEGER");
  830. b.Property<bool>("RememberAudioSelections")
  831. .HasColumnType("INTEGER");
  832. b.Property<bool>("RememberSubtitleSelections")
  833. .HasColumnType("INTEGER");
  834. b.Property<int?>("RemoteClientBitrateLimit")
  835. .HasColumnType("INTEGER");
  836. b.Property<uint>("RowVersion")
  837. .IsConcurrencyToken()
  838. .HasColumnType("INTEGER");
  839. b.Property<string>("SubtitleLanguagePreference")
  840. .HasMaxLength(255)
  841. .HasColumnType("TEXT");
  842. b.Property<int>("SubtitleMode")
  843. .HasColumnType("INTEGER");
  844. b.Property<int>("SyncPlayAccess")
  845. .HasColumnType("INTEGER");
  846. b.Property<string>("Username")
  847. .IsRequired()
  848. .HasMaxLength(255)
  849. .HasColumnType("TEXT")
  850. .UseCollation("NOCASE");
  851. b.HasKey("Id");
  852. b.HasIndex("Username")
  853. .IsUnique();
  854. b.ToTable("Users");
  855. });
  856. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  857. {
  858. b.Property<string>("Key")
  859. .HasColumnType("TEXT");
  860. b.Property<Guid>("UserId")
  861. .HasColumnType("TEXT");
  862. b.Property<int?>("AudioStreamIndex")
  863. .HasColumnType("INTEGER");
  864. b.Property<Guid?>("BaseItemEntityId")
  865. .HasColumnType("TEXT");
  866. b.Property<bool>("IsFavorite")
  867. .HasColumnType("INTEGER");
  868. b.Property<DateTime?>("LastPlayedDate")
  869. .HasColumnType("TEXT");
  870. b.Property<bool?>("Likes")
  871. .HasColumnType("INTEGER");
  872. b.Property<int>("PlayCount")
  873. .HasColumnType("INTEGER");
  874. b.Property<long>("PlaybackPositionTicks")
  875. .HasColumnType("INTEGER");
  876. b.Property<bool>("Played")
  877. .HasColumnType("INTEGER");
  878. b.Property<double?>("Rating")
  879. .HasColumnType("REAL");
  880. b.Property<int?>("SubtitleStreamIndex")
  881. .HasColumnType("INTEGER");
  882. b.HasKey("Key", "UserId");
  883. b.HasIndex("BaseItemEntityId");
  884. b.HasIndex("UserId");
  885. b.HasIndex("Key", "UserId", "IsFavorite");
  886. b.HasIndex("Key", "UserId", "LastPlayedDate");
  887. b.HasIndex("Key", "UserId", "PlaybackPositionTicks");
  888. b.HasIndex("Key", "UserId", "Played");
  889. b.ToTable("UserData");
  890. });
  891. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  892. {
  893. b.HasOne("Jellyfin.Data.Entities.User", null)
  894. .WithMany("AccessSchedules")
  895. .HasForeignKey("UserId")
  896. .OnDelete(DeleteBehavior.Cascade)
  897. .IsRequired();
  898. });
  899. modelBuilder.Entity("Jellyfin.Data.Entities.AncestorId", b =>
  900. {
  901. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  902. .WithMany("AncestorIds")
  903. .HasForeignKey("BaseItemEntityId");
  904. });
  905. modelBuilder.Entity("Jellyfin.Data.Entities.AttachmentStreamInfo", b =>
  906. {
  907. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  908. .WithMany()
  909. .HasForeignKey("ItemId")
  910. .OnDelete(DeleteBehavior.Cascade)
  911. .IsRequired();
  912. b.Navigation("Item");
  913. });
  914. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemImageInfo", b =>
  915. {
  916. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  917. .WithMany("Images")
  918. .HasForeignKey("ItemId")
  919. .OnDelete(DeleteBehavior.Cascade)
  920. .IsRequired();
  921. b.Navigation("Item");
  922. });
  923. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemMetadataField", b =>
  924. {
  925. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  926. .WithMany("LockedFields")
  927. .HasForeignKey("ItemId")
  928. .OnDelete(DeleteBehavior.Cascade)
  929. .IsRequired();
  930. b.Navigation("Item");
  931. });
  932. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemProvider", b =>
  933. {
  934. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  935. .WithMany("Provider")
  936. .HasForeignKey("ItemId")
  937. .OnDelete(DeleteBehavior.Cascade)
  938. .IsRequired();
  939. b.Navigation("Item");
  940. });
  941. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemTrailerType", b =>
  942. {
  943. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  944. .WithMany("TrailerTypes")
  945. .HasForeignKey("ItemId")
  946. .OnDelete(DeleteBehavior.Cascade)
  947. .IsRequired();
  948. b.Navigation("Item");
  949. });
  950. modelBuilder.Entity("Jellyfin.Data.Entities.Chapter", b =>
  951. {
  952. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  953. .WithMany("Chapters")
  954. .HasForeignKey("ItemId")
  955. .OnDelete(DeleteBehavior.Cascade)
  956. .IsRequired();
  957. b.Navigation("Item");
  958. });
  959. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  960. {
  961. b.HasOne("Jellyfin.Data.Entities.User", null)
  962. .WithMany("DisplayPreferences")
  963. .HasForeignKey("UserId")
  964. .OnDelete(DeleteBehavior.Cascade)
  965. .IsRequired();
  966. });
  967. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  968. {
  969. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  970. .WithMany("HomeSections")
  971. .HasForeignKey("DisplayPreferencesId")
  972. .OnDelete(DeleteBehavior.Cascade)
  973. .IsRequired();
  974. });
  975. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  976. {
  977. b.HasOne("Jellyfin.Data.Entities.User", null)
  978. .WithOne("ProfileImage")
  979. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId")
  980. .OnDelete(DeleteBehavior.Cascade);
  981. });
  982. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  983. {
  984. b.HasOne("Jellyfin.Data.Entities.User", null)
  985. .WithMany("ItemDisplayPreferences")
  986. .HasForeignKey("UserId")
  987. .OnDelete(DeleteBehavior.Cascade)
  988. .IsRequired();
  989. });
  990. modelBuilder.Entity("Jellyfin.Data.Entities.ItemValue", b =>
  991. {
  992. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  993. .WithMany("ItemValues")
  994. .HasForeignKey("ItemId")
  995. .OnDelete(DeleteBehavior.Cascade)
  996. .IsRequired();
  997. b.Navigation("Item");
  998. });
  999. modelBuilder.Entity("Jellyfin.Data.Entities.MediaStreamInfo", b =>
  1000. {
  1001. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1002. .WithMany("MediaStreams")
  1003. .HasForeignKey("ItemId")
  1004. .OnDelete(DeleteBehavior.Cascade)
  1005. .IsRequired();
  1006. b.Navigation("Item");
  1007. });
  1008. modelBuilder.Entity("Jellyfin.Data.Entities.People", b =>
  1009. {
  1010. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", "Item")
  1011. .WithMany("Peoples")
  1012. .HasForeignKey("ItemId")
  1013. .OnDelete(DeleteBehavior.Cascade)
  1014. .IsRequired();
  1015. b.Navigation("Item");
  1016. });
  1017. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  1018. {
  1019. b.HasOne("Jellyfin.Data.Entities.User", null)
  1020. .WithMany("Permissions")
  1021. .HasForeignKey("UserId")
  1022. .OnDelete(DeleteBehavior.Cascade);
  1023. });
  1024. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  1025. {
  1026. b.HasOne("Jellyfin.Data.Entities.User", null)
  1027. .WithMany("Preferences")
  1028. .HasForeignKey("UserId")
  1029. .OnDelete(DeleteBehavior.Cascade);
  1030. });
  1031. modelBuilder.Entity("Jellyfin.Data.Entities.Security.Device", b =>
  1032. {
  1033. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1034. .WithMany()
  1035. .HasForeignKey("UserId")
  1036. .OnDelete(DeleteBehavior.Cascade)
  1037. .IsRequired();
  1038. b.Navigation("User");
  1039. });
  1040. modelBuilder.Entity("Jellyfin.Data.Entities.UserData", b =>
  1041. {
  1042. b.HasOne("Jellyfin.Data.Entities.BaseItemEntity", null)
  1043. .WithMany("UserData")
  1044. .HasForeignKey("BaseItemEntityId");
  1045. b.HasOne("Jellyfin.Data.Entities.User", "User")
  1046. .WithMany()
  1047. .HasForeignKey("UserId")
  1048. .OnDelete(DeleteBehavior.Cascade)
  1049. .IsRequired();
  1050. b.Navigation("User");
  1051. });
  1052. modelBuilder.Entity("Jellyfin.Data.Entities.BaseItemEntity", b =>
  1053. {
  1054. b.Navigation("AncestorIds");
  1055. b.Navigation("Chapters");
  1056. b.Navigation("Images");
  1057. b.Navigation("ItemValues");
  1058. b.Navigation("LockedFields");
  1059. b.Navigation("MediaStreams");
  1060. b.Navigation("Peoples");
  1061. b.Navigation("Provider");
  1062. b.Navigation("TrailerTypes");
  1063. b.Navigation("UserData");
  1064. });
  1065. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  1066. {
  1067. b.Navigation("HomeSections");
  1068. });
  1069. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  1070. {
  1071. b.Navigation("AccessSchedules");
  1072. b.Navigation("DisplayPreferences");
  1073. b.Navigation("ItemDisplayPreferences");
  1074. b.Navigation("Permissions");
  1075. b.Navigation("Preferences");
  1076. b.Navigation("ProfileImage");
  1077. });
  1078. #pragma warning restore 612, 618
  1079. }
  1080. }
  1081. }