Tables [dbo].[arg_link_location_note]
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_note: location_uuid\note_idForeign Keys LLONOJOIN01: [dbo].[ca_location].location_uuidlocation_uuidbinary(16)16
No
last_update_dateint4
Yes
version_numberint4
Yes
('0  ')
Foreign Keys FK_LINK_LOCATION_NOTE_TENANT: [dbo].[ca_tenant].tenanttenantbinary(16)16
Yes
Cluster Primary Key xpkarg_link_location_note: location_uuid\note_idForeign Keys LLONOJOIN02: [dbo].[al_notes].note_idnote_idbigint8
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key xpkarg_link_location_note: location_uuid\note_idxpkarg_link_location_notelocation_uuid, note_id
Yes
Foreign Keys Foreign Keys
NameColumns
FK_LINK_LOCATION_NOTE_TENANTtenant->[dbo].[ca_tenant].[id]
LLONOJOIN01location_uuid->[dbo].[ca_location].[location_uuid]
LLONOJOIN02note_id->[dbo].[al_notes].[note_id]
SQL Script
CREATE TABLE [dbo].[arg_link_location_note]
(
[location_uuid] [binary] (16) NOT NULL,
[last_update_date] [int] NULL,
[version_number] [int] NULL CONSTRAINT [DF__ARG_LINK___VERSI__29E1370A] DEFAULT ('0  '),
[tenant] [binary] (16) NULL,
[note_id] [bigint] NOT NULL
) ON [PRIMARY]

GO
ALTER TABLE [dbo].[arg_link_location_note] ADD CONSTRAINT [xpkarg_link_location_note] PRIMARY KEY CLUSTERED ([location_uuid], [note_id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[arg_link_location_note] ADD CONSTRAINT [FK_LINK_LOCATION_NOTE_TENANT] FOREIGN KEY ([tenant]) REFERENCES [dbo].[ca_tenant] ([id])
GO
ALTER TABLE [dbo].[arg_link_location_note] ADD CONSTRAINT [LLONOJOIN01] FOREIGN KEY ([location_uuid]) REFERENCES [dbo].[ca_location] ([location_uuid])
GO
ALTER TABLE [dbo].[arg_link_location_note] ADD CONSTRAINT [LLONOJOIN02] FOREIGN KEY ([note_id]) REFERENCES [dbo].[al_notes] ([note_id])
GO
Uses