CREATE TABLE [dbo].[doc_collections_types]
(
[dct_type_code] [dbo].[ais_code_short] NOT NULL,
[dct_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[dct_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[dct_l3] [nvarchar] (64) COLLATE French_CI_AS NULL,
[dct_sys] [bit] NOT NULL CONSTRAINT [DF__doc_collections_types__dct_sys] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[doc_collections_types] ADD CONSTRAINT [CK__doc_collections_types_dct_type_code__string_pk] CHECK ((len(ltrim(rtrim([dct_type_code])))>(0) AND charindex('*',[dct_type_code])=(0) AND charindex('%',[dct_type_code])=(0)))
GO
ALTER TABLE [dbo].[doc_collections_types] ADD CONSTRAINT [PK_doc_collections_types] PRIMARY KEY CLUSTERED  ([dct_type_code]) ON [PRIMARY]
GO
