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), CallHeaderText = table.Column(type: "TEXT", nullable: true), BookHeaderText = table.Column(type: "TEXT", nullable: true), SecondaryHeaderText = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_HomePage", x => x.Id); }); migrationBuilder.CreateTable( name: "RepairRequestMedia", 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), RequestNumber = table.Column(type: "TEXT", nullable: true), MediaPath = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_RepairRequestMedia", x => x.Id); }); migrationBuilder.CreateTable( name: "RepairRequests", 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), RequestNumber = table.Column(type: "TEXT", nullable: true), Type = table.Column(type: "TEXT", nullable: true), Brand = table.Column(type: "TEXT", nullable: true), Notes = table.Column(type: "TEXT", nullable: true), Name = table.Column(type: "TEXT", nullable: true), Phone = table.Column(type: "TEXT", nullable: true) }, constraints: table => { table.PrimaryKey("PK_RepairRequests", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "BusinessConfig"); migrationBuilder.DropTable( name: "ContentCards"); migrationBuilder.DropTable( name: "HomePage"); migrationBuilder.DropTable( name: "RepairRequestMedia"); migrationBuilder.DropTable( name: "RepairRequests"); } } }