using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace ApiTools.Database.Migrations.Migrations
{
///
public partial class CreateWxmpSubscribMessageLog : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "WxmpSubscribMessageLog",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
Code = table.Column(type: "nvarchar(max)", nullable: true),
OpenId = table.Column(type: "nvarchar(max)", nullable: true),
PopupScene = table.Column(type: "nvarchar(max)", nullable: true),
SubscribeStatusString = table.Column(type: "nvarchar(max)", nullable: true),
TemplateId = table.Column(type: "nvarchar(max)", nullable: true),
Page = table.Column(type: "nvarchar(max)", nullable: true),
Data = table.Column(type: "nvarchar(max)", nullable: true),
Sort = table.Column(type: "int", nullable: false),
TraceId = table.Column(type: "nvarchar(max)", nullable: true),
CreatedTime = table.Column(type: "datetimeoffset", nullable: false),
CreatedUserId = table.Column(type: "uniqueidentifier", nullable: true),
CreatedChannelId = table.Column(type: "uniqueidentifier", nullable: true),
UpdatedTime = table.Column(type: "datetimeoffset", nullable: true),
UpdatedUserId = table.Column(type: "uniqueidentifier", nullable: true),
IsDeleted = table.Column(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_WxmpSubscribMessageLog", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "WxmpSubscribMessageLog");
}
}
}