Tables [dbo].[arg_link_org_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_org_attachment: organization_uuid\file_idForeign Keys LORAMJOIN01: [dbo].[ca_organization].organization_uuidorganization_uuidbinary(16)16
No
Cluster Primary Key xpkarg_link_org_attachment: organization_uuid\file_idForeign Keys LORAMJOIN02: [dbo].[al_file_storage].file_idfile_idbigint8
No
last_update_dateint4
Yes
version_numberint4
Yes
('0  ')
Foreign Keys FK_LINK_ORG_ATTACH_TENANT: [dbo].[ca_tenant].tenanttenantbinary(16)16
Yes
Indexes Indexes
NameColumnsUnique
Cluster Primary Key xpkarg_link_org_attachment: organization_uuid\file_idxpkarg_link_org_attachmentorganization_uuid, file_id
Yes
Foreign Keys Foreign Keys
NameColumns
FK_LINK_ORG_ATTACH_TENANTtenant->[dbo].[ca_tenant].[id]
LORAMJOIN01organization_uuid->[dbo].[ca_organization].[organization_uuid]
LORAMJOIN02file_id->[dbo].[al_file_storage].[file_id]
SQL Script
CREATE TABLE [dbo].[arg_link_org_attachment]
(
[organization_uuid] [binary] (16) NOT NULL,
[file_id] [bigint] NOT NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__ARG_LINK___VERSI__68687968] DEFAULT ('0  '),
[tenant] [binary] (16) NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_link_org_attachment] ADD CONSTRAINT [xpkarg_link_org_attachment] PRIMARY KEY CLUSTERED ([organization_uuid], [file_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_link_org_attachment] ADD CONSTRAINT [FK_LINK_ORG_ATTACH_TENANT] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[arg_link_org_attachment] ADD CONSTRAINT [LORAMJOIN01] FOREIGN KEY ([organization_uuid]) REFERENCES [dbo].[ca_organization] ([organization_uuid])
GO
ALTER TABLE [dbo].[arg_link_org_attachment] ADD CONSTRAINT [LORAMJOIN02] FOREIGN KEY ([file_id]) REFERENCES [dbo].[al_file_storage] ([file_id])
GO
Uses