-- SCHEMA: ob

---------------------------------------------
--  TABLES
---------------------------------------------


---------------------------------------------
-- ob.AccountVariabilityOverride ------------------
---------------------------------------------
DROP TABLE [ob].[AccountVariabilityOverride];
GO

CREATE TABLE [ob].[AccountVariabilityOverride] (
    [AccountVariabilityOverrideID] int NOT NULL,
    [DepartmentAssignment] nvarchar(800) NOT NULL,
    [AccountAssignment] nvarchar(800) NOT NULL,
    [PrecedentOrder] int NOT NULL,
    [Variability] decimal NOT NULL,
    PRIMARY KEY ([AccountVariabilityOverrideID])
);
GO
ALTER TABLE [ob].[AccountVariabilityOverride] ADD CONSTRAINT [DF__AccountVa__Depar__0EB4746A] DEFAULT ('') FOR [DepartmentAssignment]; GO
ALTER TABLE [ob].[AccountVariabilityOverride] ADD CONSTRAINT [DF__AccountVa__Accou__0FA898A3] DEFAULT ('') FOR [AccountAssignment]; GO
ALTER TABLE [ob].[AccountVariabilityOverride] ADD CONSTRAINT [DF__AccountVa__Prece__109CBCDC] DEFAULT ((0)) FOR [PrecedentOrder]; GO
ALTER TABLE [ob].[AccountVariabilityOverride] ADD CONSTRAINT [DF__AccountVa__Varia__1190E115] DEFAULT ((0)) FOR [Variability]; GO

