20200630170339_AddDisplayPreferences.Designer.cs 14 KB

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