Tables [dbo].[ClaimPaymentDetail]
Properties
PropertyValue
HeapYes
Row Count (~)0
Created6:24:54 PM Monday, April 16, 2007
Last Modified11:13:38 AM Monday, August 19, 2013
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimPaymentDetail: ClaimPaymentDetailIDClaimPaymentDetailIDint4
No
1 - 1
Foreign Keys FK_ClaimPaymentDetail_Orders: [dbo].[Orders].OrderFIDOrderFIDint4
No
Foreign Keys FK_ClaimPaymentDetail_StatementDetail: [dbo].[StatementDetail].StatementDetailFIDIndexes IX_ClaimPaymentDetail_StatementDetail: StatementDetailFIDStatementDetailFIDint4
No
Foreign Keys FK_ClaimPaymentDetail_Claim: [dbo].[Claim].ClaimFIDClaimFIDint4
Yes
TotalAppliedmoney8
No
((0))
IsGeneratedbit1
No
((0))
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimPaymentDetail: ClaimPaymentDetailIDPK_ClaimPaymentDetailClaimPaymentDetailID
Yes
80
IX_ClaimPaymentDetail_StatementDetailStatementDetailFID
Yes
80
Foreign Keys Foreign Keys
NameColumns
FK_ClaimPaymentDetail_ClaimClaimFID->[dbo].[Claim].[ClaimID]
FK_ClaimPaymentDetail_OrdersOrderFID->[dbo].[Orders].[PriKey]
FK_ClaimPaymentDetail_StatementDetailStatementDetailFID->[dbo].[StatementDetail].[SDPriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimPaymentDetail]
(
[ClaimPaymentDetailID] [int] NOT NULL IDENTITY(1, 1),
[OrderFID] [int] NOT NULL,
[StatementDetailFID] [int] NOT NULL,
[ClaimFID] [int] NULL,
[TotalApplied] [money] NOT NULL CONSTRAINT [DF_ClaimPaymentDetail_TotalApplied] DEFAULT ((0)),
[IsGenerated] [bit] NOT NULL CONSTRAINT [DF_ClaimPaymentDetail_IsGenerated] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPaymentDetail] ADD CONSTRAINT [PK_ClaimPaymentDetail] PRIMARY KEY NONCLUSTERED  ([ClaimPaymentDetailID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPaymentDetail] ADD CONSTRAINT [IX_ClaimPaymentDetail_StatementDetail] UNIQUE NONCLUSTERED  ([StatementDetailFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimPaymentDetail] ADD CONSTRAINT [FK_ClaimPaymentDetail_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID])
GO
ALTER TABLE [dbo].[ClaimPaymentDetail] ADD CONSTRAINT [FK_ClaimPaymentDetail_Orders] FOREIGN KEY ([OrderFID]) REFERENCES [dbo].[Orders] ([PriKey])
GO
ALTER TABLE [dbo].[ClaimPaymentDetail] ADD CONSTRAINT [FK_ClaimPaymentDetail_StatementDetail] FOREIGN KEY ([StatementDetailFID]) REFERENCES [dbo].[StatementDetail] ([SDPriKey])
GO
GRANT SELECT ON  [dbo].[ClaimPaymentDetail] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimPaymentDetail] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimPaymentDetail] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimPaymentDetail] TO [MssExec]
GO
Uses
Used By