Tables [dbo].[al_aud_costdet_wtmr]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created10:37:17 PM Thursday, February 10, 2011
Last Modified10:37:18 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key costdet_wtmr_pk: cost_id\event_idcost_idbigint8
No
Cluster Primary Key costdet_wtmr_pk: cost_id\event_idForeign Keys costdet_wtmr_fk1: [dbo].[al_event_def].event_idevent_idint4
No
timer_start_dateint4
Yes
timer_end_dateint4
Yes
Foreign Keys costdet_wtmr_fk2: [dbo].[aud_al_costdet].audit_trail_idaudit_trail_idbigint8
No
timer_statusint4
Yes
initial_valuenvarchar(1000)2000
Yes
last_update_dateint4
Yes
creation_usernvarchar(255)510
Yes
creation_dateint4
Yes
last_update_usernvarchar(255)510
Yes
version_numberint4
Yes
((0))
Indexes Indexes
NameColumnsUnique
Cluster Primary Key costdet_wtmr_pk: cost_id\event_idcostdet_wtmr_pkcost_id, event_id
Yes
Foreign Keys Foreign Keys
NameColumns
costdet_wtmr_fk1event_id->[dbo].[al_event_def].[event_id]
costdet_wtmr_fk2audit_trail_id->[dbo].[aud_al_costdet].[audit_trail_id]
SQL Script
CREATE TABLE [dbo].[al_aud_costdet_wtmr]
(
[cost_id] [bigint] NOT NULL,
[event_id] [int] NOT NULL,
[timer_start_date] [int] NULL,
[timer_end_date] [int] NULL,
[audit_trail_id] [bigint] NOT NULL,
[timer_status] [int] NULL,
[initial_value] [nvarchar] (1000) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_date] [int] NULL,
[creation_user] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_user] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[version_number] [int] NULL CONSTRAINT [DF__al_aud_co__versi__13523DE0] DEFAULT ((0))
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[al_aud_costdet_wtmr] ADD CONSTRAINT [costdet_wtmr_pk] PRIMARY KEY CLUSTERED ([cost_id], [event_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_aud_costdet_wtmr] ADD CONSTRAINT [costdet_wtmr_fk1] FOREIGN KEY ([event_id]) REFERENCES [dbo].[al_event_def] ([event_id])
GO
ALTER TABLE [dbo].[al_aud_costdet_wtmr] ADD CONSTRAINT [costdet_wtmr_fk2] FOREIGN KEY ([audit_trail_id]) REFERENCES [dbo].[aud_al_costdet] ([audit_trail_id])
GO
Uses