Tables [dbo].[UserAlertConfig]
Properties
PropertyValue
Row Count0
Created12:44:46 PM Thursday, October 04, 2007
Last Modified12:44:46 PM Thursday, October 04, 2007
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Cluster Primary Key pk_alertconfigID: alertconfigIDalertconfigIDint4
No
1 - 1
Foreign Keys fk_users_userID: [dbo].[Users].userIDuserIDint4
No
Foreign Keys fk_alerttype_alerttype: [dbo].[AlertTypeDetails].AlertTypeAlertTypeint4
No
Foreign Keys fk_alerttrigger_alerttrigger: [dbo].[AlertTriggerDetails].AlertTriggerAlertTriggerint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_alertconfigID: alertconfigIDpk_alertconfigIDalertconfigID
Yes
Foreign Keys Foreign Keys
NameColumns
fk_alerttrigger_alerttriggerAlertTrigger->[dbo].[AlertTriggerDetails].[AlertTrigger]
fk_alerttype_alerttypeAlertType->[dbo].[AlertTypeDetails].[AlertType]
fk_users_userIDuserID->[dbo].[Users].[userID]
SQL Script
CREATE TABLE [dbo].[UserAlertConfig]
(
[alertconfigID] [int] NOT NULL IDENTITY(1, 1),
[userID] [int] NOT NULL,
[AlertType] [int] NOT NULL,
[AlertTrigger] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UserAlertConfig] ADD CONSTRAINT [pk_alertconfigID] PRIMARY KEY CLUSTERED ([alertconfigID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[UserAlertConfig] ADD CONSTRAINT [fk_alerttrigger_alerttrigger] FOREIGN KEY ([AlertTrigger]) REFERENCES [dbo].[AlertTriggerDetails] ([AlertTrigger])
GO
ALTER TABLE [dbo].[UserAlertConfig] ADD CONSTRAINT [fk_alerttype_alerttype] FOREIGN KEY ([AlertType]) REFERENCES [dbo].[AlertTypeDetails] ([AlertType])
GO
ALTER TABLE [dbo].[UserAlertConfig] ADD CONSTRAINT [fk_users_userID] FOREIGN KEY ([userID]) REFERENCES [dbo].[Users] ([userID])
GO
Uses
Used By