DamageAssessment_Backend/DamageAssesmentApi/DamageAssesment.Api.UsersAccess/Migrations/UsersAccessDbContextModelSnapshot.cs

105 lines
3.4 KiB
C#
Raw Permalink Normal View History

2023-08-31 18:00:51 -05:00
// <auto-generated />
using System;
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
namespace DamageAssesment.Api.UsersAccess.Migrations
2023-08-31 18:00:51 -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);
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"));
b.Property<string>("Description")
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
2023-08-31 18:00:51 -05:00
b.Property<string>("Name")
2023-08-31 18:00:51 -05:00
.IsRequired()
.HasMaxLength(100)
.HasColumnType("nvarchar(100)");
2023-08-31 18:00:51 -05:00
b.HasKey("Id");
b.ToTable("Roles");
2023-08-31 18:00:51 -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"));
b.Property<bool?>("IsActive")
.HasColumnType("bit");
2023-08-31 18:00:51 -05:00
b.Property<string>("RefreshToken")
2023-08-31 18:00:51 -05:00
.HasColumnType("nvarchar(max)");
b.Property<int>("UserId")
.HasColumnType("int");
2023-08-31 18:00:51 -05:00
b.HasKey("Id");
b.ToTable("Tokens");
2023-08-31 18:00:51 -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"));
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");
b.Property<int>("RoleId")
.HasColumnType("int");
2023-08-31 18:00:51 -05:00
b.Property<DateTime?>("UpdateDate")
.HasColumnType("datetime2");
2023-08-31 18:00:51 -05:00
b.HasKey("Id");
b.ToTable("Users");
2023-08-31 18:00:51 -05:00
});
#pragma warning restore 612, 618
}
}
}