Tables [dbo].[ARCustomerNoteDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:43 AM Thursday, March 21, 2019
Last Modified1:10:06 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_ARCustomerNoteDetails: NoteDetailIDNoteDetailIDint4
False
1 - 1
Foreign Keys FK_ARCustomerNoteDetails_NoteID_ARCustomerNotes: [dbo].[ARCustomerNotes].NoteIDNoteIDint4
False
Notetextmax
False
Foreign Keys FK_ARCustomerNoteDetails_TypeID_SHNoteTypes: [dbo].[SHNoteTypes].TypeIDTypeIDint4
False
CreatorIDvarchar(8)8
False
CreateDatedatetime8
False
(getdate())
UpdatorIDvarchar(8)8
False
LastUpdatedatetime8
False
(getdate())
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK_ARCustomerNoteDetails: NoteDetailIDPK_ARCustomerNoteDetailsNoteDetailID
True
80
NameColumns
FK_ARCustomerNoteDetails_NoteID_ARCustomerNotesNoteID->[dbo].[ARCustomerNotes].[NoteID]
FK_ARCustomerNoteDetails_TypeID_SHNoteTypesTypeID->[dbo].[SHNoteTypes].[NoteTypeID]
CREATE TABLE [dbo].[ARCustomerNoteDetails]
(
[NoteDetailID] [int] NOT NULL IDENTITY(1, 1),
[NoteID] [int] NOT NULL,
[Note] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[TypeID] [int] NOT NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ARCustomerNoteDetails_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ARCustomerNoteDetails_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCustomerNoteDetails] ADD CONSTRAINT [PK_ARCustomerNoteDetails] PRIMARY KEY CLUSTERED  ([NoteDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARCustomerNoteDetails] ADD CONSTRAINT [FK_ARCustomerNoteDetails_NoteID_ARCustomerNotes] FOREIGN KEY ([NoteID]) REFERENCES [dbo].[ARCustomerNotes] ([NoteID])
GO
ALTER TABLE [dbo].[ARCustomerNoteDetails] ADD CONSTRAINT [FK_ARCustomerNoteDetails_TypeID_SHNoteTypes] FOREIGN KEY ([TypeID]) REFERENCES [dbo].[SHNoteTypes] ([NoteTypeID])
GO