API

20200910134303_ListingFees.cs 1.1KB

12345678910111213141516171819202122232425262728293031
  1. using Microsoft.EntityFrameworkCore.Metadata;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. namespace UnivateProperties_API.Migrations
  4. {
  5. public partial class ListingFees : Migration
  6. {
  7. protected override void Up(MigrationBuilder migrationBuilder)
  8. {
  9. migrationBuilder.CreateTable(
  10. name: "ListingFees",
  11. columns: table => new
  12. {
  13. Id = table.Column<int>(nullable: false)
  14. .Annotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn),
  15. Amount = table.Column<double>(nullable: false),
  16. Name = table.Column<string>(nullable: true)
  17. },
  18. constraints: table =>
  19. {
  20. table.PrimaryKey("PK_ListingFees", x => x.Id);
  21. });
  22. }
  23. protected override void Down(MigrationBuilder migrationBuilder)
  24. {
  25. migrationBuilder.DropTable(
  26. name: "ListingFees");
  27. }
  28. }
  29. }