Tables [dbo].[al_role_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count6
Created10:23:57 AM Sunday, December 05, 2010
Last Modified10:34:21 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key pk_al_role_def: role_idrole_idint4
No
role_namenvarchar(255)510
No
descriptionnvarchar(255)510
Yes
inactiveint4
Yes
('0')
coresmallint2
Yes
('0')
Foreign Keys al_role_def_fk01: [dbo].[al_tenant_access_types].tenant_access_readtenant_access_readint4
Yes
Foreign Keys al_role_def_fk02: [dbo].[ca_tenant].single_tenant_readsingle_tenant_readbinary(16)16
Yes
Foreign Keys al_role_def_fk03: [dbo].[ca_tenant_group].tenant_group_readtenant_group_readbinary(16)16
Yes
Foreign Keys al_role_def_fk04: [dbo].[al_tenant_access_types].tenant_access_writetenant_access_writeint4
Yes
Foreign Keys al_role_def_fk05: [dbo].[ca_tenant].single_tenant_writesingle_tenant_writebinary(16)16
Yes
Foreign Keys al_role_def_fk06: [dbo].[ca_tenant_group].tenant_group_writetenant_group_writebinary(16)16
Yes
update_publicsmallint2
Yes
('0')
creation_usernvarchar(255)510
Yes
creation_dateint4
Yes
last_update_usernvarchar(255)510
Yes
last_update_dateint4
Yes
version_numberint4
Yes
('0')
role_accesssmallint2
Yes
('0')
user_accesssmallint2
Yes
('0')
system_config_accesssmallint2
Yes
('0')
reconciliation_accesssmallint2
Yes
('0')
asset_fulfillment_accesssmallint2
Yes
tenancy_admin_accessint4
Yes
api_accesssmallint2
Yes
('0')
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_al_role_def: role_idpk_al_role_defrole_id
Yes
Foreign Keys Foreign Keys
NameColumns
al_role_def_fk01tenant_access_read->[dbo].[al_tenant_access_types].[id]
al_role_def_fk02single_tenant_read->[dbo].[ca_tenant].[id]
al_role_def_fk03tenant_group_read->[dbo].[ca_tenant_group].[id]
al_role_def_fk04tenant_access_write->[dbo].[al_tenant_access_types].[id]
al_role_def_fk05single_tenant_write->[dbo].[ca_tenant].[id]
al_role_def_fk06tenant_group_write->[dbo].[ca_tenant_group].[id]
SQL Script
CREATE TABLE [dbo].[al_role_def]
(
[role_id] [int] NOT NULL,
[role_name] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[description] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[inactive] [int] NULL CONSTRAINT [DF__al_role_d__inact__48CFD27E] DEFAULT ('0'),
[core] [smallint] NULL CONSTRAINT [DF__al_role_de__core__49C3F6B7] DEFAULT ('0'),
[tenant_access_read] [int] NULL,
[single_tenant_read] [binary] (16) NULL,
[tenant_group_read] [binary] (16) NULL,
[tenant_access_write] [int] NULL,
[single_tenant_write] [binary] (16) NULL,
[tenant_group_write] [binary] (16) NULL,
[update_public] [smallint] NULL CONSTRAINT [DF__al_role_d__updat__4AB81AF0] DEFAULT ('0'),
[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__al_role_d__versi__4BAC3F29] DEFAULT ('0'),
[role_access] [smallint] NULL CONSTRAINT [DF__al_role_d__role___4CA06362] DEFAULT ('0'),
[user_access] [smallint] NULL CONSTRAINT [DF__al_role_d__user___4D94879B] DEFAULT ('0'),
[system_config_access] [smallint] NULL CONSTRAINT [DF__al_role_d__syste__4E88ABD4] DEFAULT ('0'),
[reconciliation_access] [smallint] NULL CONSTRAINT [DF__al_role_d__recon__4F7CD00D] DEFAULT ('0'),
[asset_fulfillment_access] [smallint] NULL,
[tenancy_admin_access] [int] NULL,
[api_access] [smallint] NULL CONSTRAINT [DF__AL_ROLE_DEF_API_ACCESS] DEFAULT ('0')
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [pk_al_role_def] PRIMARY KEY CLUSTERED ([role_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk01] FOREIGN KEY ([tenant_access_read]) REFERENCES [dbo].[al_tenant_access_types] ([id])
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk02] FOREIGN KEY ([single_tenant_read]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk03] FOREIGN KEY ([tenant_group_read]) REFERENCES [dbo].[ca_tenant_group] ([id])
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk04] FOREIGN KEY ([tenant_access_write]) REFERENCES [dbo].[al_tenant_access_types] ([id])
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk05] FOREIGN KEY ([single_tenant_write]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[al_role_def] ADD CONSTRAINT [al_role_def_fk06] FOREIGN KEY ([tenant_group_write]) REFERENCES [dbo].[ca_tenant_group] ([id])
GO
Uses
Used By