20200728005145_AddDisplayPreferences.Designer.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  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("20200728005145_AddDisplayPreferences")]
  13. partial class AddDisplayPreferences
  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.6");
  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. .IsUnique();
  108. b.ToTable("DisplayPreferences");
  109. });
  110. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  111. {
  112. b.Property<int>("Id")
  113. .ValueGeneratedOnAdd()
  114. .HasColumnType("INTEGER");
  115. b.Property<int>("DisplayPreferencesId")
  116. .HasColumnType("INTEGER");
  117. b.Property<int>("Order")
  118. .HasColumnType("INTEGER");
  119. b.Property<int>("Type")
  120. .HasColumnType("INTEGER");
  121. b.HasKey("Id");
  122. b.HasIndex("DisplayPreferencesId");
  123. b.ToTable("HomeSection");
  124. });
  125. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  126. {
  127. b.Property<int>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasColumnType("INTEGER");
  130. b.Property<DateTime>("LastModified")
  131. .HasColumnType("TEXT");
  132. b.Property<string>("Path")
  133. .IsRequired()
  134. .HasColumnType("TEXT")
  135. .HasMaxLength(512);
  136. b.Property<Guid?>("UserId")
  137. .HasColumnType("TEXT");
  138. b.HasKey("Id");
  139. b.HasIndex("UserId")
  140. .IsUnique();
  141. b.ToTable("ImageInfos");
  142. });
  143. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  144. {
  145. b.Property<int>("Id")
  146. .ValueGeneratedOnAdd()
  147. .HasColumnType("INTEGER");
  148. b.Property<string>("Client")
  149. .IsRequired()
  150. .HasColumnType("TEXT")
  151. .HasMaxLength(32);
  152. b.Property<int?>("IndexBy")
  153. .HasColumnType("INTEGER");
  154. b.Property<Guid>("ItemId")
  155. .HasColumnType("TEXT");
  156. b.Property<bool>("RememberIndexing")
  157. .HasColumnType("INTEGER");
  158. b.Property<bool>("RememberSorting")
  159. .HasColumnType("INTEGER");
  160. b.Property<string>("SortBy")
  161. .IsRequired()
  162. .HasColumnType("TEXT")
  163. .HasMaxLength(64);
  164. b.Property<int>("SortOrder")
  165. .HasColumnType("INTEGER");
  166. b.Property<Guid>("UserId")
  167. .HasColumnType("TEXT");
  168. b.Property<int>("ViewType")
  169. .HasColumnType("INTEGER");
  170. b.HasKey("Id");
  171. b.HasIndex("UserId");
  172. b.ToTable("ItemDisplayPreferences");
  173. });
  174. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  175. {
  176. b.Property<int>("Id")
  177. .ValueGeneratedOnAdd()
  178. .HasColumnType("INTEGER");
  179. b.Property<int>("Kind")
  180. .HasColumnType("INTEGER");
  181. b.Property<Guid?>("Permission_Permissions_Guid")
  182. .HasColumnType("TEXT");
  183. b.Property<uint>("RowVersion")
  184. .IsConcurrencyToken()
  185. .HasColumnType("INTEGER");
  186. b.Property<bool>("Value")
  187. .HasColumnType("INTEGER");
  188. b.HasKey("Id");
  189. b.HasIndex("Permission_Permissions_Guid");
  190. b.ToTable("Permissions");
  191. });
  192. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  193. {
  194. b.Property<int>("Id")
  195. .ValueGeneratedOnAdd()
  196. .HasColumnType("INTEGER");
  197. b.Property<int>("Kind")
  198. .HasColumnType("INTEGER");
  199. b.Property<Guid?>("Preference_Preferences_Guid")
  200. .HasColumnType("TEXT");
  201. b.Property<uint>("RowVersion")
  202. .IsConcurrencyToken()
  203. .HasColumnType("INTEGER");
  204. b.Property<string>("Value")
  205. .IsRequired()
  206. .HasColumnType("TEXT")
  207. .HasMaxLength(65535);
  208. b.HasKey("Id");
  209. b.HasIndex("Preference_Preferences_Guid");
  210. b.ToTable("Preferences");
  211. });
  212. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  213. {
  214. b.Property<Guid>("Id")
  215. .ValueGeneratedOnAdd()
  216. .HasColumnType("TEXT");
  217. b.Property<string>("AudioLanguagePreference")
  218. .HasColumnType("TEXT")
  219. .HasMaxLength(255);
  220. b.Property<string>("AuthenticationProviderId")
  221. .IsRequired()
  222. .HasColumnType("TEXT")
  223. .HasMaxLength(255);
  224. b.Property<bool>("DisplayCollectionsView")
  225. .HasColumnType("INTEGER");
  226. b.Property<bool>("DisplayMissingEpisodes")
  227. .HasColumnType("INTEGER");
  228. b.Property<string>("EasyPassword")
  229. .HasColumnType("TEXT")
  230. .HasMaxLength(65535);
  231. b.Property<bool>("EnableAutoLogin")
  232. .HasColumnType("INTEGER");
  233. b.Property<bool>("EnableLocalPassword")
  234. .HasColumnType("INTEGER");
  235. b.Property<bool>("EnableNextEpisodeAutoPlay")
  236. .HasColumnType("INTEGER");
  237. b.Property<bool>("EnableUserPreferenceAccess")
  238. .HasColumnType("INTEGER");
  239. b.Property<bool>("HidePlayedInLatest")
  240. .HasColumnType("INTEGER");
  241. b.Property<long>("InternalId")
  242. .HasColumnType("INTEGER");
  243. b.Property<int>("InvalidLoginAttemptCount")
  244. .HasColumnType("INTEGER");
  245. b.Property<DateTime?>("LastActivityDate")
  246. .HasColumnType("TEXT");
  247. b.Property<DateTime?>("LastLoginDate")
  248. .HasColumnType("TEXT");
  249. b.Property<int?>("LoginAttemptsBeforeLockout")
  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. }