IF Not (EXISTS(SELECT * FROM sysobjects WHERE name='TaminSavedPrescription'))
Begin
CREATE TABLE [dbo].[TaminSavedPrescription](
	[Id] [UNIQUEIDENTIFIER] NOT NULL,
	[IsPaper] [BIT] NULL,
	[TrackingCode] [VARCHAR](MAX) NULL,
	[NationalCode] [VARCHAR](12) NULL,
	[Mobile] [VARCHAR](12) NULL,
	[MedicalId] [VARCHAR](10) NULL,
	[CreatedBy] [SMALLINT] NULL,
	[CreatedOn] [DATETIME] NULL,
 CONSTRAINT [PK_TaminSavePaperPrescription] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)
) ON [PRIMARY] 
ALTER TABLE [dbo].[TaminSavedPrescription] ADD  CONSTRAINT [DF_TaminPaperPrescription_Id]  DEFAULT (NEWID()) FOR [Id]
ALTER TABLE [dbo].[TaminSavedPrescription] ADD  CONSTRAINT [DF_TaminPaperPrescription_CreatedOn]  DEFAULT (GETDATE()) FOR [CreatedOn]
End