CREATE TABLE [dbo].[acc_accounts_links]
(
[alnk_account_id__src] [int] NOT NULL,
[alnk_account_id__dst] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_accounts_links] ADD CONSTRAINT [PK_acc_accounts_links] PRIMARY KEY CLUSTERED  ([alnk_account_id__src], [alnk_account_id__dst]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[acc_accounts_links] ADD CONSTRAINT [FK_acc_accounts_links_acc_accounts] FOREIGN KEY ([alnk_account_id__src]) REFERENCES [dbo].[acc_accounts] ([a_account_id])
GO
ALTER TABLE [dbo].[acc_accounts_links] ADD CONSTRAINT [FK_acc_accounts_links_acc_accounts1] FOREIGN KEY ([alnk_account_id__dst]) REFERENCES [dbo].[acc_accounts] ([a_account_id])
GO
