using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace ManagerService.Migrations { /// public partial class AddPushNotifications : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "PushNotifications", columns: table => new { Id = table.Column(type: "text", nullable: false), InstanceId = table.Column(type: "text", nullable: false), Title = table.Column(type: "text", nullable: false), Body = table.Column(type: "text", nullable: false), Topic = table.Column(type: "text", nullable: false), Status = table.Column(type: "integer", nullable: false), ScheduledAt = table.Column(type: "timestamp with time zone", nullable: true), SentAt = table.Column(type: "timestamp with time zone", nullable: true), HangfireJobId = table.Column(type: "text", nullable: true), DateCreation = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_PushNotifications", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_PushNotifications_InstanceId", table: "PushNotifications", column: "InstanceId"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "PushNotifications"); } } }