JellyfinDbModelSnapshot.cs 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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. namespace Jellyfin.Server.Implementations.Migrations
  8. {
  9. [DbContext(typeof(JellyfinDb))]
  10. partial class JellyfinDbModelSnapshot : ModelSnapshot
  11. {
  12. protected override void BuildModel(ModelBuilder modelBuilder)
  13. {
  14. #pragma warning disable 612, 618
  15. modelBuilder
  16. .HasDefaultSchema("jellyfin")
  17. .HasAnnotation("ProductVersion", "5.0.3");
  18. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  19. {
  20. b.Property<int>("Id")
  21. .ValueGeneratedOnAdd()
  22. .HasColumnType("INTEGER");
  23. b.Property<int>("DayOfWeek")
  24. .HasColumnType("INTEGER");
  25. b.Property<double>("EndHour")
  26. .HasColumnType("REAL");
  27. b.Property<double>("StartHour")
  28. .HasColumnType("REAL");
  29. b.Property<Guid>("UserId")
  30. .HasColumnType("TEXT");
  31. b.HasKey("Id");
  32. b.HasIndex("UserId");
  33. b.ToTable("AccessSchedules");
  34. });
  35. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  36. {
  37. b.Property<int>("Id")
  38. .ValueGeneratedOnAdd()
  39. .HasColumnType("INTEGER");
  40. b.Property<DateTime>("DateCreated")
  41. .HasColumnType("TEXT");
  42. b.Property<string>("ItemId")
  43. .HasMaxLength(256)
  44. .HasColumnType("TEXT");
  45. b.Property<int>("LogSeverity")
  46. .HasColumnType("INTEGER");
  47. b.Property<string>("Name")
  48. .IsRequired()
  49. .HasMaxLength(512)
  50. .HasColumnType("TEXT");
  51. b.Property<string>("Overview")
  52. .HasMaxLength(512)
  53. .HasColumnType("TEXT");
  54. b.Property<uint>("RowVersion")
  55. .IsConcurrencyToken()
  56. .HasColumnType("INTEGER");
  57. b.Property<string>("ShortOverview")
  58. .HasMaxLength(512)
  59. .HasColumnType("TEXT");
  60. b.Property<string>("Type")
  61. .IsRequired()
  62. .HasMaxLength(256)
  63. .HasColumnType("TEXT");
  64. b.Property<Guid>("UserId")
  65. .HasColumnType("TEXT");
  66. b.HasKey("Id");
  67. b.ToTable("ActivityLogs");
  68. });
  69. modelBuilder.Entity("Jellyfin.Data.Entities.CustomItemDisplayPreferences", b =>
  70. {
  71. b.Property<int>("Id")
  72. .ValueGeneratedOnAdd()
  73. .HasColumnType("INTEGER");
  74. b.Property<string>("Client")
  75. .IsRequired()
  76. .HasMaxLength(32)
  77. .HasColumnType("TEXT");
  78. b.Property<Guid>("ItemId")
  79. .HasColumnType("TEXT");
  80. b.Property<string>("Key")
  81. .IsRequired()
  82. .HasColumnType("TEXT");
  83. b.Property<Guid>("UserId")
  84. .HasColumnType("TEXT");
  85. b.Property<string>("Value")
  86. .HasColumnType("TEXT");
  87. b.HasKey("Id");
  88. b.HasIndex("UserId");
  89. b.HasIndex("UserId", "ItemId", "Client", "Key")
  90. .IsUnique();
  91. b.ToTable("CustomItemDisplayPreferences");
  92. });
  93. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  94. {
  95. b.Property<int>("Id")
  96. .ValueGeneratedOnAdd()
  97. .HasColumnType("INTEGER");
  98. b.Property<int>("ChromecastVersion")
  99. .HasColumnType("INTEGER");
  100. b.Property<string>("Client")
  101. .IsRequired()
  102. .HasMaxLength(32)
  103. .HasColumnType("TEXT");
  104. b.Property<string>("DashboardTheme")
  105. .HasMaxLength(32)
  106. .HasColumnType("TEXT");
  107. b.Property<bool>("EnableNextVideoInfoOverlay")
  108. .HasColumnType("INTEGER");
  109. b.Property<int?>("IndexBy")
  110. .HasColumnType("INTEGER");
  111. b.Property<Guid>("ItemId")
  112. .HasColumnType("TEXT");
  113. b.Property<int>("ScrollDirection")
  114. .HasColumnType("INTEGER");
  115. b.Property<bool>("ShowBackdrop")
  116. .HasColumnType("INTEGER");
  117. b.Property<bool>("ShowSidebar")
  118. .HasColumnType("INTEGER");
  119. b.Property<int>("SkipBackwardLength")
  120. .HasColumnType("INTEGER");
  121. b.Property<int>("SkipForwardLength")
  122. .HasColumnType("INTEGER");
  123. b.Property<string>("TvHome")
  124. .HasMaxLength(32)
  125. .HasColumnType("TEXT");
  126. b.Property<Guid>("UserId")
  127. .HasColumnType("TEXT");
  128. b.HasKey("Id");
  129. b.HasIndex("UserId");
  130. b.HasIndex("UserId", "ItemId", "Client")
  131. .IsUnique();
  132. b.ToTable("DisplayPreferences");
  133. });
  134. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  135. {
  136. b.Property<int>("Id")
  137. .ValueGeneratedOnAdd()
  138. .HasColumnType("INTEGER");
  139. b.Property<int>("DisplayPreferencesId")
  140. .HasColumnType("INTEGER");
  141. b.Property<int>("Order")
  142. .HasColumnType("INTEGER");
  143. b.Property<int>("Type")
  144. .HasColumnType("INTEGER");
  145. b.HasKey("Id");
  146. b.HasIndex("DisplayPreferencesId");
  147. b.ToTable("HomeSection");
  148. });
  149. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  150. {
  151. b.Property<int>("Id")
  152. .ValueGeneratedOnAdd()
  153. .HasColumnType("INTEGER");
  154. b.Property<DateTime>("LastModified")
  155. .HasColumnType("TEXT");
  156. b.Property<string>("Path")
  157. .IsRequired()
  158. .HasMaxLength(512)
  159. .HasColumnType("TEXT");
  160. b.Property<Guid?>("UserId")
  161. .HasColumnType("TEXT");
  162. b.HasKey("Id");
  163. b.HasIndex("UserId")
  164. .IsUnique();
  165. b.ToTable("ImageInfos");
  166. });
  167. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  168. {
  169. b.Property<int>("Id")
  170. .ValueGeneratedOnAdd()
  171. .HasColumnType("INTEGER");
  172. b.Property<string>("Client")
  173. .IsRequired()
  174. .HasMaxLength(32)
  175. .HasColumnType("TEXT");
  176. b.Property<int?>("IndexBy")
  177. .HasColumnType("INTEGER");
  178. b.Property<Guid>("ItemId")
  179. .HasColumnType("TEXT");
  180. b.Property<bool>("RememberIndexing")
  181. .HasColumnType("INTEGER");
  182. b.Property<bool>("RememberSorting")
  183. .HasColumnType("INTEGER");
  184. b.Property<string>("SortBy")
  185. .IsRequired()
  186. .HasMaxLength(64)
  187. .HasColumnType("TEXT");
  188. b.Property<int>("SortOrder")
  189. .HasColumnType("INTEGER");
  190. b.Property<Guid>("UserId")
  191. .HasColumnType("TEXT");
  192. b.Property<int>("ViewType")
  193. .HasColumnType("INTEGER");
  194. b.HasKey("Id");
  195. b.HasIndex("UserId");
  196. b.ToTable("ItemDisplayPreferences");
  197. });
  198. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  199. {
  200. b.Property<int>("Id")
  201. .ValueGeneratedOnAdd()
  202. .HasColumnType("INTEGER");
  203. b.Property<int>("Kind")
  204. .HasColumnType("INTEGER");
  205. b.Property<Guid?>("Permission_Permissions_Guid")
  206. .HasColumnType("TEXT");
  207. b.Property<uint>("RowVersion")
  208. .IsConcurrencyToken()
  209. .HasColumnType("INTEGER");
  210. b.Property<bool>("Value")
  211. .HasColumnType("INTEGER");
  212. b.HasKey("Id");
  213. b.HasIndex("Permission_Permissions_Guid");
  214. b.ToTable("Permissions");
  215. });
  216. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  217. {
  218. b.Property<int>("Id")
  219. .ValueGeneratedOnAdd()
  220. .HasColumnType("INTEGER");
  221. b.Property<int>("Kind")
  222. .HasColumnType("INTEGER");
  223. b.Property<Guid?>("Preference_Preferences_Guid")
  224. .HasColumnType("TEXT");
  225. b.Property<uint>("RowVersion")
  226. .IsConcurrencyToken()
  227. .HasColumnType("INTEGER");
  228. b.Property<string>("Value")
  229. .IsRequired()
  230. .HasMaxLength(65535)
  231. .HasColumnType("TEXT");
  232. b.HasKey("Id");
  233. b.HasIndex("Preference_Preferences_Guid");
  234. b.ToTable("Preferences");
  235. });
  236. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  237. {
  238. b.Property<Guid>("Id")
  239. .ValueGeneratedOnAdd()
  240. .HasColumnType("TEXT");
  241. b.Property<string>("AudioLanguagePreference")
  242. .HasMaxLength(255)
  243. .HasColumnType("TEXT");
  244. b.Property<string>("AuthenticationProviderId")
  245. .IsRequired()
  246. .HasMaxLength(255)
  247. .HasColumnType("TEXT");
  248. b.Property<bool>("DisplayCollectionsView")
  249. .HasColumnType("INTEGER");
  250. b.Property<bool>("DisplayMissingEpisodes")
  251. .HasColumnType("INTEGER");
  252. b.Property<string>("EasyPassword")
  253. .HasMaxLength(65535)
  254. .HasColumnType("TEXT");
  255. b.Property<bool>("EnableAutoLogin")
  256. .HasColumnType("INTEGER");
  257. b.Property<bool>("EnableLocalPassword")
  258. .HasColumnType("INTEGER");
  259. b.Property<bool>("EnableNextEpisodeAutoPlay")
  260. .HasColumnType("INTEGER");
  261. b.Property<bool>("EnableUserPreferenceAccess")
  262. .HasColumnType("INTEGER");
  263. b.Property<bool>("HidePlayedInLatest")
  264. .HasColumnType("INTEGER");
  265. b.Property<long>("InternalId")
  266. .HasColumnType("INTEGER");
  267. b.Property<int>("InvalidLoginAttemptCount")
  268. .HasColumnType("INTEGER");
  269. b.Property<DateTime?>("LastActivityDate")
  270. .HasColumnType("TEXT");
  271. b.Property<DateTime?>("LastLoginDate")
  272. .HasColumnType("TEXT");
  273. b.Property<int?>("LoginAttemptsBeforeLockout")
  274. .HasColumnType("INTEGER");
  275. b.Property<int>("MaxActiveSessions")
  276. .HasColumnType("INTEGER");
  277. b.Property<int?>("MaxParentalAgeRating")
  278. .HasColumnType("INTEGER");
  279. b.Property<bool>("MustUpdatePassword")
  280. .HasColumnType("INTEGER");
  281. b.Property<string>("Password")
  282. .HasMaxLength(65535)
  283. .HasColumnType("TEXT");
  284. b.Property<string>("PasswordResetProviderId")
  285. .IsRequired()
  286. .HasMaxLength(255)
  287. .HasColumnType("TEXT");
  288. b.Property<bool>("PlayDefaultAudioTrack")
  289. .HasColumnType("INTEGER");
  290. b.Property<bool>("RememberAudioSelections")
  291. .HasColumnType("INTEGER");
  292. b.Property<bool>("RememberSubtitleSelections")
  293. .HasColumnType("INTEGER");
  294. b.Property<int?>("RemoteClientBitrateLimit")
  295. .HasColumnType("INTEGER");
  296. b.Property<uint>("RowVersion")
  297. .IsConcurrencyToken()
  298. .HasColumnType("INTEGER");
  299. b.Property<string>("SubtitleLanguagePreference")
  300. .HasMaxLength(255)
  301. .HasColumnType("TEXT");
  302. b.Property<int>("SubtitleMode")
  303. .HasColumnType("INTEGER");
  304. b.Property<int>("SyncPlayAccess")
  305. .HasColumnType("INTEGER");
  306. b.Property<string>("Username")
  307. .IsRequired()
  308. .HasMaxLength(255)
  309. .HasColumnType("TEXT");
  310. b.HasKey("Id");
  311. b.ToTable("Users");
  312. });
  313. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  314. {
  315. b.HasOne("Jellyfin.Data.Entities.User", null)
  316. .WithMany("AccessSchedules")
  317. .HasForeignKey("UserId")
  318. .OnDelete(DeleteBehavior.Cascade)
  319. .IsRequired();
  320. });
  321. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  322. {
  323. b.HasOne("Jellyfin.Data.Entities.User", null)
  324. .WithMany("DisplayPreferences")
  325. .HasForeignKey("UserId")
  326. .OnDelete(DeleteBehavior.Cascade)
  327. .IsRequired();
  328. });
  329. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  330. {
  331. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  332. .WithMany("HomeSections")
  333. .HasForeignKey("DisplayPreferencesId")
  334. .OnDelete(DeleteBehavior.Cascade)
  335. .IsRequired();
  336. });
  337. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  338. {
  339. b.HasOne("Jellyfin.Data.Entities.User", null)
  340. .WithOne("ProfileImage")
  341. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  342. });
  343. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  344. {
  345. b.HasOne("Jellyfin.Data.Entities.User", null)
  346. .WithMany("ItemDisplayPreferences")
  347. .HasForeignKey("UserId")
  348. .OnDelete(DeleteBehavior.Cascade)
  349. .IsRequired();
  350. });
  351. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  352. {
  353. b.HasOne("Jellyfin.Data.Entities.User", null)
  354. .WithMany("Permissions")
  355. .HasForeignKey("Permission_Permissions_Guid");
  356. });
  357. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  358. {
  359. b.HasOne("Jellyfin.Data.Entities.User", null)
  360. .WithMany("Preferences")
  361. .HasForeignKey("Preference_Preferences_Guid");
  362. });
  363. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  364. {
  365. b.Navigation("HomeSections");
  366. });
  367. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  368. {
  369. b.Navigation("AccessSchedules");
  370. b.Navigation("DisplayPreferences");
  371. b.Navigation("ItemDisplayPreferences");
  372. b.Navigation("Permissions");
  373. b.Navigation("Preferences");
  374. b.Navigation("ProfileImage");
  375. });
  376. #pragma warning restore 612, 618
  377. }
  378. }
  379. }