CREATE TABLE [dbo].[DepartmentLineItems]( [Id] [int] IDENTITY(1,1) NOT NULL, [CreatedBy] [nvarchar](max) NULL, [Created] [datetime2](7) NOT NULL, [CreatedByType] [int] NOT NULL, [LastUpdatedBy] [nvarchar](max) NULL, [LastUpdated] [datetime2](7) NOT NULL, [LastUpdatedByType] [int] NOT NULL, [DepartmentId] [int] NOT NULL, [DepartmentName] [nvarchar](max) NULL, [PayoutTotal] [decimal](12, 2) NOT NULL, [PayoutPercentage] [decimal](5, 2) NOT NULL, [PayoutMonth] [datetime2](7) NOT NULL, [CreatedByAppUserId] [uniqueidentifier] NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', [LastUpdatedByAppUserId] [uniqueidentifier] NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000', CONSTRAINT [PK_DepartmentLineItems] PRIMARY KEY CLUSTERED ( [Id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY] ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]