JellyfinDbModelSnapshot.cs 16 KB

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