[dbo].[ClaimSettlementClearingAccount]
CREATE TABLE [dbo].[ClaimSettlementClearingAccount]
(
[ClaimSettlementClearingAccountID] [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_ClaimSettlementClearingAccount_IsGLDefault] DEFAULT ((0))
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [CK_ClaimSettlementClearingAccount_IsGLDefault] CHECK (((1)=[dbo].[ClaimSettlementClearingAccountGLDefault]([ClaimSettlementClearingAccountID],[IsGLDefault])))
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [PK_ClaimSettlementClearingAccount] PRIMARY KEY NONCLUSTERED ([ClaimSettlementClearingAccountID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [IX_ClaimSettlementClearingAccount_Unique_Branch] UNIQUE NONCLUSTERED ([BranchFID]) WITH (FILLFACTOR=80) ON [PRIMARY]
GO
ALTER TABLE [dbo].[ClaimSettlementClearingAccount] ADD CONSTRAINT [FK_ClaimSettlementClearingAccount_Branch] FOREIGN KEY ([BranchFID]) REFERENCES [dbo].[Branch] ([BranchPriKey])
GO
GRANT SELECT ON [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT INSERT ON [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT DELETE ON [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GRANT UPDATE ON [dbo].[ClaimSettlementClearingAccount] TO [MssExec]
GO