API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

20210420082156_CommunicationSystem.cs 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Metadata;
  3. using Microsoft.EntityFrameworkCore.Migrations;
  4. namespace UnivateProperties_API.Migrations
  5. {
  6. public partial class CommunicationSystem : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "MailModel",
  12. columns: table => new
  13. {
  14. Id = table.Column<int>(nullable: false)
  15. .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
  16. Created = table.Column<DateTime>(nullable: false),
  17. Modified = table.Column<DateTime>(nullable: false),
  18. ModifiedBy = table.Column<string>(nullable: true),
  19. IsDeleted = table.Column<bool>(nullable: false),
  20. ToAddress = table.Column<string>(nullable: true),
  21. FromAddress = table.Column<string>(nullable: true),
  22. Name = table.Column<string>(nullable: true),
  23. Email = table.Column<string>(nullable: true),
  24. Phone = table.Column<string>(nullable: true),
  25. Property = table.Column<string>(nullable: true),
  26. Message = table.Column<string>(nullable: true),
  27. HeardFrom = table.Column<string>(nullable: true),
  28. Error = table.Column<string>(nullable: true)
  29. },
  30. constraints: table =>
  31. {
  32. table.PrimaryKey("PK_MailModel", x => x.Id);
  33. });
  34. }
  35. protected override void Down(MigrationBuilder migrationBuilder)
  36. {
  37. migrationBuilder.DropTable(
  38. name: "MailModel");
  39. }
  40. }
  41. }