text: IF OBJECT_ID(N'[__EFMigrationsHistory]') IS NULL
  BEGIN
      CREATE TABLE [__EFMigrationsHistory] (
          [MigrationId] nvarchar(150) NOT NULL,
          [ProductVersion] nvarchar(32) NOT NULL,
          CONSTRAINT [PK___EFMigrationsHistory] PRIMARY KEY ([MigrationId])
      );
  END;
  
  GO
  
  CREATE TABLE [Orders] (
      [Id] uniqueidentifier NOT NULL,
      [UserId] uniqueidentifier NOT NULL,
      [OrderTotal] int NOT NULL,
      [OrderPlaced] datetime2 NOT NULL,
      [OrderPaid] bit NOT NULL,
      CONSTRAINT [PK_Orders] PRIMARY KEY ([Id])
  );
  
  GO
  
  INSERT INTO [__EFMigrationsHistory] ([MigrationId], [ProductVersion])
  VALUES (N'20200809150233_Initial', N'3.1.6');
  
  GO