CREATE TABLE [dbo].[nm_bordereaux_companies_types]
(
[bdrciet_type_code] [dbo].[ais_code_short] NOT NULL,
[bdrciet_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[bdrciet_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[bdrciet_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_bordereaux_companies_types] ADD CONSTRAINT [CK__nm_bordereaux_compagnies_types_bdrciet_type_code__string_pk] CHECK ((len(ltrim(rtrim([bdrciet_type_code])))>(0) AND charindex('*',[bdrciet_type_code])=(0) AND charindex('%',[bdrciet_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_bordereaux_companies_types] ADD CONSTRAINT [CK__nm_bordereaux_companies_types_bdrciet_type_code__string_pk] CHECK ((len(ltrim(rtrim([bdrciet_type_code])))>(0) AND charindex('*',[bdrciet_type_code])=(0) AND charindex('%',[bdrciet_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_bordereaux_companies_types] ADD CONSTRAINT [PK_nm_bordereaux_compagnies_types] PRIMARY KEY CLUSTERED  ([bdrciet_type_code]) ON [PRIMARY]
GO
