using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace IRaCIS.Core.Infra.EFCore.Migrations { /// public partial class SegmentBinding : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "SegmentBinding", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), SegmentationId = table.Column(type: "uniqueidentifier", nullable: false), SegmentId = table.Column(type: "uniqueidentifier", nullable: false), VisitTaskId = table.Column(type: "uniqueidentifier", nullable: false), QuestionId = table.Column(type: "uniqueidentifier", nullable: true), RowId = table.Column(type: "uniqueidentifier", nullable: true), TableQuestionId = table.Column(type: "uniqueidentifier", nullable: true), DeleteUserId = table.Column(type: "uniqueidentifier", nullable: true), IsDeleted = table.Column(type: "bit", nullable: false), DeletedTime = table.Column(type: "datetime2", nullable: true), CreateUserId = table.Column(type: "uniqueidentifier", nullable: false), CreateTime = table.Column(type: "datetime2", nullable: false), UpdateUserId = table.Column(type: "uniqueidentifier", nullable: false), UpdateTime = table.Column(type: "datetime2", nullable: false) }, constraints: table => { table.PrimaryKey("PK_SegmentBinding", x => x.Id) .Annotation("SqlServer:Clustered", false); }, comment: "分割绑定"); migrationBuilder.CreateIndex( name: "IX_SegmentBinding_CreateTime", table: "SegmentBinding", column: "CreateTime") .Annotation("SqlServer:Clustered", true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "SegmentBinding"); } } }