public override void Down()
{
DropForeignKey("dbo.UserGroup", "UserId", "dbo.User");
DropForeignKey("dbo.UserGroup", "GroupId", "dbo.Group");
DropForeignKey("dbo.UserRole", "RoleId", "dbo.Role");
DropForeignKey("dbo.UserRole", "UserId", "dbo.User");
DropForeignKey("dbo.RolePermission", "RoleId", "dbo.Role");
DropForeignKey("dbo.RolePermission", "PermissionId", "dbo.Permission");
DropForeignKey("dbo.UserOrganization", "OrganizationId", "dbo.Organization");
DropForeignKey("dbo.UserOrganization", "UserId", "dbo.User");
DropForeignKey("dbo.Account", "User_Id", "dbo.User");
DropIndex("dbo.UserGroup", new[] { "UserId" });
DropIndex("dbo.UserGroup", new[] { "GroupId" });
DropIndex("dbo.UserRole", new[] { "RoleId" });
DropIndex("dbo.UserRole", new[] { "UserId" });
DropIndex("dbo.RolePermission", new[] { "RoleId" });
DropIndex("dbo.RolePermission", new[] { "PermissionId" });
DropIndex("dbo.UserOrganization", new[] { "OrganizationId" });
DropIndex("dbo.UserOrganization", new[] { "UserId" });
DropIndex("dbo.Account", new[] { "User_Id" });
DropTable("dbo.UserGroup");
DropTable("dbo.UserRole");
DropTable("dbo.RolePermission");
DropTable("dbo.UserOrganization");
DropTable("dbo.Permission");
DropTable("dbo.Role");
DropTable("dbo.Organization");
DropTable("dbo.User");
DropTable("dbo.Group");
DropTable("dbo.Account");
}