More work
This commit is contained in:
1 parent
c06f06c6ce
commit
8b476e6939
20 files changed
+871
-22
No files matched your search
@@ -0,0 +1,64 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using PaperlessAI.Context;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PaperlessAI.Migrations
|
||||
{
|
||||
[DbContext(typeof(MyDbContext))]
|
||||
[Migration("20261011212724_AddedLlmMessage")]
|
||||
partial class AddedLlmMessage
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.UseCollation("utf8mb4_uca1400_ai_ci")
|
||||
.HasAnnotation("ProductVersion", "10.0.12")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||
|
||||
MySqlModelBuilderExtensions.HasCharSet(modelBuilder, "utf8mb4");
|
||||
MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("PaperlessAI.Models.PaperlessDocument", b =>
|
||||
{
|
||||
b.Property<long>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("bigint");
|
||||
|
||||
MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
|
||||
|
||||
b.Property<DateTimeOffset>("CreatedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.Property<long>("DocumentId")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("DocumentState")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("LastLlmMessage")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTimeOffset>("ModifiedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("DocumentId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("PaperlessDocuments");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PaperlessAI.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddedLlmMessage : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "LastLlmMessage",
|
||||
table: "PaperlessDocuments",
|
||||
type: "longtext",
|
||||
nullable: false,
|
||||
collation: "utf8mb4_uca1400_ai_ci")
|
||||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "LastLlmMessage",
|
||||
table: "PaperlessDocuments");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -41,6 +41,10 @@ namespace PaperlessAI.Migrations
|
||||
b.Property<int>("DocumentState")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("LastLlmMessage")
|
||||
.IsRequired()
|
||||
.HasColumnType("longtext");
|
||||
|
||||
b.Property<DateTimeOffset>("ModifiedAt")
|
||||
.HasColumnType("datetime(6)");
|
||||
|
||||
|
||||
Reference in new issue
Block a user