using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace NostrStreamer.Migrations
{
///
public partial class Init : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Payments",
columns: table => new
{
PubKey = table.Column(type: "text", nullable: false),
Invoice = table.Column(type: "text", nullable: false),
IsPaid = table.Column(type: "boolean", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Payments", x => x.PubKey);
});
migrationBuilder.CreateTable(
name: "Users",
columns: table => new
{
PubKey = table.Column(type: "text", nullable: false),
StreamKey = table.Column(type: "text", nullable: false),
Event = table.Column(type: "text", nullable: true),
Balance = table.Column(type: "bigint", nullable: false),
Title = table.Column(type: "text", nullable: true),
Summary = table.Column(type: "text", nullable: true),
Image = table.Column(type: "text", nullable: true),
Tags = table.Column(type: "text", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_Users", x => x.PubKey);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Payments");
migrationBuilder.DropTable(
name: "Users");
}
}
}