Tables [dbo].[al_search_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count85
Created10:33:08 PM Thursday, February 10, 2011
Last Modified10:34:27 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key pk_al_search_def: search_idsearch_idbigint8
No
is_uniqueint4
No
is_selectableint4
No
Foreign Keys AL_SEARCH_DEF_FK01: [dbo].[arg_dl_category].category_idcategory_idbigint8
No
Indexes al_search_def_uk1: title\tenanttitlenvarchar(256)512
No
descriptionnvarchar(1024)2048
Yes
view_typeint4
No
top_amtint4
Yes
Foreign Keys AL_SEARCH_DEF_FK02: [dbo].[arg_sl_top_type].top_type_idtop_type_idint4
Yes
creation_usernvarchar(128)256
Yes
creation_dateint4
Yes
last_update_usernvarchar(128)256
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0')
coreint4
No
('1')
Foreign Keys AL_SEARCH_DEF_FK03: [dbo].[ca_tenant].tenantIndexes al_search_def_uk1: title\tenanttenantbinary(16)16
Yes
temporaryint4
Yes
('0')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_al_search_def: search_idpk_al_search_defsearch_id
Yes
al_search_def_uk1title, tenant
Yes
Foreign Keys Foreign Keys
NameColumns
AL_SEARCH_DEF_FK01category_id->[dbo].[arg_dl_category].[id]
AL_SEARCH_DEF_FK02top_type_id->[dbo].[arg_sl_top_type].[id]
AL_SEARCH_DEF_FK03tenant->[dbo].[ca_tenant].[id]
SQL Script
CREATE TABLE [dbo].[al_search_def]
(
[search_id] [bigint] NOT NULL,
[is_unique] [int] NOT NULL,
[is_selectable] [int] NOT NULL,
[category_id] [bigint] NOT NULL,
[title] [nvarchar] (256) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[description] [nvarchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[view_type] [int] NOT NULL,
[top_amt] [int] NULL,
[top_type_id] [int] NULL,
[creation_user] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_user] [nvarchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__AL_SEARCH__VERSI__2CBDA3B5] DEFAULT ('0'),
[core] [int] NOT NULL CONSTRAINT [DF__AL_SEARCH___CORE__2DB1C7EE] DEFAULT ('1'),
[tenant] [binary] (16) NULL,
[temporary] [int] NULL CONSTRAINT [DF__AL_SEARCH__TEMPO__2EA5EC27] DEFAULT ('0')
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[al_search_def] ADD CONSTRAINT [pk_al_search_def] PRIMARY KEY CLUSTERED ([search_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_search_def] ADD CONSTRAINT [al_search_def_uk1] UNIQUE NONCLUSTERED ([title], [tenant]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_search_def] ADD CONSTRAINT [AL_SEARCH_DEF_FK01] FOREIGN KEY ([category_id]) REFERENCES [dbo].[arg_dl_category] ([id])
GO
ALTER TABLE [dbo].[al_search_def] ADD CONSTRAINT [AL_SEARCH_DEF_FK02] FOREIGN KEY ([top_type_id]) REFERENCES [dbo].[arg_sl_top_type] ([id])
GO
ALTER TABLE [dbo].[al_search_def] ADD CONSTRAINT [AL_SEARCH_DEF_FK03] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
Uses
Used By