using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ApplianceRepair.Migrations { /// public partial class InitialCreate : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "BusinessConfig", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), CreatedAt = table.Column(type: "TEXT", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false), Name = table.Column(type: "TEXT", nullable: true), PhoneNumber = table.Column(type: "TEXT", nullable: true), SupportEmail = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_BusinessConfig", x => x.Id); }); migrationBuilder.CreateTable( name: "ContentCards", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), CreatedAt = table.Column(type: "TEXT", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false), BelongsToPage = table.Column(type: "TEXT", nullable: true), Group = table.Column(type: "TEXT", nullable: true), Header = table.Column(type: "TEXT", nullable: true), Text = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_ContentCards", x => x.Id); }); migrationBuilder.CreateTable( name: "HomePage", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), CreatedAt = table.Column(type: "TEXT", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false), HeaderLine1 = table.Column(type: "TEXT", nullable: true), HeaderLine2 = table.Column(type: "TEXT", nullable: true), HeaderText = table.Column(type: "TEXT", nullable: true), HeaderButton1Text = table.Column(type: "TEXT", nullable: true), HeaderButton2Text = table.Column(type: "TEXT", nullable: true), HeaderButton1Link = table.Column(type: "TEXT", nullable: true), HeaderButton2Link = table.Column(type: "TEXT", nullable: true), SecondaryHeaderText = table.Column(type: "TEXT", nullable: true), CopyrightText = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_HomePage", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "BusinessConfig"); migrationBuilder.DropTable( name: "ContentCards"); migrationBuilder.DropTable( name: "HomePage"); } } }