Tables [dbo].[wsm_agent]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CS_AS
Row Count0
Created11:08:12 AM Wednesday, March 07, 2007
Last Modified11:10:01 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKwsm_agent: agent_uuidIndexes xwsm_agent: device_id\agent_uuidagent_uuidbinary(16)16
No
Foreign Keys r_1464: [dbo].[wsm_engine].manager_uuidIndexes xif1wsm_agent: manager_uuidmanager_uuidbinary(16)16
No
agent_keyvarbinary(1024)1024
Yes
creation_usernvarchar(64)128
No
creation_dateint4
No
last_update_dateint4
No
last_update_usernvarchar(64)128
No
provision_statusint4
No
versionnvarchar(64)128
No
Foreign Keys r_1466: [dbo].[wsm_user].current_user_uuidIndexes xif2wsm_agent: current_user_uuidcurrent_user_uuidbinary(16)16
No
Foreign Keys r_1467: [dbo].[wsm_device].device_idIndexes xif3wsm_agent: device_idIndexes xwsm_agent: device_id\agent_uuiddevice_idbinary(16)16
No
Foreign Keys r_1487: [dbo].[ca_locale].locale_codeIndexes xif4wsm_agent: locale_codelocale_codevarchar(4)4
Yes
Foreign Keys r_1488: [dbo].[ca_time_zone].time_zone_codeIndexes xif5wsm_agent: time_zone_codetime_zone_codevarchar(64)64
Yes
Foreign Keys r_1510: [dbo].[wsm_status_definition].agent_status_idIndexes xif6wsm_agent: agent_status_idagent_status_idint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKwsm_agent: agent_uuidXPKwsm_agentagent_uuid
Yes
xwsm_agentdevice_id, agent_uuid
Yes
xif1wsm_agentmanager_uuid
xif2wsm_agentcurrent_user_uuid
xif3wsm_agentdevice_id
xif4wsm_agentlocale_code
xif5wsm_agenttime_zone_code
xif6wsm_agentagent_status_id
Foreign Keys Foreign Keys
NameColumns
r_1464manager_uuid->[dbo].[wsm_engine].[manager_uuid]
r_1466current_user_uuid->[dbo].[wsm_user].[user_uuid]
r_1467device_id->[dbo].[wsm_device].[device_id]
r_1487locale_code->[dbo].[ca_locale].[locale_code]
r_1488time_zone_code->[dbo].[ca_time_zone].[time_zone_code]
r_1510agent_status_id->[dbo].[wsm_status_definition].[status_id]
Permissions
TypeActionOwning Principal
GrantDeletewsm_admin_group
GrantInsertwsm_admin_group
GrantSelectwsm_admin_group
GrantUpdatewsm_admin_group
GrantSelectwsm_ro_group
SQL Script
CREATE TABLE [dbo].[wsm_agent]
(
[agent_uuid] [binary] (16) NOT NULL,
[manager_uuid] [binary] (16) NOT NULL,
[agent_key] [varbinary] (1024) NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[creation_date] [int] NOT NULL,
[last_update_date] [int] NOT NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[provision_status] [int] NOT NULL,
[version] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NOT NULL,
[current_user_uuid] [binary] (16) NOT NULL,
[device_id] [binary] (16) NOT NULL,
[locale_code] [varchar] (4) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[time_zone_code] [varchar] (64) COLLATE SQL_Latin1_General_CP1_CS_AS NULL,
[agent_status_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [XPKwsm_agent] PRIMARY KEY CLUSTERED ([agent_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif6wsm_agent] ON [dbo].[wsm_agent] ([agent_status_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif2wsm_agent] ON [dbo].[wsm_agent] ([current_user_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif3wsm_agent] ON [dbo].[wsm_agent] ([device_id]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [xwsm_agent] ON [dbo].[wsm_agent] ([device_id], [agent_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif4wsm_agent] ON [dbo].[wsm_agent] ([locale_code]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_agent] ON [dbo].[wsm_agent] ([manager_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif5wsm_agent] ON [dbo].[wsm_agent] ([time_zone_code]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1464] FOREIGN KEY ([manager_uuid]) REFERENCES [dbo].[wsm_engine] ([manager_uuid])
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1466] FOREIGN KEY ([current_user_uuid]) REFERENCES [dbo].[wsm_user] ([user_uuid])
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1467] FOREIGN KEY ([device_id]) REFERENCES [dbo].[wsm_device] ([device_id])
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1487] FOREIGN KEY ([locale_code]) REFERENCES [dbo].[ca_locale] ([locale_code])
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1488] FOREIGN KEY ([time_zone_code]) REFERENCES [dbo].[ca_time_zone] ([time_zone_code])
GO
ALTER TABLE [dbo].[wsm_agent] ADD CONSTRAINT [r_1510] FOREIGN KEY ([agent_status_id]) REFERENCES [dbo].[wsm_status_definition] ([status_id])
GO
GRANT SELECT ON  [dbo].[wsm_agent] TO [wsm_admin_group]
GRANT INSERT ON  [dbo].[wsm_agent] TO [wsm_admin_group]
GRANT DELETE ON  [dbo].[wsm_agent] TO [wsm_admin_group]
GRANT UPDATE ON  [dbo].[wsm_agent] TO [wsm_admin_group]
GRANT SELECT ON  [dbo].[wsm_agent] TO [wsm_ro_group]
GO
Uses