CREATE TABLE [dbo].[act_cies_repartitions]
(
[cier_company_id] [int] NOT NULL,
[cier_company_id__2] [int] NOT NULL,
[cier_leader] [bit] NOT NULL CONSTRAINT [DF__act_cies_repartitions__cier_leader] DEFAULT ((0)),
[cier_premium_part] [dbo].[ais_decimal4] NULL,
[cier_commission_value] [dbo].[ais_decimal4] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[act_cies_repartitions] ADD CONSTRAINT [PK_act_cies_repartitions] PRIMARY KEY CLUSTERED  ([cier_company_id], [cier_company_id__2]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[act_cies_repartitions] ADD CONSTRAINT [FK_act_cies_repartitions_act_cies] FOREIGN KEY ([cier_company_id]) REFERENCES [dbo].[act_cies] ([cie_actor_id])
GO
ALTER TABLE [dbo].[act_cies_repartitions] ADD CONSTRAINT [FK_act_cies_repartitions_act_cies1] FOREIGN KEY ([cier_company_id__2]) REFERENCES [dbo].[act_cies] ([cie_actor_id])
GO
