Tables [dbo].[ClaimHandlingExpensePayment]
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_ClaimHandlingExpensePayment: ClaimHandlingExpensePaymentIDClaimHandlingExpensePaymentIDint4
No
1 - 1
Foreign Keys FK_ClaimHandlingExpensePayment_ClaimHandlingExpense: [dbo].[ClaimHandlingExpense].ClaimHandlingExpenseFIDIndexes IX_ClaimHandlingExpensePayment_ClaimHandlingExpenseFID_ClaimPaymentDetailFID: ClaimHandlingExpenseFID\ClaimPaymentDetailFIDClaimHandlingExpenseFIDint4
No
Foreign Keys FK_ClaimHandlingExpensePayment_ClaimPaymentDetail: [dbo].[ClaimPaymentDetail].ClaimPaymentDetailFIDIndexes IX_ClaimHandlingExpensePayment_ClaimHandlingExpenseFID_ClaimPaymentDetailFID: ClaimHandlingExpenseFID\ClaimPaymentDetailFIDClaimPaymentDetailFIDint4
No
ApplyAmountmoney8
No
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
Foreign Keys FK_ClaimHandlingExpensePayment_AccountingNote: [dbo].[AccountingNote].AccountingNoteFIDAccountingNoteFIDint4
Yes
Foreign Keys FK_ClaimHandlingExpensePayment_SysUser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimHandlingExpensePayment_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
PostedDatedatetime8
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimHandlingExpensePayment: ClaimHandlingExpensePaymentIDPK_ClaimHandlingExpensePaymentClaimHandlingExpensePaymentID
Yes
80
IX_ClaimHandlingExpensePayment_ClaimHandlingExpenseFID_ClaimPaymentDetailFIDClaimHandlingExpenseFID, ClaimPaymentDetailFID
Yes
80
IX_ClaimHandlingExpensePayment_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameColumns
FK_ClaimHandlingExpensePayment_AccountingNoteAccountingNoteFID->[dbo].[AccountingNote].[ANPriKey]
FK_ClaimHandlingExpensePayment_ClaimHandlingExpenseClaimHandlingExpenseFID->[dbo].[ClaimHandlingExpense].[ClaimHandlingExpenseID]
FK_ClaimHandlingExpensePayment_ClaimPaymentDetailClaimPaymentDetailFID->[dbo].[ClaimPaymentDetail].[ClaimPaymentDetailID]
FK_ClaimHandlingExpensePayment_SysUserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimHandlingExpensePayment]
(
[ClaimHandlingExpensePaymentID] [int] NOT NULL IDENTITY(1, 1),
[ClaimHandlingExpenseFID] [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].[ClaimHandlingExpensePayment] ADD CONSTRAINT [PK_ClaimHandlingExpensePayment] PRIMARY KEY NONCLUSTERED  ([ClaimHandlingExpensePaymentID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingExpensePayment] ADD CONSTRAINT [IX_ClaimHandlingExpensePayment_ClaimHandlingExpenseFID_ClaimPaymentDetailFID] UNIQUE NONCLUSTERED  ([ClaimHandlingExpenseFID], [ClaimPaymentDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimHandlingExpensePayment_PostedBySysuserFID] ON [dbo].[ClaimHandlingExpensePayment] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingExpensePayment] ADD CONSTRAINT [FK_ClaimHandlingExpensePayment_AccountingNote] FOREIGN KEY ([AccountingNoteFID]) REFERENCES [dbo].[AccountingNote] ([ANPriKey])
GO
ALTER TABLE [dbo].[ClaimHandlingExpensePayment] ADD CONSTRAINT [FK_ClaimHandlingExpensePayment_ClaimHandlingExpense] FOREIGN KEY ([ClaimHandlingExpenseFID]) REFERENCES [dbo].[ClaimHandlingExpense] ([ClaimHandlingExpenseID])
GO
ALTER TABLE [dbo].[ClaimHandlingExpensePayment] ADD CONSTRAINT [FK_ClaimHandlingExpensePayment_ClaimPaymentDetail] FOREIGN KEY ([ClaimPaymentDetailFID]) REFERENCES [dbo].[ClaimPaymentDetail] ([ClaimPaymentDetailID])
GO
ALTER TABLE [dbo].[ClaimHandlingExpensePayment] ADD CONSTRAINT [FK_ClaimHandlingExpensePayment_SysUser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimHandlingExpensePayment] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimHandlingExpensePayment] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimHandlingExpensePayment] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimHandlingExpensePayment] TO [MssExec]
GO
Uses