if not exists(select * from sys.indexes where name = 'UIX_UserSecurity_UserType_Name' AND object_id = object_id('dbo.UserSecurity'))
    create unique nonclustered index UIX_UserSecurity_UserType_Name ON dbo.UserSecurity (UserType asc, Name asc)