using Microsoft.EntityFrameworkCore.Migrations; using NodaTime; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable namespace FictionArchive.Service.TranslationService.Migrations { /// public partial class Initial : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "TranslationRequests", columns: table => new { Id = table.Column(type: "bigint", nullable: false) .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), OriginalText = table.Column(type: "text", nullable: false), TranslatedText = table.Column(type: "text", nullable: true), From = table.Column(type: "integer", nullable: false), To = table.Column(type: "integer", nullable: false), TranslationEngineKey = table.Column(type: "text", nullable: false), Status = table.Column(type: "integer", nullable: false), BilledCharacterCount = table.Column(type: "bigint", nullable: false), CreatedTime = table.Column(type: "timestamp with time zone", nullable: false), LastUpdatedTime = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_TranslationRequests", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "TranslationRequests"); } } }