47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
| using System;
 | |
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| #nullable disable
 | |
| 
 | |
| namespace IRaCIS.Core.Infra.EFCore.Migrations
 | |
| {
 | |
|     /// <inheritdoc />
 | |
|     public partial class TrialAuditShow : Migration
 | |
|     {
 | |
|         /// <inheritdoc />
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.CreateTable(
 | |
|                 name: "TrialAuditShow",
 | |
|                 columns: table => new
 | |
|                 {
 | |
|                     Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
 | |
|                     FrontAuditConfigId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
 | |
|                     TrialId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
 | |
|                     IsShow = table.Column<bool>(type: "bit", nullable: false),
 | |
|                     CreateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
 | |
|                     CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
 | |
|                     UpdateUserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
 | |
|                     UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: false)
 | |
|                 },
 | |
|                 constraints: table =>
 | |
|                 {
 | |
|                     table.PrimaryKey("PK_TrialAuditShow", x => x.Id);
 | |
|                     
 | |
|                 });
 | |
| 
 | |
|             migrationBuilder.CreateIndex(
 | |
|                 name: "IX_TrialAuditShow_CreateUserId",
 | |
|                 table: "TrialAuditShow",
 | |
|                 column: "CreateUserId");
 | |
|         }
 | |
| 
 | |
|         /// <inheritdoc />
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropTable(
 | |
|                 name: "TrialAuditShow");
 | |
|         }
 | |
|     }
 | |
| }
 |