Tables [dbo].[APVoucherNoteDetails]
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count (~)0
Created12:56:39 AM Thursday, March 21, 2019
Last Modified1:09:59 AM Thursday, March 21, 2019
KeyNameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Cluster Primary Key PK_APVoucherNoteDetails: NoteDetailIDNoteDetailIDint4
False
1 - 1
Foreign Keys FK_APVoucherNoteDetails_NoteID_APVoucherNotes: [dbo].[APVoucherNotes].NoteIDNoteIDint4
False
Notetextmax
False
Foreign Keys FK_APVoucherNoteDetails_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_APVoucherNoteDetails: NoteDetailIDPK_APVoucherNoteDetailsNoteDetailID
True
80
NameColumns
FK_APVoucherNoteDetails_NoteID_APVoucherNotesNoteID->[dbo].[APVoucherNotes].[NoteID]
FK_APVoucherNoteDetails_TypeID_SHNoteTypesTypeID->[dbo].[SHNoteTypes].[NoteTypeID]
CREATE TABLE [dbo].[APVoucherNoteDetails]
(
[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_APVoucherNoteDetails_CreateDate] DEFAULT (getdate()),
[UpdatorID] [varchar] (8) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[LastUpdate] [datetime] NOT NULL CONSTRAINT [DF_APVoucherNoteDetails_LastUpdate] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APVoucherNoteDetails] ADD CONSTRAINT [PK_APVoucherNoteDetails] PRIMARY KEY CLUSTERED  ([NoteDetailID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[APVoucherNoteDetails] ADD CONSTRAINT [FK_APVoucherNoteDetails_NoteID_APVoucherNotes] FOREIGN KEY ([NoteID]) REFERENCES [dbo].[APVoucherNotes] ([NoteID])
GO
ALTER TABLE [dbo].[APVoucherNoteDetails] ADD CONSTRAINT [FK_APVoucherNoteDetails_TypeID_SHNoteTypes] FOREIGN KEY ([TypeID]) REFERENCES [dbo].[SHNoteTypes] ([NoteTypeID])
GO