2023-08-31 18:00:51 -05:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using System;
|
2023-09-29 11:30:20 -05:00
|
|
|
|
using DamageAssesment.Api.UsersAccess.Db;
|
2023-08-31 18:00:51 -05:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Metadata;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
namespace DamageAssesment.Api.UsersAccess.Migrations
|
2023-08-31 18:00:51 -05:00
|
|
|
|
{
|
2023-09-29 11:30:20 -05:00
|
|
|
|
[DbContext(typeof(UsersAccessDbContext))]
|
|
|
|
|
partial class UsersAccessDbContextModelSnapshot : ModelSnapshot
|
2023-08-31 18:00:51 -05:00
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
|
|
|
|
.HasAnnotation("ProductVersion", "7.0.9")
|
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
|
|
|
|
|
|
|
|
|
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
modelBuilder.Entity("DamageAssesment.Api.UsersAccess.Db.Role", b =>
|
2023-08-31 18:00:51 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
.HasColumnType("nvarchar(100)");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<string>("Name")
|
2023-08-31 18:00:51 -05:00
|
|
|
|
.IsRequired()
|
2023-09-29 11:30:20 -05:00
|
|
|
|
.HasMaxLength(100)
|
|
|
|
|
.HasColumnType("nvarchar(100)");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.ToTable("Roles");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
});
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
modelBuilder.Entity("DamageAssesment.Api.UsersAccess.Db.Token", b =>
|
2023-08-31 18:00:51 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<bool?>("IsActive")
|
|
|
|
|
.HasColumnType("bit");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<string>("RefreshToken")
|
2023-08-31 18:00:51 -05:00
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<int>("UserId")
|
|
|
|
|
.HasColumnType("int");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.ToTable("Tokens");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
});
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
modelBuilder.Entity("DamageAssesment.Api.UsersAccess.Db.User", b =>
|
2023-08-31 18:00:51 -05:00
|
|
|
|
{
|
|
|
|
|
b.Property<int>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
|
|
|
|
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<DateTime>("CreateDate")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("EmployeeCode")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(50)
|
|
|
|
|
.HasColumnType("nvarchar(50)");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("EmployeeId")
|
|
|
|
|
.HasColumnType("int");
|
|
|
|
|
|
2023-08-31 18:00:51 -05:00
|
|
|
|
b.Property<bool>("IsActive")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<int>("RoleId")
|
|
|
|
|
.HasColumnType("int");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.Property<DateTime?>("UpdateDate")
|
|
|
|
|
.HasColumnType("datetime2");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
2023-09-29 11:30:20 -05:00
|
|
|
|
b.ToTable("Users");
|
2023-08-31 18:00:51 -05:00
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|