Tables [dbo].[arg_link_location_attachment]
Properties
PropertyValue
Row Count0
Created10:33:13 PM Thursday, February 10, 2011
Last Modified10:34:31 PM Thursday, February 10, 2011
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key xpkarg_link_location_attachmt: location_uuid\file_idForeign Keys LLOAMJOIN01: [dbo].[ca_location].location_uuidlocation_uuidbinary(16)16
No
Cluster Primary Key xpkarg_link_location_attachmt: location_uuid\file_idForeign Keys LLOAMJOIN02: [dbo].[al_file_storage].file_idfile_idbigint8
No
last_update_dateint4
Yes
version_numberint4
Yes
('0  ')
Foreign Keys FK_LINK_LOCATION_ATTACH_TENANT: [dbo].[ca_tenant].tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key xpkarg_link_location_attachmt: location_uuid\file_idxpkarg_link_location_attachmtlocation_uuid, file_id
Yes
Foreign Keys Foreign Keys
NameColumns
FK_LINK_LOCATION_ATTACH_TENANTtenant->[dbo].[ca_tenant].[id]
LLOAMJOIN01location_uuid->[dbo].[ca_location].[location_uuid]
LLOAMJOIN02file_id->[dbo].[al_file_storage].[file_id]
SQL Script
CREATE TABLE [dbo].[arg_link_location_attachment]
(
[location_uuid] [binary] (16) NOT NULL,
[file_id] [bigint] NOT NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__ARG_LINK___VERSI__39788055] DEFAULT ('0  '),
[tenant] [binary] (16) NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_link_location_attachment] ADD CONSTRAINT [xpkarg_link_location_attachmt] PRIMARY KEY CLUSTERED ([location_uuid], [file_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_link_location_attachment] ADD CONSTRAINT [FK_LINK_LOCATION_ATTACH_TENANT] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[arg_link_location_attachment] ADD CONSTRAINT [LLOAMJOIN01] FOREIGN KEY ([location_uuid]) REFERENCES [dbo].[ca_location] ([location_uuid])
GO
ALTER TABLE [dbo].[arg_link_location_attachment] ADD CONSTRAINT [LLOAMJOIN02] FOREIGN KEY ([file_id]) REFERENCES [dbo].[al_file_storage] ([file_id])
GO
Uses