IF NOT EXISTS (SELECT * FROM sysobjects WHERE name='CSAPP_PROTOCOL_REL_DAMAGES')
CREATE TABLE [dbo].[CSAPP_PROTOCOL_REL_DAMAGES](
[ID] [int] PRIMARY KEY IDENTITY(1,1) NOT NULL,
[PROTOCOL_ID] [int] NULL,
[DAMAGE_ID] [int]  NULL,
[DESCRIPTION] [varchar](255)
)

IF NOT EXISTS (SELECT * FROM sysobjects WHERE name='CSAPP_PROTOCOL_REL_DAMAGE_IMAGES')
CREATE TABLE [dbo].[CSAPP_PROTOCOL_REL_DAMAGE_IMAGES](
[ID] [int] PRIMARY KEY IDENTITY(1,1) NOT NULL,
[IMAGE_ID]  [int] NULL,
[PROTOCOL_ID] [int] NULL,
[DAMAGE_ID] [int]  NULL,
)

