
--Migration_RCCP_20251112_185845.txt
CREATE TABLE [dbo].[RuleJobInstances] (
    [Id] [uniqueidentifier] NOT NULL DEFAULT newsequentialid(),
    [RuleId] [bigint] NOT NULL,
    [Params] [nvarchar](max),
    [Status] [nvarchar](max),
    [LastRunDateTime] [datetime] NOT NULL,
    [RetryCount] [int] NOT NULL,
    [CreatedUtcDateTime] [datetime] NOT NULL,
    CONSTRAINT [PK_dbo.RuleJobInstances] PRIMARY KEY ([Id])
)
ALTER TABLE [dbo].[OrderItems] ADD [ModelItemId] [nvarchar](50)
