2
0

JellyfinDbModelSnapshot.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  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", "3.1.8");
  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. .HasColumnType("TEXT")
  44. .HasMaxLength(256);
  45. b.Property<int>("LogSeverity")
  46. .HasColumnType("INTEGER");
  47. b.Property<string>("Name")
  48. .IsRequired()
  49. .HasColumnType("TEXT")
  50. .HasMaxLength(512);
  51. b.Property<string>("Overview")
  52. .HasColumnType("TEXT")
  53. .HasMaxLength(512);
  54. b.Property<uint>("RowVersion")
  55. .IsConcurrencyToken()
  56. .HasColumnType("INTEGER");
  57. b.Property<string>("ShortOverview")
  58. .HasColumnType("TEXT")
  59. .HasMaxLength(512);
  60. b.Property<string>("Type")
  61. .IsRequired()
  62. .HasColumnType("TEXT")
  63. .HasMaxLength(256);
  64. b.Property<Guid>("UserId")
  65. .HasColumnType("TEXT");
  66. b.HasKey("Id");
  67. b.ToTable("ActivityLogs");
  68. });
  69. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  70. {
  71. b.Property<int>("Id")
  72. .ValueGeneratedOnAdd()
  73. .HasColumnType("INTEGER");
  74. b.Property<int>("ChromecastVersion")
  75. .HasColumnType("INTEGER");
  76. b.Property<string>("Client")
  77. .IsRequired()
  78. .HasColumnType("TEXT")
  79. .HasMaxLength(32);
  80. b.Property<string>("DashboardTheme")
  81. .HasColumnType("TEXT")
  82. .HasMaxLength(32);
  83. b.Property<bool>("EnableNextVideoInfoOverlay")
  84. .HasColumnType("INTEGER");
  85. b.Property<int?>("IndexBy")
  86. .HasColumnType("INTEGER");
  87. b.Property<int>("ScrollDirection")
  88. .HasColumnType("INTEGER");
  89. b.Property<bool>("ShowBackdrop")
  90. .HasColumnType("INTEGER");
  91. b.Property<bool>("ShowSidebar")
  92. .HasColumnType("INTEGER");
  93. b.Property<int>("SkipBackwardLength")
  94. .HasColumnType("INTEGER");
  95. b.Property<int>("SkipForwardLength")
  96. .HasColumnType("INTEGER");
  97. b.Property<string>("TvHome")
  98. .HasColumnType("TEXT")
  99. .HasMaxLength(32);
  100. b.Property<Guid>("UserId")
  101. .HasColumnType("TEXT");
  102. b.HasKey("Id");
  103. b.HasIndex("UserId");
  104. b.HasIndex("UserId", "Client")
  105. .IsUnique();
  106. b.ToTable("DisplayPreferences");
  107. });
  108. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  109. {
  110. b.Property<int>("Id")
  111. .ValueGeneratedOnAdd()
  112. .HasColumnType("INTEGER");
  113. b.Property<int>("DisplayPreferencesId")
  114. .HasColumnType("INTEGER");
  115. b.Property<int>("Order")
  116. .HasColumnType("INTEGER");
  117. b.Property<int>("Type")
  118. .HasColumnType("INTEGER");
  119. b.HasKey("Id");
  120. b.HasIndex("DisplayPreferencesId");
  121. b.ToTable("HomeSection");
  122. });
  123. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  124. {
  125. b.Property<int>("Id")
  126. .ValueGeneratedOnAdd()
  127. .HasColumnType("INTEGER");
  128. b.Property<DateTime>("LastModified")
  129. .HasColumnType("TEXT");
  130. b.Property<string>("Path")
  131. .IsRequired()
  132. .HasColumnType("TEXT")
  133. .HasMaxLength(512);
  134. b.Property<Guid?>("UserId")
  135. .HasColumnType("TEXT");
  136. b.HasKey("Id");
  137. b.HasIndex("UserId")
  138. .IsUnique();
  139. b.ToTable("ImageInfos");
  140. });
  141. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  142. {
  143. b.Property<int>("Id")
  144. .ValueGeneratedOnAdd()
  145. .HasColumnType("INTEGER");
  146. b.Property<string>("Client")
  147. .IsRequired()
  148. .HasColumnType("TEXT")
  149. .HasMaxLength(32);
  150. b.Property<int?>("IndexBy")
  151. .HasColumnType("INTEGER");
  152. b.Property<Guid>("ItemId")
  153. .HasColumnType("TEXT");
  154. b.Property<bool>("RememberIndexing")
  155. .HasColumnType("INTEGER");
  156. b.Property<bool>("RememberSorting")
  157. .HasColumnType("INTEGER");
  158. b.Property<string>("SortBy")
  159. .IsRequired()
  160. .HasColumnType("TEXT")
  161. .HasMaxLength(64);
  162. b.Property<int>("SortOrder")
  163. .HasColumnType("INTEGER");
  164. b.Property<Guid>("UserId")
  165. .HasColumnType("TEXT");
  166. b.Property<int>("ViewType")
  167. .HasColumnType("INTEGER");
  168. b.HasKey("Id");
  169. b.HasIndex("UserId");
  170. b.ToTable("ItemDisplayPreferences");
  171. });
  172. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  173. {
  174. b.Property<int>("Id")
  175. .ValueGeneratedOnAdd()
  176. .HasColumnType("INTEGER");
  177. b.Property<int>("Kind")
  178. .HasColumnType("INTEGER");
  179. b.Property<Guid?>("Permission_Permissions_Guid")
  180. .HasColumnType("TEXT");
  181. b.Property<uint>("RowVersion")
  182. .IsConcurrencyToken()
  183. .HasColumnType("INTEGER");
  184. b.Property<bool>("Value")
  185. .HasColumnType("INTEGER");
  186. b.HasKey("Id");
  187. b.HasIndex("Permission_Permissions_Guid");
  188. b.ToTable("Permissions");
  189. });
  190. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  191. {
  192. b.Property<int>("Id")
  193. .ValueGeneratedOnAdd()
  194. .HasColumnType("INTEGER");
  195. b.Property<int>("Kind")
  196. .HasColumnType("INTEGER");
  197. b.Property<Guid?>("Preference_Preferences_Guid")
  198. .HasColumnType("TEXT");
  199. b.Property<uint>("RowVersion")
  200. .IsConcurrencyToken()
  201. .HasColumnType("INTEGER");
  202. b.Property<string>("Value")
  203. .IsRequired()
  204. .HasColumnType("TEXT")
  205. .HasMaxLength(65535);
  206. b.HasKey("Id");
  207. b.HasIndex("Preference_Preferences_Guid");
  208. b.ToTable("Preferences");
  209. });
  210. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  211. {
  212. b.Property<Guid>("Id")
  213. .ValueGeneratedOnAdd()
  214. .HasColumnType("TEXT");
  215. b.Property<string>("AudioLanguagePreference")
  216. .HasColumnType("TEXT")
  217. .HasMaxLength(255);
  218. b.Property<string>("AuthenticationProviderId")
  219. .IsRequired()
  220. .HasColumnType("TEXT")
  221. .HasMaxLength(255);
  222. b.Property<bool>("DisplayCollectionsView")
  223. .HasColumnType("INTEGER");
  224. b.Property<bool>("DisplayMissingEpisodes")
  225. .HasColumnType("INTEGER");
  226. b.Property<string>("EasyPassword")
  227. .HasColumnType("TEXT")
  228. .HasMaxLength(65535);
  229. b.Property<bool>("EnableAutoLogin")
  230. .HasColumnType("INTEGER");
  231. b.Property<bool>("EnableLocalPassword")
  232. .HasColumnType("INTEGER");
  233. b.Property<bool>("EnableNextEpisodeAutoPlay")
  234. .HasColumnType("INTEGER");
  235. b.Property<bool>("EnableUserPreferenceAccess")
  236. .HasColumnType("INTEGER");
  237. b.Property<bool>("HidePlayedInLatest")
  238. .HasColumnType("INTEGER");
  239. b.Property<long>("InternalId")
  240. .HasColumnType("INTEGER");
  241. b.Property<int>("InvalidLoginAttemptCount")
  242. .HasColumnType("INTEGER");
  243. b.Property<DateTime?>("LastActivityDate")
  244. .HasColumnType("TEXT");
  245. b.Property<DateTime?>("LastLoginDate")
  246. .HasColumnType("TEXT");
  247. b.Property<int?>("LoginAttemptsBeforeLockout")
  248. .HasColumnType("INTEGER");
  249. b.Property<int>("MaxActiveSessions")
  250. .HasColumnType("INTEGER");
  251. b.Property<int?>("MaxParentalAgeRating")
  252. .HasColumnType("INTEGER");
  253. b.Property<bool>("MustUpdatePassword")
  254. .HasColumnType("INTEGER");
  255. b.Property<string>("Password")
  256. .HasColumnType("TEXT")
  257. .HasMaxLength(65535);
  258. b.Property<string>("PasswordResetProviderId")
  259. .IsRequired()
  260. .HasColumnType("TEXT")
  261. .HasMaxLength(255);
  262. b.Property<bool>("PlayDefaultAudioTrack")
  263. .HasColumnType("INTEGER");
  264. b.Property<bool>("RememberAudioSelections")
  265. .HasColumnType("INTEGER");
  266. b.Property<bool>("RememberSubtitleSelections")
  267. .HasColumnType("INTEGER");
  268. b.Property<int?>("RemoteClientBitrateLimit")
  269. .HasColumnType("INTEGER");
  270. b.Property<uint>("RowVersion")
  271. .IsConcurrencyToken()
  272. .HasColumnType("INTEGER");
  273. b.Property<string>("SubtitleLanguagePreference")
  274. .HasColumnType("TEXT")
  275. .HasMaxLength(255);
  276. b.Property<int>("SubtitleMode")
  277. .HasColumnType("INTEGER");
  278. b.Property<int>("SyncPlayAccess")
  279. .HasColumnType("INTEGER");
  280. b.Property<string>("Username")
  281. .IsRequired()
  282. .HasColumnType("TEXT")
  283. .HasMaxLength(255);
  284. b.HasKey("Id");
  285. b.ToTable("Users");
  286. });
  287. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  288. {
  289. b.HasOne("Jellyfin.Data.Entities.User", null)
  290. .WithMany("AccessSchedules")
  291. .HasForeignKey("UserId")
  292. .OnDelete(DeleteBehavior.Cascade)
  293. .IsRequired();
  294. });
  295. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  296. {
  297. b.HasOne("Jellyfin.Data.Entities.User", null)
  298. .WithOne("DisplayPreferences")
  299. .HasForeignKey("Jellyfin.Data.Entities.DisplayPreferences", "UserId")
  300. .OnDelete(DeleteBehavior.Cascade)
  301. .IsRequired();
  302. });
  303. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  304. {
  305. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  306. .WithMany("HomeSections")
  307. .HasForeignKey("DisplayPreferencesId")
  308. .OnDelete(DeleteBehavior.Cascade)
  309. .IsRequired();
  310. });
  311. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  312. {
  313. b.HasOne("Jellyfin.Data.Entities.User", null)
  314. .WithOne("ProfileImage")
  315. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  316. });
  317. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  318. {
  319. b.HasOne("Jellyfin.Data.Entities.User", null)
  320. .WithMany("ItemDisplayPreferences")
  321. .HasForeignKey("UserId")
  322. .OnDelete(DeleteBehavior.Cascade)
  323. .IsRequired();
  324. });
  325. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  326. {
  327. b.HasOne("Jellyfin.Data.Entities.User", null)
  328. .WithMany("Permissions")
  329. .HasForeignKey("Permission_Permissions_Guid");
  330. });
  331. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  332. {
  333. b.HasOne("Jellyfin.Data.Entities.User", null)
  334. .WithMany("Preferences")
  335. .HasForeignKey("Preference_Preferences_Guid");
  336. });
  337. #pragma warning restore 612, 618
  338. }
  339. }
  340. }