if not exists (select name from sys.objects where type_desc = 'DEFAULT_CONSTRAINT' and name = 'DF_Todo_ModifiedDate')
    alter table dbo.Todo add constraint DF_Todo_ModifiedDate DEFAULT getdate() for ModifiedDate;