20200717233541_AddDisplayPreferences.Designer.cs 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  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(JellyfinDb))]
  12. [Migration("20200717233541_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.5");
  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(64);
  83. b.Property<bool>("EnableNextVideoInfoOverlay")
  84. .HasColumnType("INTEGER");
  85. b.Property<int?>("IndexBy")
  86. .HasColumnType("INTEGER");
  87. b.Property<Guid?>("ItemId")
  88. .HasColumnType("TEXT");
  89. b.Property<bool>("RememberIndexing")
  90. .HasColumnType("INTEGER");
  91. b.Property<bool>("RememberSorting")
  92. .HasColumnType("INTEGER");
  93. b.Property<int>("ScrollDirection")
  94. .HasColumnType("INTEGER");
  95. b.Property<bool>("ShowBackdrop")
  96. .HasColumnType("INTEGER");
  97. b.Property<bool>("ShowSidebar")
  98. .HasColumnType("INTEGER");
  99. b.Property<int>("SkipBackwardLength")
  100. .HasColumnType("INTEGER");
  101. b.Property<int>("SkipForwardLength")
  102. .HasColumnType("INTEGER");
  103. b.Property<string>("SortBy")
  104. .HasColumnType("TEXT")
  105. .HasMaxLength(64);
  106. b.Property<int>("SortOrder")
  107. .HasColumnType("INTEGER");
  108. b.Property<Guid>("UserId")
  109. .HasColumnType("TEXT");
  110. b.Property<int?>("ViewType")
  111. .HasColumnType("INTEGER");
  112. b.HasKey("Id");
  113. b.HasIndex("UserId");
  114. b.ToTable("DisplayPreferences");
  115. });
  116. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  117. {
  118. b.Property<int>("Id")
  119. .ValueGeneratedOnAdd()
  120. .HasColumnType("INTEGER");
  121. b.Property<int>("DisplayPreferencesId")
  122. .HasColumnType("INTEGER");
  123. b.Property<int>("Order")
  124. .HasColumnType("INTEGER");
  125. b.Property<int>("Type")
  126. .HasColumnType("INTEGER");
  127. b.HasKey("Id");
  128. b.HasIndex("DisplayPreferencesId");
  129. b.ToTable("HomeSection");
  130. });
  131. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  132. {
  133. b.Property<int>("Id")
  134. .ValueGeneratedOnAdd()
  135. .HasColumnType("INTEGER");
  136. b.Property<DateTime>("LastModified")
  137. .HasColumnType("TEXT");
  138. b.Property<string>("Path")
  139. .IsRequired()
  140. .HasColumnType("TEXT")
  141. .HasMaxLength(512);
  142. b.Property<Guid?>("UserId")
  143. .HasColumnType("TEXT");
  144. b.HasKey("Id");
  145. b.HasIndex("UserId")
  146. .IsUnique();
  147. b.ToTable("ImageInfos");
  148. });
  149. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  150. {
  151. b.Property<int>("Id")
  152. .ValueGeneratedOnAdd()
  153. .HasColumnType("INTEGER");
  154. b.Property<int>("Kind")
  155. .HasColumnType("INTEGER");
  156. b.Property<Guid?>("Permission_Permissions_Guid")
  157. .HasColumnType("TEXT");
  158. b.Property<uint>("RowVersion")
  159. .IsConcurrencyToken()
  160. .HasColumnType("INTEGER");
  161. b.Property<bool>("Value")
  162. .HasColumnType("INTEGER");
  163. b.HasKey("Id");
  164. b.HasIndex("Permission_Permissions_Guid");
  165. b.ToTable("Permissions");
  166. });
  167. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  168. {
  169. b.Property<int>("Id")
  170. .ValueGeneratedOnAdd()
  171. .HasColumnType("INTEGER");
  172. b.Property<int>("Kind")
  173. .HasColumnType("INTEGER");
  174. b.Property<Guid?>("Preference_Preferences_Guid")
  175. .HasColumnType("TEXT");
  176. b.Property<uint>("RowVersion")
  177. .IsConcurrencyToken()
  178. .HasColumnType("INTEGER");
  179. b.Property<string>("Value")
  180. .IsRequired()
  181. .HasColumnType("TEXT")
  182. .HasMaxLength(65535);
  183. b.HasKey("Id");
  184. b.HasIndex("Preference_Preferences_Guid");
  185. b.ToTable("Preferences");
  186. });
  187. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  188. {
  189. b.Property<Guid>("Id")
  190. .ValueGeneratedOnAdd()
  191. .HasColumnType("TEXT");
  192. b.Property<string>("AudioLanguagePreference")
  193. .HasColumnType("TEXT")
  194. .HasMaxLength(255);
  195. b.Property<string>("AuthenticationProviderId")
  196. .IsRequired()
  197. .HasColumnType("TEXT")
  198. .HasMaxLength(255);
  199. b.Property<bool>("DisplayCollectionsView")
  200. .HasColumnType("INTEGER");
  201. b.Property<bool>("DisplayMissingEpisodes")
  202. .HasColumnType("INTEGER");
  203. b.Property<string>("EasyPassword")
  204. .HasColumnType("TEXT")
  205. .HasMaxLength(65535);
  206. b.Property<bool>("EnableAutoLogin")
  207. .HasColumnType("INTEGER");
  208. b.Property<bool>("EnableLocalPassword")
  209. .HasColumnType("INTEGER");
  210. b.Property<bool>("EnableNextEpisodeAutoPlay")
  211. .HasColumnType("INTEGER");
  212. b.Property<bool>("EnableUserPreferenceAccess")
  213. .HasColumnType("INTEGER");
  214. b.Property<bool>("HidePlayedInLatest")
  215. .HasColumnType("INTEGER");
  216. b.Property<long>("InternalId")
  217. .HasColumnType("INTEGER");
  218. b.Property<int>("InvalidLoginAttemptCount")
  219. .HasColumnType("INTEGER");
  220. b.Property<DateTime?>("LastActivityDate")
  221. .HasColumnType("TEXT");
  222. b.Property<DateTime?>("LastLoginDate")
  223. .HasColumnType("TEXT");
  224. b.Property<int?>("LoginAttemptsBeforeLockout")
  225. .HasColumnType("INTEGER");
  226. b.Property<int?>("MaxParentalAgeRating")
  227. .HasColumnType("INTEGER");
  228. b.Property<bool>("MustUpdatePassword")
  229. .HasColumnType("INTEGER");
  230. b.Property<string>("Password")
  231. .HasColumnType("TEXT")
  232. .HasMaxLength(65535);
  233. b.Property<string>("PasswordResetProviderId")
  234. .IsRequired()
  235. .HasColumnType("TEXT")
  236. .HasMaxLength(255);
  237. b.Property<bool>("PlayDefaultAudioTrack")
  238. .HasColumnType("INTEGER");
  239. b.Property<bool>("RememberAudioSelections")
  240. .HasColumnType("INTEGER");
  241. b.Property<bool>("RememberSubtitleSelections")
  242. .HasColumnType("INTEGER");
  243. b.Property<int?>("RemoteClientBitrateLimit")
  244. .HasColumnType("INTEGER");
  245. b.Property<uint>("RowVersion")
  246. .IsConcurrencyToken()
  247. .HasColumnType("INTEGER");
  248. b.Property<string>("SubtitleLanguagePreference")
  249. .HasColumnType("TEXT")
  250. .HasMaxLength(255);
  251. b.Property<int>("SubtitleMode")
  252. .HasColumnType("INTEGER");
  253. b.Property<int>("SyncPlayAccess")
  254. .HasColumnType("INTEGER");
  255. b.Property<string>("Username")
  256. .IsRequired()
  257. .HasColumnType("TEXT")
  258. .HasMaxLength(255);
  259. b.HasKey("Id");
  260. b.ToTable("Users");
  261. });
  262. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  263. {
  264. b.HasOne("Jellyfin.Data.Entities.User", null)
  265. .WithMany("AccessSchedules")
  266. .HasForeignKey("UserId")
  267. .OnDelete(DeleteBehavior.Cascade)
  268. .IsRequired();
  269. });
  270. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  271. {
  272. b.HasOne("Jellyfin.Data.Entities.User", null)
  273. .WithMany("DisplayPreferences")
  274. .HasForeignKey("UserId")
  275. .OnDelete(DeleteBehavior.Cascade)
  276. .IsRequired();
  277. });
  278. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  279. {
  280. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  281. .WithMany("HomeSections")
  282. .HasForeignKey("DisplayPreferencesId")
  283. .OnDelete(DeleteBehavior.Cascade)
  284. .IsRequired();
  285. });
  286. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  287. {
  288. b.HasOne("Jellyfin.Data.Entities.User", null)
  289. .WithOne("ProfileImage")
  290. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  291. });
  292. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  293. {
  294. b.HasOne("Jellyfin.Data.Entities.User", null)
  295. .WithMany("Permissions")
  296. .HasForeignKey("Permission_Permissions_Guid");
  297. });
  298. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  299. {
  300. b.HasOne("Jellyfin.Data.Entities.User", null)
  301. .WithMany("Preferences")
  302. .HasForeignKey("Preference_Preferences_Guid");
  303. });
  304. #pragma warning restore 612, 618
  305. }
  306. }
  307. }