Tables [dbo].[ClaimLiability]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
HeapYes
Row Count (~)371
Created6:24:53 PM Monday, April 16, 2007
Last Modified10:27:19 AM Monday, March 30, 2015
Columns
NameData TypeMax Length (Bytes)Allow NullsIdentityDefault
Primary Key PK_ClaimLiability: ClaimLiabilityIDClaimLiabilityIDint4
No
1 - 1
Foreign Keys FK_ClaimLiability_Claim: [dbo].[Claim].ClaimFIDClaimFIDint4
No
Descriptionvarchar(50)50
Yes
LiablePersonSysUserFIDint4
Yes
ThirdPartyFlagbit1
Yes
ThirdPartyNamevarchar(65)65
Yes
VendorNumbervarchar(15)15
Yes
WarehouseFIDint4
Yes
AgentFIDint4
Yes
BranchFIDint4
Yes
DivisionFIDint4
Yes
ClaimChargebackTypeFIDint4
Yes
1099Flagbit1
No
((0))
Foreign Keys FK_ClaimLiability_LaborType: [dbo].[LaborType].LaborTypeFIDLaborTypeFIDint4
Yes
Indexes Indexes
NameColumnsUniqueFill Factor
Primary Key PK_ClaimLiability: ClaimLiabilityIDPK_ClaimLiabilityClaimLiabilityID
Yes
80
Check Constraints Check Constraints
NameConstraint
CK_ClaimLiability_ApplyTo((1)=[dbo].[ClaimLiabilityVerifyApplyTo]([LiablePersonSysUserFID],[ThirdPartyFlag],[WarehouseFID],[AgentFID],[VendorNumber],[BranchFID]))
Foreign Keys Foreign Keys
NameDeleteColumns
FK_ClaimLiability_ClaimCascadeClaimFID->[dbo].[Claim].[ClaimID]
FK_ClaimLiability_LaborTypeLaborTypeFID->[dbo].[LaborType].[PriKey]
Permissions
TypeActionOwning Principal
GrantDeleteMssExec
GrantInsertMssExec
GrantSelectMssExec
GrantUpdateMssExec
SQL Script
CREATE TABLE [dbo].[ClaimLiability]
(
[ClaimLiabilityID] [int] NOT NULL IDENTITY(1, 1),
[ClaimFID] [int] NOT NULL,
[Description] [varchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[LiablePersonSysUserFID] [int] NULL,
[ThirdPartyFlag] [bit] NULL,
[ThirdPartyName] [varchar] (65) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[VendorNumber] [varchar] (15) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[WarehouseFID] [int] NULL,
[AgentFID] [int] NULL,
[BranchFID] [int] NULL,
[DivisionFID] [int] NULL,
[ClaimChargebackTypeFID] [int] NULL,
[1099Flag] [bit] NOT NULL CONSTRAINT [DF_ClaimLiability_1099Flag] DEFAULT ((0)),
[LaborTypeFID] [int] NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiability] ADD CONSTRAINT [CK_ClaimLiability_ApplyTo] CHECK (((1)=[dbo].[ClaimLiabilityVerifyApplyTo]([LiablePersonSysUserFID],[ThirdPartyFlag],[WarehouseFID],[AgentFID],[VendorNumber],[BranchFID])))
GO
ALTER TABLE [dbo].[ClaimLiability] ADD CONSTRAINT [PK_ClaimLiability] PRIMARY KEY NONCLUSTERED  ([ClaimLiabilityID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimLiability] ADD CONSTRAINT [FK_ClaimLiability_Claim] FOREIGN KEY ([ClaimFID]) REFERENCES [dbo].[Claim] ([ClaimID]) ON DELETE CASCADE
GO
ALTER TABLE [dbo].[ClaimLiability] ADD CONSTRAINT [FK_ClaimLiability_LaborType] FOREIGN KEY ([LaborTypeFID]) REFERENCES [dbo].[LaborType] ([PriKey])
GO
GRANT SELECT ON  [dbo].[ClaimLiability] TO [MssExec]
GRANT INSERT ON  [dbo].[ClaimLiability] TO [MssExec]
GRANT DELETE ON  [dbo].[ClaimLiability] TO [MssExec]
GRANT UPDATE ON  [dbo].[ClaimLiability] TO [MssExec]
GO
Uses
Used By