Tables [dbo].[Forum_UserThreads]
Properties
PropertyValue
Row Count1
Created2:07:30 PM Saturday, November 06, 2010
Last Modified2:07:31 PM Saturday, November 06, 2010
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key PK_Forum_UserThreads: UserID\ThreadIDUserIDint4
No
Cluster Primary Key PK_Forum_UserThreads: UserID\ThreadIDForeign Keys FK_Forum_UserThreads_Forum_Threads: [dbo].[Forum_Threads].ThreadIDThreadIDint4
No
LastVisitDatedatetime8
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key PK_Forum_UserThreads: UserID\ThreadIDPK_Forum_UserThreadsUserID, ThreadID
Yes
Foreign Keys Foreign Keys
NameUpdateDeleteColumns
FK_Forum_UserThreads_Forum_ThreadsCascadeCascadeThreadID->[dbo].[Forum_Threads].[ThreadID]
SQL Script
CREATE TABLE [dbo].[Forum_UserThreads]
(
[UserID] [int] NOT NULL,
[ThreadID] [int] NOT NULL,
[LastVisitDate] [datetime] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[Forum_UserThreads] ADD CONSTRAINT [PK_Forum_UserThreads] PRIMARY KEY CLUSTERED ([UserID], [ThreadID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Forum_UserThreads] ADD CONSTRAINT [FK_Forum_UserThreads_Forum_Threads] FOREIGN KEY ([ThreadID]) REFERENCES [dbo].[Forum_Threads] ([ThreadID]) ON DELETE CASCADE ON UPDATE CASCADE
GO
Uses
Used By