namespace WePlatform.Migrations { using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity.Migrations; public partial class AddWeInfo : DbMigration { public override void Up() { CreateTable( "dbo.WeLib_Behaviors", c => new { Id = c.String(nullable: false, maxLength: 128), SceneCategory = c.String(maxLength: 128), BehaviorTag = c.String(maxLength: 500), Description = c.String(maxLength: 500), RoleLogicType = c.Int(nullable: false), RuleKeyword = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_BehaviorInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.SceneCategory) .Index(t => t.SceneCategory) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeBase_BehaviorRoles", c => new { Id = c.String(nullable: false, maxLength: 128), RoleName = c.String(maxLength: 50), Description = c.String(maxLength: 500), SceneCategory = c.String(maxLength: 128), Remark = c.String(maxLength: 500), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.SceneCategory) .Index(t => t.SceneCategory) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeBase_SceneCategories", c => new { Id = c.String(nullable: false, maxLength: 128), ParentNo = c.String(maxLength: 128), CategoryName = c.String(maxLength: 50), CategoryPath = c.String(maxLength: 500), Sort = c.Int(nullable: false), Description = c.String(maxLength: 500), Remark = c.String(maxLength: 500), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.ParentNo) .Index(t => t.ParentNo) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_BehaviorKnowledges", c => new { Id = c.Int(nullable: false, identity: true), BehaviorNo = c.String(maxLength: 128), KnowledgeNo = c.String(maxLength: 128), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.WeLib_Behaviors", t => t.BehaviorNo) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.WeLib_Knowledges", t => t.KnowledgeNo) .Index(t => t.BehaviorNo) .Index(t => t.KnowledgeNo) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_Knowledges", c => new { Id = c.String(nullable: false, maxLength: 128), Name = c.String(maxLength: 50), Description = c.String(maxLength: 500), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_KnowledgeInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeModel_Engines", c => new { Id = c.String(nullable: false, maxLength: 128), EngineName = c.String(maxLength: 50), Version = c.String(maxLength: 50), Description = c.String(maxLength: 500), RunnerClassName = c.String(maxLength: 200), ScoreEvalClassName = c.String(maxLength: 200), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_EngineInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeModel_EngineModels", c => new { Id = c.String(nullable: false, maxLength: 128), ModelName = c.String(maxLength: 50), Version = c.String(maxLength: 50), Description = c.String(maxLength: 500), ModelType = c.Int(nullable: false), EngineNo = c.String(maxLength: 128), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_EngineModelInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.WeModel_Engines", t => t.EngineNo) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .Index(t => t.EngineNo) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_EnvironResources", c => new { Id = c.String(nullable: false, maxLength: 128), ResourceName = c.String(maxLength: 50), ResourceType = c.Int(nullable: false), ResourcePath = c.String(maxLength: 500), Description = c.String(maxLength: 500), MessageCode = c.String(maxLength: 20), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_EnvironResourceInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .Index(t => t.MessageCode, unique: true) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_Guides", c => new { Id = c.String(nullable: false, maxLength: 128), Name = c.String(maxLength: 50), Description = c.String(maxLength: 500), GuideType = c.Int(nullable: false), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_GuideInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_Packages", c => new { Id = c.String(nullable: false, maxLength: 128), PackageName = c.String(maxLength: 50), SceneCategory = c.String(maxLength: 128), EngineModelNo = c.String(maxLength: 128), MasterPlanner = c.String(maxLength: 50), Planner = c.String(maxLength: 500), ContentInfo = c.String(), PackageState = c.Int(nullable: false), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_PackageInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.WeModel_EngineModels", t => t.EngineModelNo) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.SceneCategory) .Index(t => t.SceneCategory) .Index(t => t.EngineModelNo) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_SceneBehaviors", c => new { Id = c.Int(nullable: false, identity: true), SceneNo = c.String(maxLength: 128), BehaviorNo = c.String(maxLength: 128), BehaviorEvalType = c.Int(nullable: false), BehaviorWeight = c.Decimal(nullable: false, precision: 18, scale: 2), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.WeLib_Behaviors", t => t.BehaviorNo) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.WeLib_Scenes", t => t.SceneNo) .Index(t => t.SceneNo) .Index(t => t.BehaviorNo) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_Scenes", c => new { Id = c.String(nullable: false, maxLength: 128), Name = c.String(maxLength: 50), SceneCategory = c.String(maxLength: 128), SceneTag = c.String(maxLength: 200), Description = c.String(maxLength: 500), SceneType = c.Int(nullable: false), Remark = c.String(maxLength: 500), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_SceneInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.SceneCategory) .Index(t => t.SceneCategory) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.WeLib_SceneFlows", c => new { Id = c.String(nullable: false, maxLength: 128), FlowName = c.String(maxLength: 50), SceneCategory = c.String(maxLength: 128), ContentInfo = c.String(), SceneFlowState = c.Int(nullable: false), IsDeleted = c.Boolean(nullable: false), DeleterUserId = c.Long(), DeletionTime = c.DateTime(), LastModificationTime = c.DateTime(), LastModifierUserId = c.Long(), CreationTime = c.DateTime(nullable: false), CreatorUserId = c.Long(), }, annotations: new Dictionary { { "DynamicFilter_SceneFlowInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }) .PrimaryKey(t => t.Id) .ForeignKey("dbo.Sys_Users", t => t.CreatorUserId) .ForeignKey("dbo.Sys_Users", t => t.DeleterUserId) .ForeignKey("dbo.Sys_Users", t => t.LastModifierUserId) .ForeignKey("dbo.WeBase_SceneCategories", t => t.SceneCategory) .Index(t => t.SceneCategory) .Index(t => t.IsDeleted) .Index(t => t.DeleterUserId) .Index(t => t.LastModifierUserId) .Index(t => t.CreatorUserId); CreateTable( "dbo.BehaviorRoleInfoBehaviorInfoes", c => new { BehaviorRoleInfo_Id = c.String(nullable: false, maxLength: 128), BehaviorInfo_Id = c.String(nullable: false, maxLength: 128), }) .PrimaryKey(t => new { t.BehaviorRoleInfo_Id, t.BehaviorInfo_Id }) .ForeignKey("dbo.WeBase_BehaviorRoles", t => t.BehaviorRoleInfo_Id, cascadeDelete: true) .ForeignKey("dbo.WeLib_Behaviors", t => t.BehaviorInfo_Id, cascadeDelete: true) .Index(t => t.BehaviorRoleInfo_Id) .Index(t => t.BehaviorInfo_Id); } public override void Down() { DropForeignKey("dbo.WeLib_SceneFlows", "SceneCategory", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeLib_SceneFlows", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_SceneFlows", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_SceneFlows", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_SceneBehaviors", "SceneNo", "dbo.WeLib_Scenes"); DropForeignKey("dbo.WeLib_Scenes", "SceneCategory", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeLib_Scenes", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Scenes", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Scenes", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_SceneBehaviors", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_SceneBehaviors", "BehaviorNo", "dbo.WeLib_Behaviors"); DropForeignKey("dbo.WeLib_Packages", "SceneCategory", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeLib_Packages", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Packages", "EngineModelNo", "dbo.WeModel_EngineModels"); DropForeignKey("dbo.WeLib_Packages", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Packages", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Guides", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Guides", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Guides", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_EnvironResources", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_EnvironResources", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_EnvironResources", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_EngineModels", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_EngineModels", "EngineNo", "dbo.WeModel_Engines"); DropForeignKey("dbo.WeModel_EngineModels", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_EngineModels", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_Engines", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_Engines", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeModel_Engines", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_BehaviorKnowledges", "KnowledgeNo", "dbo.WeLib_Knowledges"); DropForeignKey("dbo.WeLib_Knowledges", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Knowledges", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Knowledges", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_BehaviorKnowledges", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_BehaviorKnowledges", "BehaviorNo", "dbo.WeLib_Behaviors"); DropForeignKey("dbo.WeLib_Behaviors", "SceneCategory", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeBase_BehaviorRoles", "SceneCategory", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeBase_SceneCategories", "ParentNo", "dbo.WeBase_SceneCategories"); DropForeignKey("dbo.WeBase_SceneCategories", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeBase_SceneCategories", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeBase_BehaviorRoles", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeBase_BehaviorRoles", "CreatorUserId", "dbo.Sys_Users"); DropForeignKey("dbo.BehaviorRoleInfoBehaviorInfoes", "BehaviorInfo_Id", "dbo.WeLib_Behaviors"); DropForeignKey("dbo.BehaviorRoleInfoBehaviorInfoes", "BehaviorRoleInfo_Id", "dbo.WeBase_BehaviorRoles"); DropForeignKey("dbo.WeLib_Behaviors", "LastModifierUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Behaviors", "DeleterUserId", "dbo.Sys_Users"); DropForeignKey("dbo.WeLib_Behaviors", "CreatorUserId", "dbo.Sys_Users"); DropIndex("dbo.BehaviorRoleInfoBehaviorInfoes", new[] { "BehaviorInfo_Id" }); DropIndex("dbo.BehaviorRoleInfoBehaviorInfoes", new[] { "BehaviorRoleInfo_Id" }); DropIndex("dbo.WeLib_SceneFlows", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_SceneFlows", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_SceneFlows", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_SceneFlows", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_SceneFlows", new[] { "SceneCategory" }); DropIndex("dbo.WeLib_Scenes", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_Scenes", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_Scenes", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_Scenes", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_Scenes", new[] { "SceneCategory" }); DropIndex("dbo.WeLib_SceneBehaviors", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_SceneBehaviors", new[] { "BehaviorNo" }); DropIndex("dbo.WeLib_SceneBehaviors", new[] { "SceneNo" }); DropIndex("dbo.WeLib_Packages", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_Packages", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_Packages", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_Packages", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_Packages", new[] { "EngineModelNo" }); DropIndex("dbo.WeLib_Packages", new[] { "SceneCategory" }); DropIndex("dbo.WeLib_Guides", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_Guides", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_Guides", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_Guides", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_EnvironResources", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_EnvironResources", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_EnvironResources", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_EnvironResources", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_EnvironResources", new[] { "MessageCode" }); DropIndex("dbo.WeModel_EngineModels", new[] { "CreatorUserId" }); DropIndex("dbo.WeModel_EngineModels", new[] { "LastModifierUserId" }); DropIndex("dbo.WeModel_EngineModels", new[] { "DeleterUserId" }); DropIndex("dbo.WeModel_EngineModels", new[] { "IsDeleted" }); DropIndex("dbo.WeModel_EngineModels", new[] { "EngineNo" }); DropIndex("dbo.WeModel_Engines", new[] { "CreatorUserId" }); DropIndex("dbo.WeModel_Engines", new[] { "LastModifierUserId" }); DropIndex("dbo.WeModel_Engines", new[] { "DeleterUserId" }); DropIndex("dbo.WeModel_Engines", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_Knowledges", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_Knowledges", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_Knowledges", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_Knowledges", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_BehaviorKnowledges", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_BehaviorKnowledges", new[] { "KnowledgeNo" }); DropIndex("dbo.WeLib_BehaviorKnowledges", new[] { "BehaviorNo" }); DropIndex("dbo.WeBase_SceneCategories", new[] { "CreatorUserId" }); DropIndex("dbo.WeBase_SceneCategories", new[] { "LastModifierUserId" }); DropIndex("dbo.WeBase_SceneCategories", new[] { "ParentNo" }); DropIndex("dbo.WeBase_BehaviorRoles", new[] { "CreatorUserId" }); DropIndex("dbo.WeBase_BehaviorRoles", new[] { "LastModifierUserId" }); DropIndex("dbo.WeBase_BehaviorRoles", new[] { "SceneCategory" }); DropIndex("dbo.WeLib_Behaviors", new[] { "CreatorUserId" }); DropIndex("dbo.WeLib_Behaviors", new[] { "LastModifierUserId" }); DropIndex("dbo.WeLib_Behaviors", new[] { "DeleterUserId" }); DropIndex("dbo.WeLib_Behaviors", new[] { "IsDeleted" }); DropIndex("dbo.WeLib_Behaviors", new[] { "SceneCategory" }); DropTable("dbo.BehaviorRoleInfoBehaviorInfoes"); DropTable("dbo.WeLib_SceneFlows", removedAnnotations: new Dictionary { { "DynamicFilter_SceneFlowInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_Scenes", removedAnnotations: new Dictionary { { "DynamicFilter_SceneInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_SceneBehaviors"); DropTable("dbo.WeLib_Packages", removedAnnotations: new Dictionary { { "DynamicFilter_PackageInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_Guides", removedAnnotations: new Dictionary { { "DynamicFilter_GuideInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_EnvironResources", removedAnnotations: new Dictionary { { "DynamicFilter_EnvironResourceInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeModel_EngineModels", removedAnnotations: new Dictionary { { "DynamicFilter_EngineModelInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeModel_Engines", removedAnnotations: new Dictionary { { "DynamicFilter_EngineInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_Knowledges", removedAnnotations: new Dictionary { { "DynamicFilter_KnowledgeInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); DropTable("dbo.WeLib_BehaviorKnowledges"); DropTable("dbo.WeBase_SceneCategories"); DropTable("dbo.WeBase_BehaviorRoles"); DropTable("dbo.WeLib_Behaviors", removedAnnotations: new Dictionary { { "DynamicFilter_BehaviorInfo_SoftDelete", "EntityFramework.DynamicFilters.DynamicFilterDefinition" }, }); } } }