using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GerbilManagerWebAPI.Migrations { /// public partial class FeedbackAttachments : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "FeedbackAttachments", columns: table => new { Id = table.Column(type: "uuid", nullable: false), FeedbackId = table.Column(type: "uuid", nullable: false), FileName = table.Column(type: "text", nullable: false), ContentType = table.Column(type: "text", nullable: false), Size = table.Column(type: "integer", nullable: false), Data = table.Column(type: "bytea", nullable: false), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_FeedbackAttachments", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "FeedbackAttachments"); } } }