20200613155524_AddUsers.Designer.cs 11 KB

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