20200504195702_UserSchema.Designer.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. #pragma warning disable CS1591
  2. #pragma warning disable SA1601
  3. // <auto-generated />
  4. using System;
  5. using Jellyfin.Server.Implementations;
  6. using Microsoft.EntityFrameworkCore;
  7. using Microsoft.EntityFrameworkCore.Infrastructure;
  8. using Microsoft.EntityFrameworkCore.Migrations;
  9. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  10. namespace Jellyfin.Server.Implementations.Migrations
  11. {
  12. [DbContext(typeof(JellyfinDb))]
  13. [Migration("20200504195702_UserSchema")]
  14. partial class UserSchema
  15. {
  16. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  17. {
  18. #pragma warning disable 612, 618
  19. modelBuilder
  20. .HasDefaultSchema("jellyfin")
  21. .HasAnnotation("ProductVersion", "3.1.3");
  22. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasColumnType("INTEGER");
  27. b.Property<DateTime>("DateCreated")
  28. .HasColumnType("TEXT");
  29. b.Property<string>("ItemId")
  30. .HasColumnType("TEXT")
  31. .HasMaxLength(256);
  32. b.Property<int>("LogSeverity")
  33. .HasColumnType("INTEGER");
  34. b.Property<string>("Name")
  35. .IsRequired()
  36. .HasColumnType("TEXT")
  37. .HasMaxLength(512);
  38. b.Property<string>("Overview")
  39. .HasColumnType("TEXT")
  40. .HasMaxLength(512);
  41. b.Property<uint>("RowVersion")
  42. .IsConcurrencyToken()
  43. .HasColumnType("INTEGER");
  44. b.Property<string>("ShortOverview")
  45. .HasColumnType("TEXT")
  46. .HasMaxLength(512);
  47. b.Property<string>("Type")
  48. .IsRequired()
  49. .HasColumnType("TEXT")
  50. .HasMaxLength(256);
  51. b.Property<Guid>("UserId")
  52. .HasColumnType("TEXT");
  53. b.HasKey("Id");
  54. b.ToTable("ActivityLog");
  55. });
  56. modelBuilder.Entity("Jellyfin.Data.Entities.Group", b =>
  57. {
  58. b.Property<int>("Id")
  59. .ValueGeneratedOnAdd()
  60. .HasColumnType("INTEGER");
  61. b.Property<int?>("Group_Groups_Id")
  62. .HasColumnType("INTEGER");
  63. b.Property<string>("Name")
  64. .IsRequired()
  65. .HasColumnType("TEXT")
  66. .HasMaxLength(255);
  67. b.Property<uint>("RowVersion")
  68. .IsConcurrencyToken()
  69. .HasColumnType("INTEGER");
  70. b.HasKey("Id");
  71. b.HasIndex("Group_Groups_Id");
  72. b.ToTable("Group");
  73. });
  74. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  75. {
  76. b.Property<int>("Id")
  77. .ValueGeneratedOnAdd()
  78. .HasColumnType("INTEGER");
  79. b.Property<int>("Kind")
  80. .HasColumnType("INTEGER");
  81. b.Property<int?>("Permission_GroupPermissions_Id")
  82. .HasColumnType("INTEGER");
  83. b.Property<int?>("Permission_Permissions_Id")
  84. .HasColumnType("INTEGER");
  85. b.Property<uint>("RowVersion")
  86. .IsConcurrencyToken()
  87. .HasColumnType("INTEGER");
  88. b.Property<bool>("Value")
  89. .HasColumnType("INTEGER");
  90. b.HasKey("Id");
  91. b.HasIndex("Permission_GroupPermissions_Id");
  92. b.HasIndex("Permission_Permissions_Id");
  93. b.ToTable("Permission");
  94. });
  95. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  96. {
  97. b.Property<int>("Id")
  98. .ValueGeneratedOnAdd()
  99. .HasColumnType("INTEGER");
  100. b.Property<int>("Kind")
  101. .HasColumnType("INTEGER");
  102. b.Property<int?>("Preference_Preferences_Id")
  103. .HasColumnType("INTEGER");
  104. b.Property<uint>("RowVersion")
  105. .IsConcurrencyToken()
  106. .HasColumnType("INTEGER");
  107. b.Property<string>("Value")
  108. .IsRequired()
  109. .HasColumnType("TEXT")
  110. .HasMaxLength(65535);
  111. b.HasKey("Id");
  112. b.HasIndex("Preference_Preferences_Id");
  113. b.ToTable("Preference");
  114. });
  115. modelBuilder.Entity("Jellyfin.Data.Entities.ProviderMapping", b =>
  116. {
  117. b.Property<int>("Id")
  118. .ValueGeneratedOnAdd()
  119. .HasColumnType("INTEGER");
  120. b.Property<string>("ProviderData")
  121. .IsRequired()
  122. .HasColumnType("TEXT")
  123. .HasMaxLength(65535);
  124. b.Property<int?>("ProviderMapping_ProviderMappings_Id")
  125. .HasColumnType("INTEGER");
  126. b.Property<string>("ProviderName")
  127. .IsRequired()
  128. .HasColumnType("TEXT")
  129. .HasMaxLength(255);
  130. b.Property<string>("ProviderSecrets")
  131. .IsRequired()
  132. .HasColumnType("TEXT")
  133. .HasMaxLength(65535);
  134. b.Property<uint>("RowVersion")
  135. .IsConcurrencyToken()
  136. .HasColumnType("INTEGER");
  137. b.HasKey("Id");
  138. b.HasIndex("ProviderMapping_ProviderMappings_Id");
  139. b.ToTable("ProviderMapping");
  140. });
  141. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  142. {
  143. b.Property<int>("Id")
  144. .ValueGeneratedOnAdd()
  145. .HasColumnType("INTEGER");
  146. b.Property<string>("AudioLanguagePreference")
  147. .IsRequired()
  148. .HasColumnType("TEXT")
  149. .HasMaxLength(255);
  150. b.Property<string>("AuthenticationProviderId")
  151. .IsRequired()
  152. .HasColumnType("TEXT")
  153. .HasMaxLength(255);
  154. b.Property<bool?>("DisplayCollectionsView")
  155. .HasColumnType("INTEGER");
  156. b.Property<bool?>("DisplayMissingEpisodes")
  157. .HasColumnType("INTEGER");
  158. b.Property<bool?>("EnableNextEpisodeAutoPlay")
  159. .HasColumnType("INTEGER");
  160. b.Property<bool?>("EnableUserPreferenceAccess")
  161. .HasColumnType("INTEGER");
  162. b.Property<string>("GroupedFolders")
  163. .HasColumnType("TEXT")
  164. .HasMaxLength(65535);
  165. b.Property<bool?>("HidePlayedInLatest")
  166. .HasColumnType("INTEGER");
  167. b.Property<int>("InvalidLoginAttemptCount")
  168. .HasColumnType("INTEGER");
  169. b.Property<string>("LatestItemExcludes")
  170. .HasColumnType("TEXT")
  171. .HasMaxLength(65535);
  172. b.Property<int?>("LoginAttemptsBeforeLockout")
  173. .HasColumnType("INTEGER");
  174. b.Property<bool>("MustUpdatePassword")
  175. .HasColumnType("INTEGER");
  176. b.Property<string>("MyMediaExcludes")
  177. .HasColumnType("TEXT")
  178. .HasMaxLength(65535);
  179. b.Property<string>("OrderedViews")
  180. .HasColumnType("TEXT")
  181. .HasMaxLength(65535);
  182. b.Property<string>("Password")
  183. .HasColumnType("TEXT")
  184. .HasMaxLength(65535);
  185. b.Property<bool>("PlayDefaultAudioTrack")
  186. .HasColumnType("INTEGER");
  187. b.Property<bool?>("RememberAudioSelections")
  188. .HasColumnType("INTEGER");
  189. b.Property<bool?>("RememberSubtitleSelections")
  190. .HasColumnType("INTEGER");
  191. b.Property<uint>("RowVersion")
  192. .IsConcurrencyToken()
  193. .HasColumnType("INTEGER");
  194. b.Property<string>("SubtitleLanguagePrefernce")
  195. .HasColumnType("TEXT")
  196. .HasMaxLength(255);
  197. b.Property<string>("SubtitleMode")
  198. .IsRequired()
  199. .HasColumnType("TEXT")
  200. .HasMaxLength(255);
  201. b.Property<string>("Username")
  202. .IsRequired()
  203. .HasColumnType("TEXT")
  204. .HasMaxLength(255);
  205. b.HasKey("Id");
  206. b.ToTable("User");
  207. });
  208. modelBuilder.Entity("Jellyfin.Data.Entities.Group", b =>
  209. {
  210. b.HasOne("Jellyfin.Data.Entities.User", null)
  211. .WithMany("Groups")
  212. .HasForeignKey("Group_Groups_Id");
  213. });
  214. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  215. {
  216. b.HasOne("Jellyfin.Data.Entities.Group", null)
  217. .WithMany("GroupPermissions")
  218. .HasForeignKey("Permission_GroupPermissions_Id");
  219. b.HasOne("Jellyfin.Data.Entities.User", null)
  220. .WithMany("Permissions")
  221. .HasForeignKey("Permission_Permissions_Id");
  222. });
  223. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  224. {
  225. b.HasOne("Jellyfin.Data.Entities.Group", null)
  226. .WithMany("Preferences")
  227. .HasForeignKey("Preference_Preferences_Id");
  228. b.HasOne("Jellyfin.Data.Entities.User", null)
  229. .WithMany("Preferences")
  230. .HasForeignKey("Preference_Preferences_Id");
  231. });
  232. modelBuilder.Entity("Jellyfin.Data.Entities.ProviderMapping", b =>
  233. {
  234. b.HasOne("Jellyfin.Data.Entities.Group", null)
  235. .WithMany("ProviderMappings")
  236. .HasForeignKey("ProviderMapping_ProviderMappings_Id");
  237. b.HasOne("Jellyfin.Data.Entities.User", null)
  238. .WithMany("ProviderMappings")
  239. .HasForeignKey("ProviderMapping_ProviderMappings_Id");
  240. });
  241. #pragma warning restore 612, 618
  242. }
  243. }
  244. }