source: iknow-api/Migrations/20251028091953_new.Designer.cs@ ff202cf

Last change on this file since ff202cf was c155364, checked in by imbrsk <boris696boris@…>, 11 months ago

added remaining methods to refreshtoken feature

  • Property mode set to 100644
File size: 3.4 KB
Line 
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Migrations;
6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8using iknow_api.Data;
9
10#nullable disable
11
12namespace iknow_api.Migrations
13{
14 [DbContext(typeof(AppDbContext))]
15 [Migration("20251028091953_new")]
16 partial class @new
17 {
18 /// <inheritdoc />
19 protected override void BuildTargetModel(ModelBuilder modelBuilder)
20 {
21#pragma warning disable 612, 618
22 modelBuilder
23 .HasAnnotation("ProductVersion", "9.0.10")
24 .HasAnnotation("Relational:MaxIdentifierLength", 63);
25
26 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
27
28 modelBuilder.Entity("iknow_api.Models.RefreshToken", b =>
29 {
30 b.Property<int>("Id")
31 .ValueGeneratedOnAdd()
32 .HasColumnType("integer");
33
34 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
35
36 b.Property<DateTime>("ExpiresAt")
37 .HasColumnType("timestamp with time zone");
38
39 b.Property<bool>("IsValid")
40 .HasColumnType("boolean");
41
42 b.Property<string>("Token")
43 .IsRequired()
44 .HasColumnType("text");
45
46 b.Property<int>("UserId")
47 .HasColumnType("integer");
48
49 b.HasKey("Id");
50
51 b.HasIndex("UserId");
52
53 b.ToTable("RefreshToken");
54 });
55
56 modelBuilder.Entity("iknow_api.Models.User", b =>
57 {
58 b.Property<int>("Id")
59 .ValueGeneratedOnAdd()
60 .HasColumnType("integer");
61
62 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
63
64 b.Property<DateTime>("Bday")
65 .HasColumnType("timestamp with time zone");
66
67 b.Property<DateTime>("CreatedAt")
68 .HasColumnType("timestamp with time zone");
69
70 b.Property<string>("Email")
71 .HasColumnType("text");
72
73 b.Property<string>("Index")
74 .HasColumnType("text");
75
76 b.Property<string>("Name")
77 .HasColumnType("text");
78
79 b.Property<string>("PasswordHash")
80 .HasColumnType("text");
81
82 b.Property<int>("Role")
83 .HasColumnType("integer");
84
85 b.Property<string>("Surname")
86 .HasColumnType("text");
87
88 b.HasKey("Id");
89
90 b.ToTable("User");
91 });
92
93 modelBuilder.Entity("iknow_api.Models.RefreshToken", b =>
94 {
95 b.HasOne("iknow_api.Models.User", "User")
96 .WithMany()
97 .HasForeignKey("UserId")
98 .OnDelete(DeleteBehavior.Cascade)
99 .IsRequired();
100
101 b.Navigation("User");
102 });
103#pragma warning restore 612, 618
104 }
105 }
106}
Note: See TracBrowser for help on using the repository browser.