CREATE TABLE [dbo].[nm_documents_output_types]
(
[nmdot_output_type_code] [dbo].[ais_code_short] NOT NULL,
[nmdot_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[nmdot_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmdot_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[nmdot_sys] [bit] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[nm_documents_output_types] ADD CONSTRAINT [CK__nm_documents_output_types_nmdot_output_type_code__string_pk] CHECK ((len(ltrim(rtrim([nmdot_output_type_code])))>(0) AND charindex('*',[nmdot_output_type_code])=(0) AND charindex('%',[nmdot_output_type_code])=(0)))
GO
ALTER TABLE [dbo].[nm_documents_output_types] ADD CONSTRAINT [PK_nm_documents_output_types] PRIMARY KEY CLUSTERED  ([nmdot_output_type_code]) ON [PRIMARY]
GO
