1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
-
- namespace UnivateProperties_API.Migrations
- {
- public partial class CarouselStuff : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Carousel",
- columns: table => new
- {
- Id = table.Column<int>(nullable: false)
- .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.SerialColumn),
- Created = table.Column<DateTime>(nullable: false),
- Modified = table.Column<DateTime>(nullable: false),
- ModifiedBy = table.Column<string>(nullable: true),
- IsDeleted = table.Column<bool>(nullable: false),
- PropertyId = table.Column<int>(nullable: false),
- TimeshareId = table.Column<int>(nullable: false),
- Header = table.Column<string>(nullable: true),
- Image = table.Column<string>(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Carousel", x => x.Id);
- });
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Carousel");
- }
- }
- }
|