
                    CreationTime = c.DateTime(nullable: false),
                    State = c.Byte(nullable: false),
                })
            .PrimaryKey(t =&gt; t.Id)
            .ForeignKey(&quot;dbo.StsPeople&quot;, t =&gt; t.AssignedPersonId)
            .Index(t =&gt; t.AssignedPersonId);            
    }
        
    public override void Down()
    {
        DropForeignKey(&quot;dbo.StsTasks&quot;, &quot;AssignedPersonId&quot;, &quot;dbo.StsPeople&quot;);
        DropIndex(&quot;dbo.StsTasks&q