Tables [dbo].[ClaimHandlingRevenue]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)13
Created6:18:13 PM Tuesday, February 27, 2007
Last Modified10:37:48 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimHandlingRevenue: ClaimHandlingRevenueIDClaimHandlingRevenueIDint4
No
1 - 1
Foreign Keys FK_ClaimHandlingRevenue_ClaimHandlingType: [dbo].[ClaimHandlingType].ClaimHandlingTypeFIDClaimHandlingTypeFIDint4
No
Foreign Keys FK_ClaimHandlingRevenue_Claim: [dbo].[Claim].ClaimFIDClaimFIDint4
No
Amountmoney8
No
((0))
HandledDatedatetime8
No
CustomerNumbervarchar(15)15
Yes
Foreign Keys FK_ClaimHandlingRevenue_Branch: [dbo].[Branch].BranchFIDBranchFIDint4
No
Foreign Keys FK_ClaimHandlingRevenue_Division: [dbo].[Division].DivisionFIDDivisionFIDint4
Yes
Descriptionvarchar(128)128
No
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
PostedDatedatetime8
Yes
Foreign Keys FK_ClaimHandlingRevenue_PostedbySysuser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimHandlingRevenue_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
InvoicedHeaderFIDint4
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimHandlingRevenue: ClaimHandlingRevenueIDPK_ClaimHandlingRevenueClaimHandlingRevenueID
Yes
80
IX_ClaimHandlingRevenue_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameColumns
FK_ClaimHandlingRevenue_BranchBranchFID->[dbo].[Branch].[BranchPriKey]
FK_ClaimHandlingRevenue_ClaimClaimFID->[dbo].[Claim].[ClaimID]
FK_ClaimHandlingRevenue_ClaimHandlingTypeClaimHandlingTypeFID->[dbo].[ClaimHandlingType].[ClaimHandlingTypeID]
FK_ClaimHandlingRevenue_DivisionDivisionFID->[dbo].[Division].[DivisionID]
FK_ClaimHandlingRevenue_PostedbySysuserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimHandlingRevenue]
(
[ClaimHandlingRevenueID] [int] NOT NULL IDENTITY(1, 1),
[ClaimHandlingTypeFID] [int] NOT NULL,
[ClaimFID] [int] NOT NULL,
[Amount] [money] NOT NULL CONSTRAINT [DF_ClaimHandlingRevenue_Amount] DEFAULT ((0)),
[HandledDate] [datetime] NOT NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BranchFID] [int] NOT NULL,
[DivisionFID] [int] NULL,
[Description] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[DocDate] [datetime] NULL,
[JournalDate] [datetime] NULL,
[PostedDate] [datetime] NULL,
[PostedBySysuserFID] [int] NULL,
[InvoicedHeaderFID] [int] NULL,
[DocumentNumber] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [PK_ClaimHandlingRevenue] PRIMARY KEY NONCLUSTERED  ([ClaimHandlingRevenueID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimHandlingRevenue_PostedBySysuserFID] ON [dbo].[ClaimHandlingRevenue] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [FK_ClaimHandlingRevenue_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [FK_ClaimHandlingRevenue_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [FK_ClaimHandlingRevenue_ClaimHandlingType] FOREIGN KEY ([ClaimHandlingTypeFID]) REFERENCES [dbo].[ClaimHandlingType] ([ClaimHandlingTypeID])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [FK_ClaimHandlingRevenue_Division] FOREIGN KEY ([DivisionFID]) REFERENCES [dbo].[Division] ([DivisionID])
GO
ALTER TABLE [dbo].[ClaimHandlingRevenue] ADD CONSTRAINT [FK_ClaimHandlingRevenue_PostedbySysuser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimHandlingRevenue] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimHandlingRevenue] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimHandlingRevenue] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimHandlingRevenue] TO [MssExec]
GO
Uses
Used By