Declare @Id Int                               
Select @Id = Id From sysobjects Where Name = 'RepNoskheh'
IF not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'TypeModel')
  Alter Table dbo.RepNoskheh Add TypeModel Char(1) Default(0)


Select @Id = Id From sysobjects Where Name = 'RepNoskheh'
IF not Exists(SELECT * FROM syscolumns WHERE id = @Id and Name = 'User_Id')
  Alter Table dbo.RepNoskheh Add User_Id Smallint Null