[dbo].[ClaimHoldingAccount]
CREATE TABLE [dbo].[ClaimHoldingAccount]
(
[ClaimHoldingAccountID] [int] NOT NULL IDENTITY(1, 1),
[BranchFID] [int] NULL,
[GLAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[GLSubAccount] [varchar] (16) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[IsGLDefault] [bit] NOT NULL CONSTRAINT [DF_ClaimHoldingAccount_IsGLDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [CK_ClaimHoldingAccount_IsGLDefault] CHECK (((1)=[dbo].[ClaimHoldingAccountGLDefault]([ClaimHoldingAccountID],[IsGLDefault])))
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [PK_ClaimHoldingAccount] PRIMARY KEY NONCLUSTERED ([ClaimHoldingAccountID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [IX_Unique_Branch] UNIQUE NONCLUSTERED ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimHoldingAccount] ADD CONSTRAINT [FK_ClaimHoldingAccount_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT INSERT ON [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT DELETE ON [dbo].[ClaimHoldingAccount] TO [MssExec]
GRANT UPDATE ON [dbo].[ClaimHoldingAccount] TO [MssExec]
GO