feat: implemented return of user info and eula accept logic

This commit is contained in:
2025-07-10 23:58:12 +03:00
parent 252adf0fc7
commit 4a7810f571
15 changed files with 209 additions and 48 deletions

View File

@@ -0,0 +1,68 @@
// <auto-generated />
using System;
using JOBot.Backend.DAL.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
namespace JOBot.Backend.Data.Migrations
{
[DbContext(typeof(AppDbContext))]
[Migration("20250710203327_Initial")]
partial class Initial
{
/// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "9.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
modelBuilder.Entity("JOBot.Backend.DAL.Models.User", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uuid");
b.Property<string>("AccessToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<DateTime>("CreatedAt")
.HasColumnType("timestamp with time zone");
b.Property<string>("CvUrl")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<bool>("Eula")
.HasColumnType("boolean");
b.Property<string>("RefreshToken")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.Property<long>("UserId")
.HasColumnType("bigint");
b.Property<string>("Username")
.HasMaxLength(255)
.HasColumnType("character varying(255)");
b.HasKey("Id");
b.HasAlternateKey("UserId");
b.ToTable("Users");
});
#pragma warning restore 612, 618
}
}
}