20200531020729_AddUsers.Designer.cs 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  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("20200531020729_AddUsers")]
  14. partial class AddUsers
  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.4");
  22. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  23. {
  24. b.Property<int>("Id")
  25. .ValueGeneratedOnAdd()
  26. .HasColumnType("INTEGER");
  27. b.Property<int>("DayOfWeek")
  28. .HasColumnType("INTEGER");
  29. b.Property<double>("EndHour")
  30. .HasColumnType("REAL");
  31. b.Property<double>("StartHour")
  32. .HasColumnType("REAL");
  33. b.Property<Guid>("UserId")
  34. .HasColumnType("TEXT");
  35. b.HasKey("Id");
  36. b.HasIndex("UserId");
  37. b.ToTable("AccessSchedule");
  38. });
  39. modelBuilder.Entity("Jellyfin.Data.Entities.ActivityLog", b =>
  40. {
  41. b.Property<int>("Id")
  42. .ValueGeneratedOnAdd()
  43. .HasColumnType("INTEGER");
  44. b.Property<DateTime>("DateCreated")
  45. .HasColumnType("TEXT");
  46. b.Property<string>("ItemId")
  47. .HasColumnType("TEXT")
  48. .HasMaxLength(256);
  49. b.Property<int>("LogSeverity")
  50. .HasColumnType("INTEGER");
  51. b.Property<string>("Name")
  52. .IsRequired()
  53. .HasColumnType("TEXT")
  54. .HasMaxLength(512);
  55. b.Property<string>("Overview")
  56. .HasColumnType("TEXT")
  57. .HasMaxLength(512);
  58. b.Property<uint>("RowVersion")
  59. .IsConcurrencyToken()
  60. .HasColumnType("INTEGER");
  61. b.Property<string>("ShortOverview")
  62. .HasColumnType("TEXT")
  63. .HasMaxLength(512);
  64. b.Property<string>("Type")
  65. .IsRequired()
  66. .HasColumnType("TEXT")
  67. .HasMaxLength(256);
  68. b.Property<Guid>("UserId")
  69. .HasColumnType("TEXT");
  70. b.HasKey("Id");
  71. b.ToTable("ActivityLogs");
  72. });
  73. modelBuilder.Entity("Jellyfin.Data.Entities.ImageInfo", b =>
  74. {
  75. b.Property<int>("Id")
  76. .ValueGeneratedOnAdd()
  77. .HasColumnType("INTEGER");
  78. b.Property<DateTime>("LastModified")
  79. .HasColumnType("TEXT");
  80. b.Property<string>("Path")
  81. .IsRequired()
  82. .HasColumnType("TEXT")
  83. .HasMaxLength(512);
  84. b.HasKey("Id");
  85. b.ToTable("ImageInfo");
  86. });
  87. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  88. {
  89. b.Property<int>("Id")
  90. .ValueGeneratedOnAdd()
  91. .HasColumnType("INTEGER");
  92. b.Property<int>("Kind")
  93. .HasColumnType("INTEGER");
  94. b.Property<Guid?>("Permission_Permissions_Guid")
  95. .HasColumnType("TEXT");
  96. b.Property<uint>("RowVersion")
  97. .IsConcurrencyToken()
  98. .HasColumnType("INTEGER");
  99. b.Property<bool>("Value")
  100. .HasColumnType("INTEGER");
  101. b.HasKey("Id");
  102. b.HasIndex("Permission_Permissions_Guid");
  103. b.ToTable("Permissions");
  104. });
  105. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  106. {
  107. b.Property<int>("Id")
  108. .ValueGeneratedOnAdd()
  109. .HasColumnType("INTEGER");
  110. b.Property<int>("Kind")
  111. .HasColumnType("INTEGER");
  112. b.Property<Guid?>("Preference_Preferences_Guid")
  113. .HasColumnType("TEXT");
  114. b.Property<uint>("RowVersion")
  115. .IsConcurrencyToken()
  116. .HasColumnType("INTEGER");
  117. b.Property<string>("Value")
  118. .IsRequired()
  119. .HasColumnType("TEXT")
  120. .HasMaxLength(65535);
  121. b.HasKey("Id");
  122. b.HasIndex("Preference_Preferences_Guid");
  123. b.ToTable("Preferences");
  124. });
  125. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  126. {
  127. b.Property<Guid>("Id")
  128. .ValueGeneratedOnAdd()
  129. .HasColumnType("TEXT");
  130. b.Property<string>("AudioLanguagePreference")
  131. .HasColumnType("TEXT")
  132. .HasMaxLength(255);
  133. b.Property<string>("AuthenticationProviderId")
  134. .IsRequired()
  135. .HasColumnType("TEXT")
  136. .HasMaxLength(255);
  137. b.Property<bool>("DisplayCollectionsView")
  138. .HasColumnType("INTEGER");
  139. b.Property<bool>("DisplayMissingEpisodes")
  140. .HasColumnType("INTEGER");
  141. b.Property<string>("EasyPassword")
  142. .HasColumnType("TEXT")
  143. .HasMaxLength(65535);
  144. b.Property<bool>("EnableAutoLogin")
  145. .HasColumnType("INTEGER");
  146. b.Property<bool>("EnableLocalPassword")
  147. .HasColumnType("INTEGER");
  148. b.Property<bool>("EnableNextEpisodeAutoPlay")
  149. .HasColumnType("INTEGER");
  150. b.Property<bool>("EnableUserPreferenceAccess")
  151. .HasColumnType("INTEGER");
  152. b.Property<bool>("HidePlayedInLatest")
  153. .HasColumnType("INTEGER");
  154. b.Property<long>("InternalId")
  155. .HasColumnType("INTEGER");
  156. b.Property<int>("InvalidLoginAttemptCount")
  157. .HasColumnType("INTEGER");
  158. b.Property<DateTime?>("LastActivityDate")
  159. .HasColumnType("TEXT");
  160. b.Property<DateTime?>("LastLoginDate")
  161. .HasColumnType("TEXT");
  162. b.Property<int?>("LoginAttemptsBeforeLockout")
  163. .HasColumnType("INTEGER");
  164. b.Property<int?>("MaxParentalAgeRating")
  165. .HasColumnType("INTEGER");
  166. b.Property<bool>("MustUpdatePassword")
  167. .HasColumnType("INTEGER");
  168. b.Property<string>("Password")
  169. .HasColumnType("TEXT")
  170. .HasMaxLength(65535);
  171. b.Property<string>("PasswordResetProviderId")
  172. .IsRequired()
  173. .HasColumnType("TEXT")
  174. .HasMaxLength(255);
  175. b.Property<bool>("PlayDefaultAudioTrack")
  176. .HasColumnType("INTEGER");
  177. b.Property<int?>("ProfileImageId")
  178. .HasColumnType("INTEGER");
  179. b.Property<bool>("RememberAudioSelections")
  180. .HasColumnType("INTEGER");
  181. b.Property<bool>("RememberSubtitleSelections")
  182. .HasColumnType("INTEGER");
  183. b.Property<int?>("RemoteClientBitrateLimit")
  184. .HasColumnType("INTEGER");
  185. b.Property<uint>("RowVersion")
  186. .IsConcurrencyToken()
  187. .HasColumnType("INTEGER");
  188. b.Property<string>("SubtitleLanguagePreference")
  189. .HasColumnType("TEXT")
  190. .HasMaxLength(255);
  191. b.Property<int>("SubtitleMode")
  192. .HasColumnType("INTEGER");
  193. b.Property<int>("SyncPlayAccess")
  194. .HasColumnType("INTEGER");
  195. b.Property<string>("Username")
  196. .IsRequired()
  197. .HasColumnType("TEXT")
  198. .HasMaxLength(255);
  199. b.HasKey("Id");
  200. b.HasIndex("ProfileImageId");
  201. b.ToTable("Users");
  202. });
  203. modelBuilder.Entity("Jellyfin.Data.Entities.AccessSchedule", b =>
  204. {
  205. b.HasOne("Jellyfin.Data.Entities.User", null)
  206. .WithMany("AccessSchedules")
  207. .HasForeignKey("UserId")
  208. .OnDelete(DeleteBehavior.Cascade)
  209. .IsRequired();
  210. });
  211. modelBuilder.Entity("Jellyfin.Data.Entities.Permission", b =>
  212. {
  213. b.HasOne("Jellyfin.Data.Entities.User", null)
  214. .WithMany("Permissions")
  215. .HasForeignKey("Permission_Permissions_Guid");
  216. });
  217. modelBuilder.Entity("Jellyfin.Data.Entities.Preference", b =>
  218. {
  219. b.HasOne("Jellyfin.Data.Entities.User", null)
  220. .WithMany("Preferences")
  221. .HasForeignKey("Preference_Preferences_Guid");
  222. });
  223. modelBuilder.Entity("Jellyfin.Data.Entities.User", b =>
  224. {
  225. b.HasOne("Jellyfin.Data.Entities.ImageInfo", "ProfileImage")
  226. .WithMany()
  227. .HasForeignKey("ProfileImageId");
  228. });
  229. #pragma warning restore 612, 618
  230. }
  231. }
  232. }