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