Tables [dbo].[al_export_def]
Properties
PropertyValue
Row Count0
Created10:33:02 PM Thursday, February 10, 2011
Last Modified10:34:18 PM Thursday, February 10, 2011
Columns
NameData TypeCollationMax Length (Bytes)Allow NullsDefault
Cluster Primary Key pk_al_export_def: export_idexport_idbigint8
No
Indexes al_export_def_idx_01: namenamenvarchar(100)SQL_Latin1_General_CP1_CI_AS200
No
descriptionnvarchar(255)SQL_Latin1_General_CP1_CI_AS510
Yes
Foreign Keys AL_EXPORT_DEF_FK01: [dbo].[al_export_processor].processor_idprocessor_idint4
No
Foreign Keys AL_EXPORT_DEF_FK02: [dbo].[al_search_def].search_idsearch_idbigint8
No
Foreign Keys AL_EXPORT_DEF_FK03: [dbo].[al_export_status].status_idstatus_idint4
Yes
('0 ')
Foreign Keys AL_EXPORT_DEF_FK04: [dbo].[al_schedule_def].schedule_idschedule_idbigint8
Yes
Foreign Keys AL_EXPORT_DEF_FK07: [dbo].[al_role_def].role_idrole_idint4
No
Foreign Keys AL_EXPORT_DEF_FK06: [dbo].[ca_contact].contact_uuidcontact_uuidbinary(16)16
No
contacts_scopeint4
No
Foreign Keys AL_EXPORT_DEF_FK05: [dbo].[ca_tenant].tenanttenantbinary(16)16
Yes
folder_namenvarchar(255)SQL_Latin1_General_CP1_CI_AS510
Yes
retention_daysint4
Yes
last_run_datedatetime8
Yes
last_due_run_datedatetime8
Yes
creation_usernvarchar(64)SQL_Latin1_General_CP1_CI_AS128
Yes
creation_dateint4
Yes
last_update_usernvarchar(64)SQL_Latin1_General_CP1_CI_AS128
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0     ')
never_expiresint4
Yes
view_namenvarchar(30)SQL_Latin1_General_CP1_CS_AS60
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_al_export_def: export_idpk_al_export_defexport_id
Yes
al_export_def_idx_01name
Yes
Foreign Keys Foreign Keys
NameColumns
AL_EXPORT_DEF_FK01processor_id->[dbo].[al_export_processor].[processor_id]
AL_EXPORT_DEF_FK02search_id->[dbo].[al_search_def].[search_id]
AL_EXPORT_DEF_FK03status_id->[dbo].[al_export_status].[status_id]
AL_EXPORT_DEF_FK04schedule_id->[dbo].[al_schedule_def].[schedule_id]
AL_EXPORT_DEF_FK05tenant->[dbo].[ca_tenant].[id]
AL_EXPORT_DEF_FK06contact_uuid->[dbo].[ca_contact].[contact_uuid]
AL_EXPORT_DEF_FK07role_id->[dbo].[al_role_def].[role_id]
SQL Script
CREATE TABLE [dbo].[al_export_def]
(
[export_id] [bigint] NOT NULL,
[name] [nvarchar] (100) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[processor_id] [int] NOT NULL,
[search_id] [bigint] NOT NULL,
[status_id] [int] NULL CONSTRAINT [DF__AL_EXPORT__STATU__4E88ABD4] DEFAULT ('0 '),
[schedule_id] [bigint] NULL,
[role_id] [int] NOT NULL,
[contact_uuid] [binary] (16) NOT NULL,
[contacts_scope] [int] NOT NULL,
[tenant] [binary] (16) NULL,
[folder_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[retention_days] [int] NULL,
[last_run_date] [datetime] NULL,
[last_due_run_date] [datetime] NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__AL_EXPORT__VERSI__4F7CD00D] DEFAULT ('0     '),
[never_expires] [int] NULL,
[view_name] [nvarchar] (30) COLLATE SQL_Latin1_General_CP1_CS_AS NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [pk_al_export_def] PRIMARY KEY CLUSTERED ([export_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [al_export_def_idx_01] ON [dbo].[al_export_def] ([name]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK01] FOREIGN KEY ([processor_id]) REFERENCES [dbo].[al_export_processor] ([processor_id])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK02] FOREIGN KEY ([search_id]) REFERENCES [dbo].[al_search_def] ([search_id])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK03] FOREIGN KEY ([status_id]) REFERENCES [dbo].[al_export_status] ([status_id])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK04] FOREIGN KEY ([schedule_id]) REFERENCES [dbo].[al_schedule_def] ([schedule_id])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK05] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK06] FOREIGN KEY ([contact_uuid]) REFERENCES [dbo].[ca_contact] ([contact_uuid])
GO
ALTER TABLE [dbo].[al_export_def] ADD CONSTRAINT [AL_EXPORT_DEF_FK07] FOREIGN KEY ([role_id]) REFERENCES [dbo].[al_role_def] ([role_id])
GO
Uses
Used By