
[dbo].[Forum_Polls_UserAnswers]
CREATE TABLE [dbo].[Forum_Polls_UserAnswers]
(
[UserAnswerID] [int] NOT NULL IDENTITY(1, 1),
[PollID] [int] NOT NULL,
[UserID] [int] NOT NULL,
[AnswerID] [int] NOT NULL,
[CreatedDate] [datetime] NOT NULL CONSTRAINT [DF__Forum_Pol__Creat__7D197D8B] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Forum_Polls_UserAnswers] ADD CONSTRAINT [PK_Forum_Polls_UserAnswers] PRIMARY KEY CLUSTERED ([UserAnswerID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Forum_Polls_UserAnswers] ADD CONSTRAINT [FK_Forum_Polls_UserAnswers_Forum_Polls_Polls] FOREIGN KEY ([PollID]) REFERENCES [dbo].[Forum_Polls_Polls] ([PollID]) ON DELETE CASCADE
GO