using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Marco.Pms.DataAccess.Migrations { /// public partial class Added_TenantEnquire_Table : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TenantEnquires", columns: table => new { Id = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), FirstName = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), LastName = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), OrganizationName = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), Email = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), ContactNumber = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), BillingAddress = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), OrganizationSize = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"), IndustryId = table.Column(type: "char(36)", nullable: false, collation: "ascii_general_ci"), Reference = table.Column(type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_TenantEnquires", x => x.Id); table.ForeignKey( name: "FK_TenantEnquires_Industries_IndustryId", column: x => x.IndustryId, principalTable: "Industries", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.CreateIndex( name: "IX_TenantEnquires_IndustryId", table: "TenantEnquires", column: "IndustryId"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TenantEnquires"); } } }