| [618be76] | 1 | // <auto-generated />
|
|---|
| 2 | using System;
|
|---|
| 3 | using Microsoft.EntityFrameworkCore;
|
|---|
| 4 | using Microsoft.EntityFrameworkCore.Infrastructure;
|
|---|
| 5 | using Microsoft.EntityFrameworkCore.Migrations;
|
|---|
| 6 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|---|
| 7 | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|---|
| [9694de9] | 8 | using iknow_api.Core.Data;
|
|---|
| [618be76] | 9 |
|
|---|
| 10 | #nullable disable
|
|---|
| 11 |
|
|---|
| 12 | namespace iknow_api.Migrations
|
|---|
| 13 | {
|
|---|
| 14 | [DbContext(typeof(AppDbContext))]
|
|---|
| [fc7b4b4] | 15 | [Migration("20251022202014_InitialCreate")]
|
|---|
| [618be76] | 16 | partial class InitialCreate
|
|---|
| 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 |
|
|---|
| [9694de9] | 28 | modelBuilder.Entity("iknow_api.Core.Models.User", b =>
|
|---|
| [618be76] | 29 | {
|
|---|
| 30 | b.Property<int>("Id")
|
|---|
| 31 | .ValueGeneratedOnAdd()
|
|---|
| 32 | .HasColumnType("integer");
|
|---|
| 33 |
|
|---|
| 34 | NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|---|
| 35 |
|
|---|
| 36 | b.Property<DateTime>("Bday")
|
|---|
| 37 | .HasColumnType("timestamp with time zone");
|
|---|
| 38 |
|
|---|
| 39 | b.Property<DateTime>("CreatedAt")
|
|---|
| 40 | .HasColumnType("timestamp with time zone");
|
|---|
| 41 |
|
|---|
| 42 | b.Property<string>("Email")
|
|---|
| 43 | .HasColumnType("text");
|
|---|
| 44 |
|
|---|
| 45 | b.Property<string>("Index")
|
|---|
| 46 | .HasColumnType("text");
|
|---|
| 47 |
|
|---|
| 48 | b.Property<string>("Name")
|
|---|
| 49 | .HasColumnType("text");
|
|---|
| 50 |
|
|---|
| [fc7b4b4] | 51 | b.Property<string>("PasswordHash")
|
|---|
| [618be76] | 52 | .HasColumnType("text");
|
|---|
| 53 |
|
|---|
| 54 | b.Property<int>("Role")
|
|---|
| 55 | .HasColumnType("integer");
|
|---|
| 56 |
|
|---|
| 57 | b.Property<string>("Surname")
|
|---|
| 58 | .HasColumnType("text");
|
|---|
| 59 |
|
|---|
| 60 | b.HasKey("Id");
|
|---|
| 61 |
|
|---|
| [9694de9] | 62 | b.ToTable("User");
|
|---|
| [618be76] | 63 | });
|
|---|
| 64 | #pragma warning restore 612, 618
|
|---|
| 65 | }
|
|---|
| 66 | }
|
|---|
| 67 | }
|
|---|