20200613202153_AddUsers.Designer.cs 11 KB

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