if not exists (select * from sys.tables where object_id = object_id(N'dbo.LoginAttempt'))
    create table dbo.LoginAttempt
    (
        ID int not null IDENTITY(1, 1) constraint PK_LoginAttempt primary key 
        ,IP varchar(50) null  
        ,UserName nvarchar(256) null
        ,CreationDate datetime not null constraint DF_LoginAttempt_CreationDate DEFAULT getdate()
        ,Platform int null
        ,Source int null
    )