IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'dbo.wko_isp_ref') AND type in (N'U'))
BEGIN
    CREATE TABLE [dbo].[wko_isp_ref](
	[site_cd] [varchar](4) NOT NULL,
	[mst_RowID] [numeric](12, 0) NULL,
	[file_name] [varchar](200) NULL,
	[type] [varchar](10) NULL,
	[status] [varchar](10) NULL,
	[attachment] [image] NULL,
	[audit_user] [varchar](50) NULL,
	[audit_date] [datetime] NOT NULL,
	[column1] [varchar](60) NULL,
	[column2] [varchar](60) NULL,
	[column3] [varchar](60) NULL,
	[column4] [varchar](60) NULL,
	[column5] [varchar](60) NULL,
	[RowID] [numeric](12, 0) IDENTITY(1,1) NOT NULL,
	[wko_isp_ref_stp_RowID] [numeric](12, 0) NULL,
	[wko_isp_ref_system] [varchar](1) NULL,
	[mbl_audit_date] [datetime] NULL,
	[mbl_audit_user] [varchar](50) NULL,
	[wko_isp_ref_category] [varchar](30) NULL,
	[category] [varchar](30) NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
END
GO