Tables [dbo].[al_role_def]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count0
Created4:35:39 PM Wednesday, March 24, 2010
Last Modified4:36:42 PM Wednesday, March 24, 2010
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
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__0FB9E482] DEFAULT ('0'),
[core] [smallint] NULL CONSTRAINT [DF__al_role_de__core__10AE08BB] 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__11A22CF4] 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__1296512D] DEFAULT ('0'),
[role_access] [smallint] NULL CONSTRAINT [DF__al_role_d__role___138A7566] DEFAULT ('0'),
[user_access] [smallint] NULL CONSTRAINT [DF__al_role_d__user___147E999F] DEFAULT ('0'),
[system_config_access] [smallint] NULL CONSTRAINT [DF__al_role_d__syste__1572BDD8] DEFAULT ('0'),
[reconciliation_access] [smallint] NULL CONSTRAINT [DF__al_role_d__recon__1666E211] DEFAULT ('0'),
[asset_fulfillment_access] [smallint] NULL
) 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