using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Meezi.Infrastructure.Data.Migrations
{
///
public partial class QrGuestMenuAndBranchIdentity : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "Source",
table: "Orders",
type: "integer",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "AllowBranchTaxOverride",
table: "Cafes",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn(
name: "DefaultTaxRate",
table: "Cafes",
type: "numeric",
nullable: false,
defaultValue: 0m);
migrationBuilder.AddColumn(
name: "AccentColor",
table: "Branches",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "LogoUrl",
table: "Branches",
type: "text",
nullable: true);
migrationBuilder.AddColumn(
name: "TaxRate",
table: "Branches",
type: "numeric",
nullable: true);
migrationBuilder.AddColumn(
name: "WelcomeText",
table: "Branches",
type: "text",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Source",
table: "Orders");
migrationBuilder.DropColumn(
name: "AllowBranchTaxOverride",
table: "Cafes");
migrationBuilder.DropColumn(
name: "DefaultTaxRate",
table: "Cafes");
migrationBuilder.DropColumn(
name: "AccentColor",
table: "Branches");
migrationBuilder.DropColumn(
name: "LogoUrl",
table: "Branches");
migrationBuilder.DropColumn(
name: "TaxRate",
table: "Branches");
migrationBuilder.DropColumn(
name: "WelcomeText",
table: "Branches");
}
}
}