IF NOT EXISTS
(
    SELECT name
    FROM sysobjects
    WHERE name = 'SupplementaryInsurance_DrugCondition'
)
BEGIN
    CREATE TABLE [dbo].[SupplementaryInsurance_DrugCondition]
    (
        [GoodsCode] [VARCHAR](15) NOT NULL,
        [InsuranceCode] [VARCHAR](3) NOT NULL,
        [NonInsuranceAmount] [MONEY] NULL
            DEFAULT (0),
        [PatientAmount] [MONEY] NULL
            DEFAULT (0),
        [DifferAmount] [MONEY] NULL
            DEFAULT (0),
        [GoodsAmount] [MONEY] NULL
            DEFAULT (0),
        [MessageId] [INT] NULL,
        CONSTRAINT [PK_SupplementaryInsurance_DrugCondition]
            PRIMARY KEY CLUSTERED
            (
                [GoodsCode] ASC,
                [InsuranceCode] ASC
            )
    ) ON [PRIMARY];
END;