Tables [dbo].[ARReceiptNoteDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:59 AM Thursday, March 21, 2019
Last Modified1:10:24 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK__ARReceip__3CDA316AD2F9A0EE: NoteDetailIDNoteDetailIDint4
False
1 - 1
Foreign Keys FK_ARReceiptNoteDetails_NoteID_ARReceiptNotes: [dbo].[ARReceiptNotes].NoteIDNoteIDint4
False
Notetextmax
True
Foreign Keys FK_ARReceiptNoteDetails_TypeID_SHNoteTypes: [dbo].[SHNoteTypes].TypeIDTypeIDint4
False
CreatorIDvarchar(8)8
True
CreateDatedatetime8
False
(getdate())
UpdatorIDvarchar(8)8
True
LastUpdatedatetime8
False
(getdate())
KeyNameKey ColumnsUniqueFill Factor
Cluster Primary Key PK__ARReceip__3CDA316AD2F9A0EE: NoteDetailIDPK__ARReceip__3CDA316AD2F9A0EENoteDetailID
True
80
NameColumns
FK_ARReceiptNoteDetails_NoteID_ARReceiptNotesNoteID->[dbo].[ARReceiptNotes].[NoteID]
FK_ARReceiptNoteDetails_TypeID_SHNoteTypesTypeID->[dbo].[SHNoteTypes].[NoteTypeID]
CREATE TABLE [dbo].[ARReceiptNoteDetails]
(
[NoteDetailID] [int] NOT NULL IDENTITY(1, 1),
[NoteID] [int] NOT NULL,
[Note] [text] COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[TypeID] [int] NOT NULL,
[CreatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CreateDate] [datetime] NOT NULL CONSTRAINT [DF_ARReceiptNoteDetails_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_ARReceiptNoteDetails_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARReceiptNoteDetails] ADD CONSTRAINT [PK__ARReceip__3CDA316AD2F9A0EE] PRIMARY KEY CLUSTERED  ([NoteDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ARReceiptNoteDetails] ADD CONSTRAINT [FK_ARReceiptNoteDetails_NoteID_ARReceiptNotes] FOREIGN KEY ([NoteID]) REFERENCES [dbo].[ARReceiptNotes] ([NoteID])
GO
ALTER TABLE [dbo].[ARReceiptNoteDetails] ADD CONSTRAINT [FK_ARReceiptNoteDetails_TypeID_SHNoteTypes] FOREIGN KEY ([TypeID]) REFERENCES [dbo].[SHNoteTypes] ([NoteTypeID])
GO