20200717233541_AddDisplayPreferences.Designer.cs 14 KB

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