20201004171403_MaxActiveSessions.Designer.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  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("20201004171403_MaxActiveSessions")]
  12. partial class MaxActiveSessions
  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.8");
  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(32);
  82. b.Property<string>("DashboardTheme")
  83. .HasColumnType("TEXT")
  84. .HasMaxLength(32);
  85. b.Property<bool>("EnableNextVideoInfoOverlay")
  86. .HasColumnType("INTEGER");
  87. b.Property<int?>("IndexBy")
  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<int>("SkipBackwardLength")
  96. .HasColumnType("INTEGER");
  97. b.Property<int>("SkipForwardLength")
  98. .HasColumnType("INTEGER");
  99. b.Property<string>("TvHome")
  100. .HasColumnType("TEXT")
  101. .HasMaxLength(32);
  102. b.Property<Guid>("UserId")
  103. .HasColumnType("TEXT");
  104. b.HasKey("Id");
  105. b.HasIndex("UserId");
  106. b.HasIndex("UserId", "Client")
  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?>("MaxActiveSessions")
  252. .HasColumnType("INTEGER");
  253. b.Property<int?>("MaxParentalAgeRating")
  254. .HasColumnType("INTEGER");
  255. b.Property<bool>("MustUpdatePassword")
  256. .HasColumnType("INTEGER");
  257. b.Property<string>("Password")
  258. .HasColumnType("TEXT")
  259. .HasMaxLength(65535);
  260. b.Property<string>("PasswordResetProviderId")
  261. .IsRequired()
  262. .HasColumnType("TEXT")
  263. .HasMaxLength(255);
  264. b.Property<bool>("PlayDefaultAudioTrack")
  265. .HasColumnType("INTEGER");
  266. b.Property<bool>("RememberAudioSelections")
  267. .HasColumnType("INTEGER");
  268. b.Property<bool>("RememberSubtitleSelections")
  269. .HasColumnType("INTEGER");
  270. b.Property<int?>("RemoteClientBitrateLimit")
  271. .HasColumnType("INTEGER");
  272. b.Property<uint>("RowVersion")
  273. .IsConcurrencyToken()
  274. .HasColumnType("INTEGER");
  275. b.Property<string>("SubtitleLanguagePreference")
  276. .HasColumnType("TEXT")
  277. .HasMaxLength(255);
  278. b.Property<int>("SubtitleMode")
  279. .HasColumnType("INTEGER");
  280. b.Property<int>("SyncPlayAccess")
  281. .HasColumnType("INTEGER");
  282. b.Property<string>("Username")
  283. .IsRequired()
  284. .HasColumnType("TEXT")
  285. .HasMaxLength(255);
  286. b.HasKey("Id");
  287. b.ToTable("Users");
  288. });
  289. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  290. {
  291. b.HasOne("Jellyfin.Data.Entities.User", null)
  292. .WithMany("AccessSchedules")
  293. .HasForeignKey("UserId")
  294. .OnDelete(DeleteBehavior.Cascade)
  295. .IsRequired();
  296. });
  297. modelBuilder.Entity("Jellyfin.Data.Entities.DisplayPreferences", b =>
  298. {
  299. b.HasOne("Jellyfin.Data.Entities.User", null)
  300. .WithOne("DisplayPreferences")
  301. .HasForeignKey("Jellyfin.Data.Entities.DisplayPreferences", "UserId")
  302. .OnDelete(DeleteBehavior.Cascade)
  303. .IsRequired();
  304. });
  305. modelBuilder.Entity("Jellyfin.Data.Entities.HomeSection", b =>
  306. {
  307. b.HasOne("Jellyfin.Data.Entities.DisplayPreferences", null)
  308. .WithMany("HomeSections")
  309. .HasForeignKey("DisplayPreferencesId")
  310. .OnDelete(DeleteBehavior.Cascade)
  311. .IsRequired();
  312. });
  313. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  314. {
  315. b.HasOne("Jellyfin.Data.Entities.User", null)
  316. .WithOne("ProfileImage")
  317. .HasForeignKey("Jellyfin.Data.Entities.ImageInfo", "UserId");
  318. });
  319. modelBuilder.Entity("Jellyfin.Data.Entities.ItemDisplayPreferences", b =>
  320. {
  321. b.HasOne("Jellyfin.Data.Entities.User", null)
  322. .WithMany("ItemDisplayPreferences")
  323. .HasForeignKey("UserId")
  324. .OnDelete(DeleteBehavior.Cascade)
  325. .IsRequired();
  326. });
  327. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  328. {
  329. b.HasOne("Jellyfin.Data.Entities.User", null)
  330. .WithMany("Permissions")
  331. .HasForeignKey("Permission_Permissions_Guid");
  332. });
  333. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  334. {
  335. b.HasOne("Jellyfin.Data.Entities.User", null)
  336. .WithMany("Preferences")
  337. .HasForeignKey("Preference_Preferences_Guid");
  338. });
  339. #pragma warning restore 612, 618
  340. }
  341. }
  342. }