CREATE TABLE [dbo].[md_dictionaries]
(
[dict_dictionary_code] [dbo].[ais_code_short] NOT NULL,
[dict_l1] [nvarchar] (64) COLLATE French_CI_AS NOT NULL,
[dict_l2] [nvarchar] (64) COLLATE French_CI_AS NULL,
[dict_l3] [nvarchar] (64) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO


ALTER TABLE [dbo].[md_dictionaries] ADD CONSTRAINT [CK__md_dictionaries_dict_dictionary_code__string_pk] CHECK ((len(ltrim(rtrim([dict_dictionary_code])))>(0) AND charindex('*',[dict_dictionary_code])=(0) AND charindex('%',[dict_dictionary_code])=(0)))
GO
ALTER TABLE [dbo].[md_dictionaries] ADD CONSTRAINT [PK_md_dictionaries] PRIMARY KEY CLUSTERED  ([dict_dictionary_code]) ON [PRIMARY]
GO
