CREATE TABLE [dbo].[pr_compagnies]
(
[prcie_product_code] [dbo].[ais_code_short] NOT NULL,
[prcie_compagnie_id] [int] NOT NULL,
[prcie_rowver] [timestamp] NOT NULL
) ON [PRIMARY]
ALTER TABLE [dbo].[pr_compagnies] ADD
CONSTRAINT [CK__pr_compagnies_prcie_product_code__string_pk] CHECK ((len(ltrim(rtrim([prcie_product_code])))>(0) AND charindex('*',[prcie_product_code])=(0) AND charindex('%',[prcie_product_code])=(0)))
GO
ALTER TABLE [dbo].[pr_compagnies] ADD CONSTRAINT [PK_pr_compagnies] PRIMARY KEY CLUSTERED  ([prcie_product_code], [prcie_compagnie_id]) ON [PRIMARY]
GO
