CREATE TABLE [dbo].[act_treaties_companies]
(
[trtc_actor_id] [int] NOT NULL,
[trtc_company_id] [int] NOT NULL,
[trtc_percent] [dbo].[ais_decimal4] NOT NULL,
[trtc_rowver] [timestamp] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[act_treaties_companies] ADD CONSTRAINT [PK_act_treaties_companies] PRIMARY KEY CLUSTERED  ([trtc_actor_id], [trtc_company_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[act_treaties_companies] ADD CONSTRAINT [FK_act_treaties_companies_act_treaties] FOREIGN KEY ([trtc_actor_id]) REFERENCES [dbo].[act_treaties] ([trt_actor_id])
GO
ALTER TABLE [dbo].[act_treaties_companies] ADD CONSTRAINT [FK_act_treaties_companies_act_cies] FOREIGN KEY ([trtc_company_id]) REFERENCES [dbo].[act_cies] ([cie_actor_id])
GO
