Tables [dbo].[ClaimItemDueFrom]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)406
Created10:12:53 PM Thursday, December 28, 2006
Last Modified10:37:48 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimItemDueFrom: ClaimItemDueFromIDClaimItemDueFromIDint4
No
1 - 1
Foreign Keys FK_ClaimItemDueFrom_ClaimItem: [dbo].[ClaimItem].ClaimItemFIDClaimItemFIDint4
No
CustomerNumbervarchar(15)15
No
Amountmoney8
No
((0))
BilledDatedatetime8
Yes
PaidDatedatetime8
Yes
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
PostedDatedatetime8
Yes
Foreign Keys FK_ClaimItemDueFrom_PostedbySysuser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimItemDueFrom_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
InvoicedHeaderFIDint4
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimItemDueFrom: ClaimItemDueFromIDPK_ClaimItemDueFromClaimItemDueFromID
Yes
80
IX_ClaimItemDueFrom_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ClaimItemDueFrom_ClaimItemCascadeClaimItemFID->[dbo].[ClaimItem].[ClaimItemID]
FK_ClaimItemDueFrom_PostedbySysuserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimItemDueFrom]
(
[ClaimItemDueFromID] [int] NOT NULL IDENTITY(1, 1),
[ClaimItemFID] [int] NOT NULL,
[CustomerNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Amount] [money] NOT NULL CONSTRAINT [DF_ClaimItemDueFrom_Amount] DEFAULT ((0)),
[BilledDate] [datetime] NULL,
[PaidDate] [datetime] 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].[ClaimItemDueFrom] ADD CONSTRAINT [PK_ClaimItemDueFrom] PRIMARY KEY NONCLUSTERED  ([ClaimItemDueFromID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimItemDueFrom_PostedBySysuserFID] ON [dbo].[ClaimItemDueFrom] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimItemDueFrom] ADD CONSTRAINT [FK_ClaimItemDueFrom_ClaimItem] FOREIGN KEY ([ClaimItemFID]) REFERENCES [dbo].[ClaimItem] ([ClaimItemID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ClaimItemDueFrom] ADD CONSTRAINT [FK_ClaimItemDueFrom_PostedbySysuser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimItemDueFrom] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimItemDueFrom] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimItemDueFrom] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimItemDueFrom] TO [MssExec]
GO
Uses
Used By