/
ivanstrike
/
tasker
Обзор
Документация
Войти
/
ivanstrike
/
tasker
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Persistence/Migrations/ApplicationDbContextModelSnapshot.cs
258 строк
8 KB
ivanstrike
Init
20 окт 2025, 00:25
20 окт 2025, 00:25
db81298
Код
Авторство
О чём код?
// <auto-generated /> using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; using TaskerApi.Data; #nullable disable namespace TaskerApi.Persistence.Migrations { [DbContext(typeof(ApplicationDbContext))] partial class ApplicationDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "9.0.0") .HasAnnotation("Relational:MaxIdentifierLength", 63); NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); modelBuilder.Entity("TaskerApi.Models.IdempotentRequest", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("IdempotencyKey") .IsRequired() .HasColumnType("text"); b.Property<string>("RequestPath") .IsRequired() .HasColumnType("text"); b.Property<string>("ResponseBody") .IsRequired() .HasColumnType("text"); b.Property<int>("StatusCode") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("IdempotencyKey") .IsUnique(); b.ToTable("IdempotentRequests"); }); modelBuilder.Entity("TaskerApi.Models.Project", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("Description") .HasMaxLength(1000) .HasColumnType("character varying(1000)"); b.Property<bool>("IsArchived") .HasColumnType("boolean"); b.Property<string>("Name") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property<Guid>("OwnerId") .HasColumnType("uuid"); b.Property<DateTime?>("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("Name"); b.HasIndex("OwnerId"); b.ToTable("Projects"); }); modelBuilder.Entity("TaskerApi.Models.RateLimitInfo", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<string>("ClientId") .IsRequired() .HasColumnType("text"); b.Property<DateTime>("LastRequestAt") .HasColumnType("timestamp with time zone"); b.Property<int>("RequestCount") .HasColumnType("integer"); b.Property<DateTime>("WindowStart") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("ClientId"); b.ToTable("RateLimitInfos"); }); modelBuilder.Entity("TaskerApi.Models.TaskItem", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<Guid>("AssignedToId") .HasColumnType("uuid"); b.Property<DateTime?>("CompletedAt") .HasColumnType("timestamp with time zone"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("Description") .HasMaxLength(2000) .HasColumnType("character varying(2000)"); b.Property<DateTime?>("DueDate") .HasColumnType("timestamp with time zone"); b.Property<int?>("EstimatedHours") .HasColumnType("integer"); b.Property<int>("Priority") .HasColumnType("integer"); b.Property<Guid?>("ProjectId") .HasColumnType("uuid"); b.Property<int>("Status") .HasColumnType("integer"); b.Property<string>("Tags") .HasColumnType("text"); b.Property<string>("Title") .IsRequired() .HasMaxLength(200) .HasColumnType("character varying(200)"); b.Property<DateTime?>("UpdatedAt") .HasColumnType("timestamp with time zone"); b.HasKey("Id"); b.HasIndex("AssignedToId"); b.HasIndex("DueDate"); b.HasIndex("Priority"); b.HasIndex("ProjectId"); b.HasIndex("Status"); b.ToTable("Tasks"); }); modelBuilder.Entity("TaskerApi.Models.User", b => { b.Property<Guid>("Id") .ValueGeneratedOnAdd() .HasColumnType("uuid"); b.Property<DateTime>("CreatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("Email") .IsRequired() .HasColumnType("text"); b.Property<string>("PasswordHash") .IsRequired() .HasColumnType("text"); b.Property<DateTime?>("UpdatedAt") .HasColumnType("timestamp with time zone"); b.Property<string>("Username") .IsRequired() .HasMaxLength(100) .HasColumnType("character varying(100)"); b.HasKey("Id"); b.HasIndex("Email") .IsUnique(); b.HasIndex("Username") .IsUnique(); b.ToTable("Users"); }); modelBuilder.Entity("TaskerApi.Models.Project", b => { b.HasOne("TaskerApi.Models.User", "Owner") .WithMany("Projects") .HasForeignKey("OwnerId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("Owner"); }); modelBuilder.Entity("TaskerApi.Models.TaskItem", b => { b.HasOne("TaskerApi.Models.User", "AssignedTo") .WithMany("Tasks") .HasForeignKey("AssignedToId") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.HasOne("TaskerApi.Models.Project", "Project") .WithMany("Tasks") .HasForeignKey("ProjectId") .OnDelete(DeleteBehavior.SetNull); b.Navigation("AssignedTo"); b.Navigation("Project"); }); modelBuilder.Entity("TaskerApi.Models.Project", b => { b.Navigation("Tasks"); }); modelBuilder.Entity("TaskerApi.Models.User", b => { b.Navigation("Projects"); b.Navigation("Tasks"); }); #pragma warning restore 612, 618 } } }