 USE [master]
 GO
-/****** Object:  Database [Appleseed_Base_App_Alerts]    Script Date: 6/28/2017 4:41:44 PM ******/
+/****** Object:  Database [Appleseed_Base_App_Alerts]    Script Date: 6/29/2017 8:25:47 AM ******/
 CREATE DATABASE [Appleseed_Base_App_Alerts] ON  PRIMARY 
 GO
 IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))

)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[Alert_Email_Log]  WITH CHECK ADD  CONSTRAINT [FK_Alert_Email_Log_Alert_User_Settings] FOREIGN KEY([alert_user_setting_id])
REFERENCES [dbo].[Alert_User_Settings] ([id])

) ON [PRIMARY]

GO
/****** Object:  Table [dbo].[Alert_User_Settings]    Script Date: 6/29/2017 8:25:47 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
