if not exists (select * FROM sys.syscolumns where name = 'UserInfo' AND id = object_id(N'dbo.Todo')) 
    alter table dbo.Todo add constraint FK_Todo_UserInfoID foreign key (UserInfoID) references dbo.UserAccount(ID);