JellyfinDbModelSnapshot.cs 14 KB

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