Tables [dbo].[ClaimLiabilityItemPayment]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)0
Created6:24:47 PM Monday, April 16, 2007
Last Modified10:37:48 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentity
Primary Key PK_ClaimLiabilityItemPayment: ClaimLiabilityItemPaymentIDClaimLiabilityItemPaymentIDint4
No
1 - 1
Foreign Keys FK_ClaimLiabilityItemPayment_ClaimLiabilityItem: [dbo].[ClaimLiabilityItem].ClaimLiabilityItemFIDIndexes IX_ClaimLiabilityItemPayment_ClaimLiabilityItemFID_ClaimPaymentDetailFID: ClaimLiabilityItemFID\ClaimPaymentDetailFIDClaimLiabilityItemFIDint4
No
Foreign Keys FK_ClaimLiabilityItemPayment_ClaimPaymentDetail: [dbo].[ClaimPaymentDetail].ClaimPaymentDetailFIDIndexes IX_ClaimLiabilityItemPayment_ClaimLiabilityItemFID_ClaimPaymentDetailFID: ClaimLiabilityItemFID\ClaimPaymentDetailFIDClaimPaymentDetailFIDint4
No
ApplyAmountmoney8
No
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
Foreign Keys FK_ClaimLiabilityItemPayment_AccountingNote: [dbo].[AccountingNote].AccountingNoteFIDAccountingNoteFIDint4
Yes
Foreign Keys FK_ClaimLiabilityItemPayment_SysUser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimLiabilityItemPayment_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
PostedDatedatetime8
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimLiabilityItemPayment: ClaimLiabilityItemPaymentIDPK_ClaimLiabilityItemPaymentClaimLiabilityItemPaymentID
Yes
80
IX_ClaimLiabilityItemPayment_ClaimLiabilityItemFID_ClaimPaymentDetailFIDClaimLiabilityItemFID, ClaimPaymentDetailFID
Yes
80
IX_ClaimLiabilityItemPayment_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameColumns
FK_ClaimLiabilityItemPayment_AccountingNoteAccountingNoteFID->[dbo].[AccountingNote].[ANPriKey]
FK_ClaimLiabilityItemPayment_ClaimLiabilityItemClaimLiabilityItemFID->[dbo].[ClaimLiabilityItem].[ClaimLiabilityItemID]
FK_ClaimLiabilityItemPayment_ClaimPaymentDetailClaimPaymentDetailFID->[dbo].[ClaimPaymentDetail].[ClaimPaymentDetailID]
FK_ClaimLiabilityItemPayment_SysUserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimLiabilityItemPayment]
(
[ClaimLiabilityItemPaymentID] [int] NOT NULL IDENTITY(1, 1),
[ClaimLiabilityItemFID] [int] NOT NULL,
[ClaimPaymentDetailFID] [int] NOT NULL,
[ApplyAmount] [money] NOT NULL,
[DocDate] [datetime] NULL,
[JournalDate] [datetime] NULL,
[AccountingNoteFID] [int] NULL,
[PostedBySysuserFID] [int] NULL,
[PostedDate] [datetime] NULL,
[DocumentNumber] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [PK_ClaimLiabilityItemPayment] PRIMARY KEY NONCLUSTERED  ([ClaimLiabilityItemPaymentID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [IX_ClaimLiabilityItemPayment_ClaimLiabilityItemFID_ClaimPaymentDetailFID] UNIQUE NONCLUSTERED  ([ClaimLiabilityItemFID], [ClaimPaymentDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimLiabilityItemPayment_PostedBySysuserFID] ON [dbo].[ClaimLiabilityItemPayment] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [FK_ClaimLiabilityItemPayment_AccountingNote] FOREIGN KEY ([AccountingNoteFID]) REFERENCES [dbo].[AccountingNote] ([ANPriKey])
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [FK_ClaimLiabilityItemPayment_ClaimLiabilityItem] FOREIGN KEY ([ClaimLiabilityItemFID]) REFERENCES [dbo].[ClaimLiabilityItem] ([ClaimLiabilityItemID])
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [FK_ClaimLiabilityItemPayment_ClaimPaymentDetail] FOREIGN KEY ([ClaimPaymentDetailFID]) REFERENCES [dbo].[ClaimPaymentDetail] ([ClaimPaymentDetailID])
GO
ALTER TABLE [dbo].[ClaimLiabilityItemPayment] ADD CONSTRAINT [FK_ClaimLiabilityItemPayment_SysUser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimLiabilityItemPayment] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimLiabilityItemPayment] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimLiabilityItemPayment] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimLiabilityItemPayment] TO [MssExec]
GO
Uses