20241217173202_projeto-codigo3.Designer.cs 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. // <auto-generated />
  2. using System;
  3. using ConcursoProjetos.Data;
  4. using Microsoft.EntityFrameworkCore;
  5. using Microsoft.EntityFrameworkCore.Infrastructure;
  6. using Microsoft.EntityFrameworkCore.Metadata;
  7. using Microsoft.EntityFrameworkCore.Migrations;
  8. using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
  9. #nullable disable
  10. namespace ConcursoProjetos.Migrations
  11. {
  12. [DbContext(typeof(ApplicationDbContext))]
  13. [Migration("20241217173202_projeto-codigo3")]
  14. partial class projetocodigo3
  15. {
  16. /// <inheritdoc />
  17. protected override void BuildTargetModel(ModelBuilder modelBuilder)
  18. {
  19. #pragma warning disable 612, 618
  20. modelBuilder
  21. .HasAnnotation("ProductVersion", "8.0.8")
  22. .HasAnnotation("Relational:MaxIdentifierLength", 128);
  23. SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
  24. modelBuilder.Entity("ConcursoProjetos.Data.ApplicationUser", b =>
  25. {
  26. b.Property<string>("Id")
  27. .HasColumnType("nvarchar(450)");
  28. b.Property<int>("AccessFailedCount")
  29. .HasColumnType("int");
  30. b.Property<string>("ConcurrencyStamp")
  31. .IsConcurrencyToken()
  32. .HasColumnType("nvarchar(max)");
  33. b.Property<string>("Email")
  34. .HasMaxLength(256)
  35. .HasColumnType("nvarchar(256)");
  36. b.Property<bool>("EmailConfirmed")
  37. .HasColumnType("bit");
  38. b.Property<bool>("LockoutEnabled")
  39. .HasColumnType("bit");
  40. b.Property<DateTimeOffset?>("LockoutEnd")
  41. .HasColumnType("datetimeoffset");
  42. b.Property<string>("NormalizedEmail")
  43. .HasMaxLength(256)
  44. .HasColumnType("nvarchar(256)");
  45. b.Property<string>("NormalizedUserName")
  46. .HasMaxLength(256)
  47. .HasColumnType("nvarchar(256)");
  48. b.Property<string>("PasswordHash")
  49. .HasColumnType("nvarchar(max)");
  50. b.Property<string>("PhoneNumber")
  51. .HasColumnType("nvarchar(max)");
  52. b.Property<bool>("PhoneNumberConfirmed")
  53. .HasColumnType("bit");
  54. b.Property<string>("SecurityStamp")
  55. .HasColumnType("nvarchar(max)");
  56. b.Property<bool>("TwoFactorEnabled")
  57. .HasColumnType("bit");
  58. b.Property<string>("UserName")
  59. .HasMaxLength(256)
  60. .HasColumnType("nvarchar(256)");
  61. b.HasKey("Id");
  62. b.HasIndex("NormalizedEmail")
  63. .HasDatabaseName("EmailIndex");
  64. b.HasIndex("NormalizedUserName")
  65. .IsUnique()
  66. .HasDatabaseName("UserNameIndex")
  67. .HasFilter("[NormalizedUserName] IS NOT NULL");
  68. b.ToTable("AspNetUsers", (string)null);
  69. });
  70. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Candidato", b =>
  71. {
  72. b.Property<long>("Id")
  73. .ValueGeneratedOnAdd()
  74. .HasColumnType("bigint");
  75. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  76. b.Property<string>("Cnpj")
  77. .IsRequired()
  78. .HasMaxLength(14)
  79. .HasColumnType("nvarchar");
  80. b.Property<string>("Cpf")
  81. .IsRequired()
  82. .HasMaxLength(11)
  83. .HasColumnType("nvarchar");
  84. b.Property<DateTime>("DateDelete")
  85. .HasColumnType("datetime2");
  86. b.Property<DateTime>("DateInclude")
  87. .HasColumnType("datetime2");
  88. b.Property<string>("Email")
  89. .IsRequired()
  90. .HasMaxLength(100)
  91. .HasColumnType("nvarchar");
  92. b.Property<string>("EmpresaEmail")
  93. .IsRequired()
  94. .HasMaxLength(100)
  95. .HasColumnType("nvarchar");
  96. b.Property<string>("EmpresaRazaoSocial")
  97. .IsRequired()
  98. .HasMaxLength(100)
  99. .HasColumnType("nvarchar");
  100. b.Property<string>("EmpresaTelefone")
  101. .IsRequired()
  102. .HasMaxLength(20)
  103. .HasColumnType("nvarchar");
  104. b.Property<bool>("IsDeleted")
  105. .HasColumnType("bit");
  106. b.Property<string>("NomeCompleto")
  107. .IsRequired()
  108. .HasMaxLength(100)
  109. .HasColumnType("nvarchar");
  110. b.Property<string>("Telefone")
  111. .IsRequired()
  112. .HasMaxLength(20)
  113. .HasColumnType("nvarchar");
  114. b.Property<bool>("TipoPessoa")
  115. .HasColumnType("bit");
  116. b.Property<string>("UserId")
  117. .IsRequired()
  118. .HasColumnType("nvarchar(450)");
  119. b.HasKey("Id");
  120. b.HasIndex("UserId");
  121. b.ToTable("Candidato", (string)null);
  122. });
  123. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Documento", b =>
  124. {
  125. b.Property<long>("Id")
  126. .ValueGeneratedOnAdd()
  127. .HasColumnType("bigint");
  128. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  129. b.Property<string>("ArquivoNomeOriginal")
  130. .IsRequired()
  131. .HasColumnType("nvarchar(max)");
  132. b.Property<long>("ArquivoTamanhoBytes")
  133. .HasColumnType("bigint");
  134. b.Property<DateTime>("DateDelete")
  135. .HasColumnType("datetime2");
  136. b.Property<DateTime>("DateInclude")
  137. .HasColumnType("datetime2");
  138. b.Property<string>("Descricao")
  139. .IsRequired()
  140. .HasColumnType("nvarchar");
  141. b.Property<bool>("IsDeleted")
  142. .HasColumnType("bit");
  143. b.Property<long>("ProjetoId")
  144. .HasColumnType("bigint");
  145. b.Property<long>("TipoDocumentoId")
  146. .HasColumnType("bigint");
  147. b.Property<bool>("UploadCompleto")
  148. .HasColumnType("bit");
  149. b.HasKey("Id");
  150. b.HasIndex("ProjetoId");
  151. b.HasIndex("TipoDocumentoId");
  152. b.ToTable("Documento", (string)null);
  153. });
  154. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Projeto", b =>
  155. {
  156. b.Property<long>("Id")
  157. .ValueGeneratedOnAdd()
  158. .HasColumnType("bigint");
  159. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
  160. b.Property<long>("CandidatoId")
  161. .HasColumnType("bigint");
  162. b.Property<Guid>("Codigo")
  163. .HasColumnType("uniqueidentifier");
  164. b.Property<DateTime>("DateDelete")
  165. .HasColumnType("datetime2");
  166. b.Property<DateTime>("DateInclude")
  167. .HasColumnType("datetime2");
  168. b.Property<bool>("IsDeleted")
  169. .HasColumnType("bit");
  170. b.Property<string>("Nome")
  171. .IsRequired()
  172. .HasMaxLength(100)
  173. .HasColumnType("nvarchar");
  174. b.Property<int>("NumeroUnidades")
  175. .HasColumnType("int");
  176. b.Property<string>("ResponsavelTecnicoCpf")
  177. .IsRequired()
  178. .HasMaxLength(11)
  179. .HasColumnType("nvarchar");
  180. b.Property<string>("ResponsavelTecnicoEmail")
  181. .IsRequired()
  182. .HasMaxLength(100)
  183. .HasColumnType("nvarchar");
  184. b.Property<string>("ResponsavelTecnicoNomeCompleto")
  185. .IsRequired()
  186. .HasMaxLength(100)
  187. .HasColumnType("nvarchar");
  188. b.Property<string>("ResponsavelTecnicoTelefone")
  189. .IsRequired()
  190. .HasMaxLength(20)
  191. .HasColumnType("nvarchar");
  192. b.HasKey("Id");
  193. b.HasIndex("CandidatoId");
  194. b.ToTable("Projeto", (string)null);
  195. });
  196. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.TipoDocumento", b =>
  197. {
  198. b.Property<long>("Id")
  199. .HasColumnType("bigint");
  200. b.Property<string>("Descricao")
  201. .IsRequired()
  202. .HasColumnType("nvarchar");
  203. b.Property<string>("Nome")
  204. .IsRequired()
  205. .HasMaxLength(100)
  206. .HasColumnType("nvarchar");
  207. b.HasKey("Id");
  208. b.ToTable("TipoDocumento", (string)null);
  209. });
  210. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
  211. {
  212. b.Property<string>("Id")
  213. .HasColumnType("nvarchar(450)");
  214. b.Property<string>("ConcurrencyStamp")
  215. .IsConcurrencyToken()
  216. .HasColumnType("nvarchar(max)");
  217. b.Property<string>("Name")
  218. .HasMaxLength(256)
  219. .HasColumnType("nvarchar(256)");
  220. b.Property<string>("NormalizedName")
  221. .HasMaxLength(256)
  222. .HasColumnType("nvarchar(256)");
  223. b.HasKey("Id");
  224. b.HasIndex("NormalizedName")
  225. .IsUnique()
  226. .HasDatabaseName("RoleNameIndex")
  227. .HasFilter("[NormalizedName] IS NOT NULL");
  228. b.ToTable("AspNetRoles", (string)null);
  229. });
  230. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  231. {
  232. b.Property<int>("Id")
  233. .ValueGeneratedOnAdd()
  234. .HasColumnType("int");
  235. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  236. b.Property<string>("ClaimType")
  237. .HasColumnType("nvarchar(max)");
  238. b.Property<string>("ClaimValue")
  239. .HasColumnType("nvarchar(max)");
  240. b.Property<string>("RoleId")
  241. .IsRequired()
  242. .HasColumnType("nvarchar(450)");
  243. b.HasKey("Id");
  244. b.HasIndex("RoleId");
  245. b.ToTable("AspNetRoleClaims", (string)null);
  246. });
  247. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  248. {
  249. b.Property<int>("Id")
  250. .ValueGeneratedOnAdd()
  251. .HasColumnType("int");
  252. SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
  253. b.Property<string>("ClaimType")
  254. .HasColumnType("nvarchar(max)");
  255. b.Property<string>("ClaimValue")
  256. .HasColumnType("nvarchar(max)");
  257. b.Property<string>("UserId")
  258. .IsRequired()
  259. .HasColumnType("nvarchar(450)");
  260. b.HasKey("Id");
  261. b.HasIndex("UserId");
  262. b.ToTable("AspNetUserClaims", (string)null);
  263. });
  264. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  265. {
  266. b.Property<string>("LoginProvider")
  267. .HasColumnType("nvarchar(450)");
  268. b.Property<string>("ProviderKey")
  269. .HasColumnType("nvarchar(450)");
  270. b.Property<string>("ProviderDisplayName")
  271. .HasColumnType("nvarchar(max)");
  272. b.Property<string>("UserId")
  273. .IsRequired()
  274. .HasColumnType("nvarchar(450)");
  275. b.HasKey("LoginProvider", "ProviderKey");
  276. b.HasIndex("UserId");
  277. b.ToTable("AspNetUserLogins", (string)null);
  278. });
  279. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  280. {
  281. b.Property<string>("UserId")
  282. .HasColumnType("nvarchar(450)");
  283. b.Property<string>("RoleId")
  284. .HasColumnType("nvarchar(450)");
  285. b.HasKey("UserId", "RoleId");
  286. b.HasIndex("RoleId");
  287. b.ToTable("AspNetUserRoles", (string)null);
  288. });
  289. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  290. {
  291. b.Property<string>("UserId")
  292. .HasColumnType("nvarchar(450)");
  293. b.Property<string>("LoginProvider")
  294. .HasColumnType("nvarchar(450)");
  295. b.Property<string>("Name")
  296. .HasColumnType("nvarchar(450)");
  297. b.Property<string>("Value")
  298. .HasColumnType("nvarchar(max)");
  299. b.HasKey("UserId", "LoginProvider", "Name");
  300. b.ToTable("AspNetUserTokens", (string)null);
  301. });
  302. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Candidato", b =>
  303. {
  304. b.HasOne("ConcursoProjetos.Data.ApplicationUser", "User")
  305. .WithMany()
  306. .HasForeignKey("UserId")
  307. .OnDelete(DeleteBehavior.Restrict)
  308. .IsRequired();
  309. b.Navigation("User");
  310. });
  311. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Documento", b =>
  312. {
  313. b.HasOne("ConcursoProjetos.Domain.Entities.Projeto", "Projeto")
  314. .WithMany("Documentos")
  315. .HasForeignKey("ProjetoId")
  316. .OnDelete(DeleteBehavior.Cascade)
  317. .IsRequired();
  318. b.HasOne("ConcursoProjetos.Domain.Entities.TipoDocumento", "TipoDocumento")
  319. .WithMany()
  320. .HasForeignKey("TipoDocumentoId")
  321. .OnDelete(DeleteBehavior.Restrict)
  322. .IsRequired();
  323. b.Navigation("Projeto");
  324. b.Navigation("TipoDocumento");
  325. });
  326. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Projeto", b =>
  327. {
  328. b.HasOne("ConcursoProjetos.Domain.Entities.Candidato", "Candidato")
  329. .WithMany()
  330. .HasForeignKey("CandidatoId")
  331. .OnDelete(DeleteBehavior.Restrict)
  332. .IsRequired();
  333. b.Navigation("Candidato");
  334. });
  335. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
  336. {
  337. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  338. .WithMany()
  339. .HasForeignKey("RoleId")
  340. .OnDelete(DeleteBehavior.Cascade)
  341. .IsRequired();
  342. });
  343. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
  344. {
  345. b.HasOne("ConcursoProjetos.Data.ApplicationUser", null)
  346. .WithMany()
  347. .HasForeignKey("UserId")
  348. .OnDelete(DeleteBehavior.Cascade)
  349. .IsRequired();
  350. });
  351. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
  352. {
  353. b.HasOne("ConcursoProjetos.Data.ApplicationUser", null)
  354. .WithMany()
  355. .HasForeignKey("UserId")
  356. .OnDelete(DeleteBehavior.Cascade)
  357. .IsRequired();
  358. });
  359. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
  360. {
  361. b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole", null)
  362. .WithMany()
  363. .HasForeignKey("RoleId")
  364. .OnDelete(DeleteBehavior.Cascade)
  365. .IsRequired();
  366. b.HasOne("ConcursoProjetos.Data.ApplicationUser", null)
  367. .WithMany()
  368. .HasForeignKey("UserId")
  369. .OnDelete(DeleteBehavior.Cascade)
  370. .IsRequired();
  371. });
  372. modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
  373. {
  374. b.HasOne("ConcursoProjetos.Data.ApplicationUser", null)
  375. .WithMany()
  376. .HasForeignKey("UserId")
  377. .OnDelete(DeleteBehavior.Cascade)
  378. .IsRequired();
  379. });
  380. modelBuilder.Entity("ConcursoProjetos.Domain.Entities.Projeto", b =>
  381. {
  382. b.Navigation("Documentos");
  383. });
  384. #pragma warning restore 612, 618
  385. }
  386. }
  387. }