source: iknow-api/Migrations/20251020130122_InitialCreate.Designer.cs@ c0a75ab

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

Implement user management features with database integration

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[618be76]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;
8
9#nullable disable
10
11namespace iknow_api.Migrations
12{
13 [DbContext(typeof(AppDbContext))]
14 [Migration("20251020130122_InitialCreate")]
15 partial class InitialCreate
16 {
17 /// <inheritdoc />
18 protected override void BuildTargetModel(ModelBuilder modelBuilder)
19 {
20#pragma warning disable 612, 618
21 modelBuilder
22 .HasAnnotation("ProductVersion", "9.0.10")
23 .HasAnnotation("Relational:MaxIdentifierLength", 63);
24
25 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
26
27 modelBuilder.Entity("iknow_api.Models.Users", b =>
28 {
29 b.Property<int>("Id")
30 .ValueGeneratedOnAdd()
31 .HasColumnType("integer");
32
33 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
34
35 b.Property<DateTime>("Bday")
36 .HasColumnType("timestamp with time zone");
37
38 b.Property<DateTime>("CreatedAt")
39 .HasColumnType("timestamp with time zone");
40
41 b.Property<string>("Email")
42 .HasColumnType("text");
43
44 b.Property<string>("Index")
45 .HasColumnType("text");
46
47 b.Property<string>("Name")
48 .HasColumnType("text");
49
50 b.Property<string>("Password")
51 .HasColumnType("text");
52
53 b.Property<int>("Role")
54 .HasColumnType("integer");
55
56 b.Property<string>("Surname")
57 .HasColumnType("text");
58
59 b.HasKey("Id");
60
61 b.ToTable("Users");
62 });
63#pragma warning restore 612, 618
64 }
65 }
66}
Note: See TracBrowser for help on using the repository browser.