CREATE TABLE [dbo].[grpzon_zones_cies]
(
[zonzc_zone_id] [int] NOT NULL,
[zonzc_company_id] [int] NOT NULL,
[zonzc_zone] [dbo].[ais_code_short] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[grpzon_zones_cies] ADD CONSTRAINT [PK_grpzon_zones_cies] PRIMARY KEY CLUSTERED  ([zonzc_zone_id], [zonzc_company_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[grpzon_zones_cies] ADD CONSTRAINT [FK_grpzon_zones_cies_act_cies] FOREIGN KEY ([zonzc_company_id]) REFERENCES [dbo].[act_cies] ([cie_actor_id])
GO
ALTER TABLE [dbo].[grpzon_zones_cies] ADD CONSTRAINT [FK_grpzon_zones_cies_grpzon_zones] FOREIGN KEY ([zonzc_zone_id]) REFERENCES [dbo].[grpzon_zones] ([zonz_zone_id])
GO
