using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace GerbilManagerWebAPI.Migrations
{
///
public partial class AddFeedback : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Feedback",
columns: table => new
{
Id = table.Column(type: "uuid", nullable: false),
Message = table.Column(type: "text", nullable: false),
Context = table.Column(type: "text", nullable: false),
GerbilId = table.Column(type: "uuid", nullable: true),
LitterId = table.Column(type: "uuid", nullable: true),
EntityName = table.Column(type: "text", nullable: true),
Url = table.Column(type: "text", nullable: true),
ClientTimestamp = table.Column(type: "timestamp with time zone", nullable: true),
UserAgent = table.Column(type: "text", nullable: true),
CreatedAt = table.Column(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Feedback", x => x.Id);
});
migrationBuilder.CreateIndex(
name: "IX_Feedback_CreatedAt",
table: "Feedback",
column: "CreatedAt");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Feedback");
}
}
}