CREATE TABLE [dbo].[md_dictionaries_tables]
(
[dictt_dictionary_code] [dbo].[ais_code_short] NOT NULL,
[dictt_table_name] [dbo].[ais_name] NOT NULL,
[dictt_string] [nvarchar] (255) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[md_dictionaries_tables] ADD CONSTRAINT [PK_md_dictionaries_tables] PRIMARY KEY CLUSTERED  ([dictt_dictionary_code], [dictt_table_name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[md_dictionaries_tables] ADD CONSTRAINT [FK_md_dictionaries_tables_md_dictionaries] FOREIGN KEY ([dictt_dictionary_code]) REFERENCES [dbo].[md_dictionaries] ([dict_dictionary_code])
GO
ALTER TABLE [dbo].[md_dictionaries_tables] ADD CONSTRAINT [FK_md_dictionaries_tables_md_tables] FOREIGN KEY ([dictt_table_name]) REFERENCES [dbo].[md_tables] ([tbl_table_name])
GO
