using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BMA.EHR.Infrastructure.Migrations { /// public partial class addtableRetirementQuestionnaireQuestion : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "RetirementQuestionnaireQuestions", columns: table => new { Id = table.Column(type: "char(36)", nullable: false, comment: "PrimaryKey", collation: "ascii_general_ci"), CreatedAt = table.Column(type: "datetime(6)", nullable: false, comment: "สร้างข้อมูลเมื่อ"), CreatedUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่สร้างข้อมูล") .Annotation("MySql:CharSet", "utf8mb4"), LastUpdatedAt = table.Column(type: "datetime(6)", nullable: true, comment: "แก้ไขข้อมูลล่าสุดเมื่อ"), LastUpdateUserId = table.Column(type: "varchar(40)", maxLength: 40, nullable: false, comment: "User Id ที่แก้ไขข้อมูลล่าสุด") .Annotation("MySql:CharSet", "utf8mb4"), CreatedFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่สร้างข้อมูล") .Annotation("MySql:CharSet", "utf8mb4"), LastUpdateFullName = table.Column(type: "varchar(200)", maxLength: 200, nullable: false, comment: "ชื่อ User ที่แก้ไขข้อมูลล่าสุด") .Annotation("MySql:CharSet", "utf8mb4"), Question1Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 1") .Annotation("MySql:CharSet", "utf8mb4"), Question1Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 1") .Annotation("MySql:CharSet", "utf8mb4"), Question1Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 1") .Annotation("MySql:CharSet", "utf8mb4"), Question2Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 2") .Annotation("MySql:CharSet", "utf8mb4"), Question2Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 2") .Annotation("MySql:CharSet", "utf8mb4"), Question2Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 2") .Annotation("MySql:CharSet", "utf8mb4"), Question3Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 3") .Annotation("MySql:CharSet", "utf8mb4"), Question3Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 3") .Annotation("MySql:CharSet", "utf8mb4"), Question3Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 3") .Annotation("MySql:CharSet", "utf8mb4"), Question4Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 4") .Annotation("MySql:CharSet", "utf8mb4"), Question4Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 4") .Annotation("MySql:CharSet", "utf8mb4"), Question4Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 4") .Annotation("MySql:CharSet", "utf8mb4"), Question5Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 5") .Annotation("MySql:CharSet", "utf8mb4"), Question5Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 5") .Annotation("MySql:CharSet", "utf8mb4"), Question5Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 5") .Annotation("MySql:CharSet", "utf8mb4"), Question6Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 6") .Annotation("MySql:CharSet", "utf8mb4"), Question6Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 6") .Annotation("MySql:CharSet", "utf8mb4"), Question6Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 6") .Annotation("MySql:CharSet", "utf8mb4"), Question7Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 7") .Annotation("MySql:CharSet", "utf8mb4"), Question7Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 7") .Annotation("MySql:CharSet", "utf8mb4"), Question7Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 7") .Annotation("MySql:CharSet", "utf8mb4"), Question8Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 8") .Annotation("MySql:CharSet", "utf8mb4"), Question8Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 8") .Annotation("MySql:CharSet", "utf8mb4"), Question8Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 8") .Annotation("MySql:CharSet", "utf8mb4"), Question9Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 9") .Annotation("MySql:CharSet", "utf8mb4"), Question9Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 9") .Annotation("MySql:CharSet", "utf8mb4"), Question9Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 9") .Annotation("MySql:CharSet", "utf8mb4"), Question10Desc = table.Column(type: "longtext", nullable: true, comment: "คำถามข้อที่ 10") .Annotation("MySql:CharSet", "utf8mb4"), Question10Score = table.Column(type: "longtext", nullable: true, comment: "คำตอบข้อที่ 10") .Annotation("MySql:CharSet", "utf8mb4"), Question10Answer = table.Column(type: "longtext", nullable: true, comment: "กรอกคะแนน 10") .Annotation("MySql:CharSet", "utf8mb4") }, constraints: table => { table.PrimaryKey("PK_RetirementQuestionnaireQuestions", x => x.Id); }) .Annotation("MySql:CharSet", "utf8mb4"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "RetirementQuestionnaireQuestions"); } } }