Tables [dbo].[ClaimLiabilityItem]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)1143
Created6:24:55 PM Monday, April 16, 2007
Last Modified10:37:48 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimLiabilityItem: ClaimLiabilityItemIDClaimLiabilityItemIDint4
No
1 - 1
Foreign Keys FK_ClaimLiabilityItem_Liability: [dbo].[ClaimLiability].ClaimLiabilityFIDClaimLiabilityFIDint4
No
Foreign Keys FK_ClaimLiabilityItem_ClaimItem: [dbo].[ClaimItem].ClaimItemFIDClaimItemFIDint4
No
LiabilityAmountmoney8
No
((0))
PayableAmountmoney8
No
((0))
DocDatedatetime8
Yes
JournalDatedatetime8
Yes
PostedDatedatetime8
Yes
Foreign Keys FK_ClaimLiability_PostedbySysuser: [dbo].[Sysuser].PostedBySysuserFIDIndexes IX_ClaimLiabilityItem_PostedBySysuserFID: PostedBySysuserFIDPostedBySysuserFIDint4
Yes
DocumentNumbervarchar(21)21
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimLiabilityItem: ClaimLiabilityItemIDPK_ClaimLiabilityItemClaimLiabilityItemID
Yes
80
IX_ClaimLiabilityItem_PostedBySysuserFIDPostedBySysuserFID
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ClaimLiabilityItem_ClaimItemCascadeClaimItemFID->[dbo].[ClaimItem].[ClaimItemID]
FK_ClaimLiabilityItem_LiabilityCascadeClaimLiabilityFID->[dbo].[ClaimLiability].[ClaimLiabilityID]
FK_ClaimLiability_PostedbySysuserPostedBySysuserFID->[dbo].[Sysuser].[SysUserID]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimLiabilityItem]
(
[ClaimLiabilityItemID] [int] NOT NULL IDENTITY(1, 1),
[ClaimLiabilityFID] [int] NOT NULL,
[ClaimItemFID] [int] NOT NULL,
[LiabilityAmount] [money] NOT NULL CONSTRAINT [DF_ClaimLiabilityItem_LiabilityAmount] DEFAULT ((0)),
[PayableAmount] [money] NOT NULL CONSTRAINT [DF_ClaimLiabilityItem_PayableAmount] DEFAULT ((0)),
[DocDate] [datetime] NULL,
[JournalDate] [datetime] NULL,
[PostedDate] [datetime] NULL,
[PostedBySysuserFID] [int] NULL,
[DocumentNumber] [varchar] (21) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiabilityItem] ADD CONSTRAINT [PK_ClaimLiabilityItem] PRIMARY KEY NONCLUSTERED  ([ClaimLiabilityItemID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [IX_ClaimLiabilityItem_PostedBySysuserFID] ON [dbo].[ClaimLiabilityItem] ([PostedBySysuserFID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiabilityItem] ADD CONSTRAINT [FK_ClaimLiabilityItem_ClaimItem] FOREIGN KEY ([ClaimItemFID]) REFERENCES [dbo].[ClaimItem] ([ClaimItemID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ClaimLiabilityItem] ADD CONSTRAINT [FK_ClaimLiabilityItem_Liability] FOREIGN KEY ([ClaimLiabilityFID]) REFERENCES [dbo].[ClaimLiability] ([ClaimLiabilityID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ClaimLiabilityItem] ADD CONSTRAINT [FK_ClaimLiability_PostedbySysuser] FOREIGN KEY ([PostedBySysuserFID]) REFERENCES [dbo].[Sysuser] ([SysUserID])
GO
GRANT SELECT ON  [dbo].[ClaimLiabilityItem] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimLiabilityItem] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimLiabilityItem] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimLiabilityItem] TO [MssExec]
GO
Uses
Used By