
[dbo].[al_link_attribute_security]
CREATE TABLE [dbo].[al_link_attribute_security]
(
[attribute_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[security_id] [int] NOT NULL,
[class_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[root_class_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS 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,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF_LAS_VERSION] DEFAULT ('0')
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_link_attribute_security] ADD CONSTRAINT [xpkal_link_attribute_security] PRIMARY KEY CLUSTERED ([class_name], [attribute_name], [security_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_link_attribute_security] WITH NOCHECK ADD CONSTRAINT [al_link_att_security_fk01] FOREIGN KEY ([class_name], [attribute_name]) REFERENCES [dbo].[arg_attribute_def] ([class_name], [attribute_name])
GO
ALTER TABLE [dbo].[al_link_attribute_security] ADD CONSTRAINT [al_link_att_security_fk02] FOREIGN KEY ([security_id]) REFERENCES [dbo].[al_security_identifier] ([id])
GO
ALTER TABLE [dbo].[al_link_attribute_security] ADD CONSTRAINT [al_link_att_security_fk03] FOREIGN KEY ([root_class_name]) REFERENCES [dbo].[arg_class_def] ([class_name])
GO