CREATE TABLE [dbo].[Account_APIMethod]
(
[AccountID] [int] NOT NULL,
[APIMethodID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Account_APIMethod] ADD CONSTRAINT [PK_Account_APIMethod_AccountID_APIMethodID] PRIMARY KEY CLUSTERED ([AccountID], [APIMethodID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Account_APIMethod] ADD CONSTRAINT [FK_Account_APIMethod_AccountID_Account_AccountID] FOREIGN KEY ([AccountID]) REFERENCES [dbo].[Account] ([AccountID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[Account_APIMethod] ADD CONSTRAINT [FK_Account_APIMethod_APIMethodID_APIMethod_ID] FOREIGN KEY ([APIMethodID]) REFERENCES [dbo].[APIMethod] ([ID])
GO