72 lines
2.4 KiB
C#
72 lines
2.4 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using FictionArchive.Service.TranslationService.Services.Database;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using NodaTime;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace FictionArchive.Service.TranslationService.Migrations
|
|
{
|
|
[DbContext(typeof(TranslationServiceDbContext))]
|
|
[Migration("20251122225458_Initial")]
|
|
partial class Initial
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "9.0.11")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("FictionArchive.Service.TranslationService.Models.Database.TranslationRequest", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uuid");
|
|
|
|
b.Property<long>("BilledCharacterCount")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<Instant>("CreatedTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<int>("From")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<Instant>("LastUpdatedTime")
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
b.Property<string>("OriginalText")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<int>("Status")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<int>("To")
|
|
.HasColumnType("integer");
|
|
|
|
b.Property<string>("TranslatedText")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("TranslationEngineKey")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TranslationRequests");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|