CREATE TABLE [dbo].[md_dictionaries_grids]
(
[dictg_dictionary_code] [dbo].[ais_code_short] NOT NULL,
[dictg_grid_name] [dbo].[ais_name] NOT NULL,
[dictg_string] [nvarchar] (255) COLLATE French_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[md_dictionaries_grids] ADD CONSTRAINT [PK_md_dictionaries_grids] PRIMARY KEY CLUSTERED  ([dictg_dictionary_code], [dictg_grid_name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[md_dictionaries_grids] ADD CONSTRAINT [FK_md_dictionaries_grids_md_dictionaries] FOREIGN KEY ([dictg_dictionary_code]) REFERENCES [dbo].[md_dictionaries] ([dict_dictionary_code])
GO
ALTER TABLE [dbo].[md_dictionaries_grids] ADD CONSTRAINT [FK_md_dictionaries_grids_md_grids] FOREIGN KEY ([dictg_grid_name]) REFERENCES [dbo].[md_grids] ([grd_grid_name])
GO
