| 1 | // <auto-generated />
|
|---|
| 2 | using System;
|
|---|
| 3 | using Microsoft.EntityFrameworkCore;
|
|---|
| 4 | using Microsoft.EntityFrameworkCore.Infrastructure;
|
|---|
| 5 | using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|---|
| 6 | using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|---|
| 7 |
|
|---|
| 8 | #nullable disable
|
|---|
| 9 |
|
|---|
| 10 | namespace iknow_api.Migrations
|
|---|
| 11 | {
|
|---|
| 12 | [DbContext(typeof(AppDbContext))]
|
|---|
| 13 | partial class AppDbContextModelSnapshot : ModelSnapshot
|
|---|
| 14 | {
|
|---|
| 15 | protected override void BuildModel(ModelBuilder modelBuilder)
|
|---|
| 16 | {
|
|---|
| 17 | #pragma warning disable 612, 618
|
|---|
| 18 | modelBuilder
|
|---|
| 19 | .HasAnnotation("ProductVersion", "9.0.10")
|
|---|
| 20 | .HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|---|
| 21 |
|
|---|
| 22 | NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|---|
| 23 |
|
|---|
| 24 | modelBuilder.Entity("iknow_api.Models.Users", b =>
|
|---|
| 25 | {
|
|---|
| 26 | b.Property<int>("Id")
|
|---|
| 27 | .ValueGeneratedOnAdd()
|
|---|
| 28 | .HasColumnType("integer");
|
|---|
| 29 |
|
|---|
| 30 | NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
|---|
| 31 |
|
|---|
| 32 | b.Property<DateTime>("Bday")
|
|---|
| 33 | .HasColumnType("timestamp with time zone");
|
|---|
| 34 |
|
|---|
| 35 | b.Property<DateTime>("CreatedAt")
|
|---|
| 36 | .HasColumnType("timestamp with time zone");
|
|---|
| 37 |
|
|---|
| 38 | b.Property<string>("Email")
|
|---|
| 39 | .HasColumnType("text");
|
|---|
| 40 |
|
|---|
| 41 | b.Property<string>("Index")
|
|---|
| 42 | .HasColumnType("text");
|
|---|
| 43 |
|
|---|
| 44 | b.Property<string>("Name")
|
|---|
| 45 | .HasColumnType("text");
|
|---|
| 46 |
|
|---|
| 47 | b.Property<string>("Password")
|
|---|
| 48 | .HasColumnType("text");
|
|---|
| 49 |
|
|---|
| 50 | b.Property<int>("Role")
|
|---|
| 51 | .HasColumnType("integer");
|
|---|
| 52 |
|
|---|
| 53 | b.Property<string>("Surname")
|
|---|
| 54 | .HasColumnType("text");
|
|---|
| 55 |
|
|---|
| 56 | b.HasKey("Id");
|
|---|
| 57 |
|
|---|
| 58 | b.ToTable("Users");
|
|---|
| 59 | });
|
|---|
| 60 | #pragma warning restore 612, 618
|
|---|
| 61 | }
|
|---|
| 62 | }
|
|---|
| 63 | }
|
|---|