using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GerbilManagerWebAPI.Migrations { /// public partial class WebPushSubscriptions : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WebPushSubscriptions", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Endpoint = table.Column(type: "text", nullable: false), P256dh = table.Column(type: "text", nullable: false), Auth = table.Column(type: "text", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_WebPushSubscriptions", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WebPushSubscriptions"); } } }