ALTER TABLE [dbo].[Comment]  WITH CHECK ADD  CONSTRAINT [FK_Comment_Comment] FOREIGN KEY([ComputedCommentId])
REFERENCES [dbo].[Comment] ([CommentID])

ALTER TABLE [dbo].[Comment] CHECK CONSTRAINT [FK_Comment_Comment]

ALTER TABLE [dbo].[Comment]  WITH CHECK ADD  CONSTRAINT [FK_Comment_NB_Item] FOREIGN KEY([ComputedNB_ItemId])
REFERENCES [dbo].[NB_Item] ([ItemID])

ALTER TABLE [dbo].[Comment] CHECK CONSTRAINT [FK_Comment_NB_Item]

ALTER TABLE [dbo].[Like]  WITH CHECK ADD  CONSTRAINT [FK_Like_NB_Item] FOREIGN KEY([ComputedNB_ItemId])
REFERENCES [dbo].[NB_Item] ([ItemID])

ALTER TABLE [dbo].[Like] CHECK CONSTRAINT [FK_Like_NB_Item]

ALTER TABLE [dbo].[Like]  WITH CHECK ADD  CONSTRAINT [FK_Like_Comment] FOREIGN KEY([ComputedCommentId])
REFERENCES [dbo].[Comment] ([CommentID])

ALTER TABLE [dbo].[Like] CHECK CONSTRAINT [FK_Like_Comment]
