20200905220533_FixDisplayPreferencesIndex.Designer.cs 16 KB

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