﻿BEGIN TRANSACTION;
GO

ALTER TABLE [CompanyPreferences] ADD [FirstInvoiceCreatedAt] datetime2 NULL;
GO

ALTER TABLE [CompanyPreferences] ADD [FirstJobCreatedAt] datetime2 NULL;
GO

ALTER TABLE [CompanyPreferences] ADD [FirstQuoteCreatedAt] datetime2 NULL;
GO

ALTER TABLE [CompanyPreferences] ADD [FirstWorkflowCompleted] bit NOT NULL DEFAULT CAST(0 AS bit);
GO

ALTER TABLE [CompanyPreferences] ADD [FirstWorkflowCompletedAt] datetime2 NULL;
GO

ALTER TABLE [CompanyPreferences] ADD [GuidedActivationDismissedAt] datetime2 NULL;
GO

ALTER TABLE [CompanyPreferences] ADD [OnboardingPath] nvarchar(max) NULL;
GO

UPDATE [PricingTiers] SET [CreatedAt] = '2026-04-28T16:40:22.3595055Z'
WHERE [Id] = 1;
SELECT @@ROWCOUNT;

GO

UPDATE [PricingTiers] SET [CreatedAt] = '2026-04-28T16:40:22.3595063Z'
WHERE [Id] = 2;
SELECT @@ROWCOUNT;

GO

UPDATE [PricingTiers] SET [CreatedAt] = '2026-04-28T16:40:22.3595065Z'
WHERE [Id] = 3;
SELECT @@ROWCOUNT;

GO

INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
VALUES (N'20260428164026_AddGuidedActivationFields', N'8.0.11');
GO

COMMIT;
GO

