Tables [dbo].[ci_location]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count6
Created10:24:15 AM Sunday, December 05, 2010
Last Modified10:24:26 AM Sunday, December 05, 2010
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Foreign Keys ci_location_base_fk: [dbo].[ca_location].base_locationbase_locationbinary(16)16
Yes
delint4
No
('0')
Primary Key PK__ci_location__5384CD20: own_resource_uuidown_resource_uuidbinary(16)16
No
creation_usernvarchar(64)128
Yes
last_update_usernvarchar(64)128
Yes
creation_dateint4
Yes
last_update_dateint4
Yes
version_numberint4
Yes
Indexes Indexes
NameColumnsUnique
Primary Key PK__ci_location__5384CD20: own_resource_uuidPK__ci_location__5384CD20own_resource_uuid
Yes
Foreign Keys Foreign Keys
NameColumns
ci_location_base_fkbase_location->[dbo].[ca_location].[location_uuid]
Permissions
TypeActionOwning Principal
GrantDeleteservice_desk_admin_group
GrantInsertservice_desk_admin_group
GrantSelectservice_desk_admin_group
GrantUpdateservice_desk_admin_group
GrantSelectservice_desk_ro_group
SQL Script
CREATE TABLE [dbo].[ci_location]
(
[base_location] [binary] (16) NULL,
[del] [int] NOT NULL CONSTRAINT [DF__ci_location__del__00577397] DEFAULT ('0'),
[own_resource_uuid] [binary] (16) NOT NULL,
[creation_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[last_update_user] [nvarchar] (64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[creation_date] [int] NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[ci_location] ADD CONSTRAINT [PK__ci_location__5384CD20] PRIMARY KEY NONCLUSTERED ([own_resource_uuid]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ci_location] ADD CONSTRAINT [ci_location_base_fk] FOREIGN KEY ([base_location]) REFERENCES [dbo].[ca_location] ([location_uuid])
GO
GRANT SELECT ON  [dbo].[ci_location] TO [service_desk_admin_group]
GRANT INSERT ON  [dbo].[ci_location] TO [service_desk_admin_group]
GRANT DELETE ON  [dbo].[ci_location] TO [service_desk_admin_group]
GRANT UPDATE ON  [dbo].[ci_location] TO [service_desk_admin_group]
GRANT SELECT ON  [dbo].[ci_location] TO [service_desk_ro_group]
GO
Uses