API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20191031084836_Carousel Stuff.cs 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using Microsoft.EntityFrameworkCore.Migrations;
  3. using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
  4. namespace UnivateProperties_API.Migrations
  5. {
  6. public partial class CarouselStuff : Migration
  7. {
  8. protected override void Up(MigrationBuilder migrationBuilder)
  9. {
  10. migrationBuilder.CreateTable(
  11. name: "Carousel",
  12. columns: table => new
  13. {
  14. Id = table.Column<int>(nullable: false)
  15. .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn),
  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. PropertyId = table.Column<int>(nullable: false),
  21. TimeshareId = table.Column<int>(nullable: false),
  22. Header = table.Column<string>(nullable: true),
  23. Image = table.Column<string>(nullable: true)
  24. },
  25. constraints: table =>
  26. {
  27. table.PrimaryKey("PK_Carousel", x => x.Id);
  28. });
  29. }
  30. protected override void Down(MigrationBuilder migrationBuilder)
  31. {
  32. migrationBuilder.DropTable(
  33. name: "Carousel");
  34. }
  35. }
  36. }