Tables [dbo].[ClaimHandlingRevenuePayment]
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_ClaimHandlingRevenuePayment: ClaimHandlingRevenuePaymentIDClaimHandlingRevenuePaymentIDint4
No
1 - 1
Foreign Keys FK_ClaimHandlingRevenuePayment_ClaimHandlingRevenue: [dbo].[ClaimHandlingRevenue].ClaimHandlingRevenueFIDIndexes IX_ClaimHandlingRevenuePayment_ClaimHandlingRevenueFID_ClaimPaymentDetailFID: ClaimHandlingRevenueFID\ClaimPaymentDetailFIDClaimHandlingRevenueFIDint4
No
Foreign Keys FK_ClaimHandlingRevenuePayment_ClaimPaymentDetail: [dbo].[ClaimPaymentDetail].ClaimPaymentDetailFIDIndexes IX_ClaimHandlingRevenuePayment_ClaimHandlingRevenueFID_ClaimPaymentDetailFID: ClaimHandlingRevenueFID\ClaimPaymentDetailFIDClaimPaymentDetailFIDint4
No
ApplyAmountmoney8
No
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
Foreign Keys FK_ClaimHandlingRevenuePayment_AccountingNote: [dbo].[AccountingNote].AccountingNoteFIDAccountingNoteFIDint4
Yes
Foreign Keys FK_ClaimHandlingRevenuePayment_SysUser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimHandlingRevenuePayment_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
PostedDatedatetime8
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimHandlingRevenuePayment: ClaimHandlingRevenuePaymentIDPK_ClaimHandlingRevenuePaymentClaimHandlingRevenuePaymentID
Yes
80
IX_ClaimHandlingRevenuePayment_ClaimHandlingRevenueFID_ClaimPaymentDetailFIDClaimHandlingRevenueFID, ClaimPaymentDetailFID
Yes
80
IX_ClaimHandlingRevenuePayment_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameColumns
FK_ClaimHandlingRevenuePayment_AccountingNoteAccountingNoteFID->[dbo].[AccountingNote].[ANPriKey]
FK_ClaimHandlingRevenuePayment_ClaimHandlingRevenueClaimHandlingRevenueFID->[dbo].[ClaimHandlingRevenue].[ClaimHandlingRevenueID]
FK_ClaimHandlingRevenuePayment_ClaimPaymentDetailClaimPaymentDetailFID->[dbo].[ClaimPaymentDetail].[ClaimPaymentDetailID]
FK_ClaimHandlingRevenuePayment_SysUserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimHandlingRevenuePayment]
(
[ClaimHandlingRevenuePaymentID] [int] NOT NULL IDENTITY(1, 1),
[ClaimHandlingRevenueFID] [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].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [PK_ClaimHandlingRevenuePayment] PRIMARY KEY NONCLUSTERED  ([ClaimHandlingRevenuePaymentID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [IX_ClaimHandlingRevenuePayment_ClaimHandlingRevenueFID_ClaimPaymentDetailFID] UNIQUE NONCLUSTERED  ([ClaimHandlingRevenueFID], [ClaimPaymentDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimHandlingRevenuePayment_PostedBySysuserFID] ON [dbo].[ClaimHandlingRevenuePayment] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [FK_ClaimHandlingRevenuePayment_AccountingNote] FOREIGN KEY ([AccountingNoteFID]) REFERENCES [dbo].[AccountingNote] ([ANPriKey])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [FK_ClaimHandlingRevenuePayment_ClaimHandlingRevenue] FOREIGN KEY ([ClaimHandlingRevenueFID]) REFERENCES [dbo].[ClaimHandlingRevenue] ([ClaimHandlingRevenueID])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [FK_ClaimHandlingRevenuePayment_ClaimPaymentDetail] FOREIGN KEY ([ClaimPaymentDetailFID]) REFERENCES [dbo].[ClaimPaymentDetail] ([ClaimPaymentDetailID])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenuePayment] ADD CONSTRAINT [FK_ClaimHandlingRevenuePayment_SysUser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimHandlingRevenuePayment] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimHandlingRevenuePayment] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimHandlingRevenuePayment] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimHandlingRevenuePayment] TO [MssExec]
GO
Uses