Tables [dbo].[wsm_location]
Properties
PropertyValue
Row Count0
Created11:08:12 AM Wednesday, March 07, 2007
Last Modified11:10:02 AM Wednesday, March 07, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key XPKwsm_location: location_idIndexes xak1wsm_location: location_id\ca_location_uuidlocation_idbinary(16)16
No
Foreign Keys r_7: [dbo].[wsm_engine].manager_uuidIndexes xif1wsm_location: manager_uuidmanager_uuidbinary(16)16
Yes
Foreign Keys r_1461: [dbo].[ca_location].ca_location_uuidIndexes xif2wsm_location: ca_location_uuidIndexes xak1wsm_location: location_id\ca_location_uuidca_location_uuidbinary(16)16
No
default_attenuationfloat8
No
Foreign Keys r_1495: [dbo].[ca_site].site_idIndexes xif3wsm_location: site_idsite_idint4
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key XPKwsm_location: location_idXPKwsm_locationlocation_id
Yes
xak1wsm_locationlocation_id, ca_location_uuid
Yes
xif1wsm_locationmanager_uuid
xif2wsm_locationca_location_uuid
xif3wsm_locationsite_id
Foreign Keys Foreign Keys
NameColumns
r_1461ca_location_uuid->[dbo].[ca_location].[location_uuid]
r_1495site_id->[dbo].[ca_site].[id]
r_7manager_uuid->[dbo].[wsm_engine].[manager_uuid]
Permissions
TypeActionOwning Principal
GrantDeletewsm_admin_group
GrantInsertwsm_admin_group
GrantSelectwsm_admin_group
GrantUpdatewsm_admin_group
GrantSelectwsm_ro_group
SQL Script
CREATE TABLE [dbo].[wsm_location]
(
[location_id] [binary] (16) NOT NULL,
[manager_uuid] [binary] (16) NULL,
[ca_location_uuid] [binary] (16) NOT NULL,
[default_attenuation] [float] NOT NULL,
[site_id] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_location] ADD CONSTRAINT [XPKwsm_location] PRIMARY KEY CLUSTERED ([location_id]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif2wsm_location] ON [dbo].[wsm_location] ([ca_location_uuid]) ON [PRIMARY]
GO
CREATE UNIQUE NONCLUSTERED INDEX [xak1wsm_location] ON [dbo].[wsm_location] ([location_id], [ca_location_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif1wsm_location] ON [dbo].[wsm_location] ([manager_uuid]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [xif3wsm_location] ON [dbo].[wsm_location] ([site_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[wsm_location] ADD CONSTRAINT [r_1461] FOREIGN KEY ([ca_location_uuid]) REFERENCES [dbo].[ca_location] ([location_uuid])
GO
ALTER TABLE [dbo].[wsm_location] ADD CONSTRAINT [r_1495] FOREIGN KEY ([site_id]) REFERENCES [dbo].[ca_site] ([id])
GO
ALTER TABLE [dbo].[wsm_location] ADD CONSTRAINT [r_7] FOREIGN KEY ([manager_uuid]) REFERENCES [dbo].[wsm_engine] ([manager_uuid])
GO
GRANT SELECT ON  [dbo].[wsm_location] TO [wsm_admin_group]
GRANT INSERT ON  [dbo].[wsm_location] TO [wsm_admin_group]
GRANT DELETE ON  [dbo].[wsm_location] TO [wsm_admin_group]
GRANT UPDATE ON  [dbo].[wsm_location] TO [wsm_admin_group]
GRANT SELECT ON  [dbo].[wsm_location] TO [wsm_ro_group]
GO
Uses
Used By