26 lines
1.1 KiB
Transact-SQL
26 lines
1.1 KiB
Transact-SQL
CREATE TABLE [dbo].[PayoutLineItems](
|
|
[Id] [int] IDENTITY(1,1) NOT NULL,
|
|
[CreatedBy] [nvarchar](max) NULL,
|
|
[Created] [datetime2](7) NOT NULL,
|
|
[CreatedByType] [int] NOT NULL,
|
|
[EmployeeId] [nvarchar](max) NOT NULL,
|
|
[DepartmentId] [int] NOT NULL,
|
|
[Role] [nvarchar](max) NOT NULL,
|
|
[Product] [nvarchar](max) NOT NULL,
|
|
[ActivityPeriod] [datetime2](7) NOT NULL,
|
|
[GoalId] [int] NOT NULL,
|
|
[GoalValue] [int] NOT NULL,
|
|
[CommissionId] [int] NOT NULL,
|
|
[CommissionValue] [int] NOT NULL,
|
|
[PayoutProfileId] [int] NOT NULL,
|
|
[ActivityTotal] [decimal](12, 2) NOT NULL,
|
|
[PayoutTotal] [decimal](12, 2) NOT NULL,
|
|
[SlidingPayout] [decimal](5, 2) NOT NULL,
|
|
[AppUserId] [uniqueidentifier] NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
[CreatedByAppUserId] [uniqueidentifier] NOT NULL DEFAULT '00000000-0000-0000-0000-000000000000',
|
|
CONSTRAINT [PK_PayoutLineItems] 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]
|