|
|
|
|
@ -12,8 +12,8 @@ using Volo.Abp.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(AuthServerDbContext))]
|
|
|
|
|
[Migration("20220617083652_Initial")]
|
|
|
|
|
[DbContext(typeof(MyProjectNameDbContext))]
|
|
|
|
|
[Migration("20220825012254_Initial")]
|
|
|
|
|
partial class Initial
|
|
|
|
|
{
|
|
|
|
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
|
|
|
|
@ -288,6 +288,64 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
b.ToTable("AbpEntityPropertyChanges", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.BackgroundJobs.BackgroundJobRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
|
.HasMaxLength(40)
|
|
|
|
|
.HasColumnType("nvarchar(40)")
|
|
|
|
|
.HasColumnName("ConcurrencyStamp");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("CreationTime")
|
|
|
|
|
.HasColumnType("datetime2")
|
|
|
|
|
.HasColumnName("CreationTime");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
|
|
|
.HasColumnType("nvarchar(max)")
|
|
|
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsAbandoned")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("bit")
|
|
|
|
|
.HasDefaultValue(false);
|
|
|
|
|
|
|
|
|
|
b.Property<string>("JobArgs")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(1048576)
|
|
|
|
|
.HasColumnType("nvarchar(max)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("JobName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime?>("LastTryTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("NextTryTime")
|
|
|
|
|
.HasColumnType("datetime2");
|
|
|
|
|
|
|
|
|
|
b.Property<byte>("Priority")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("tinyint")
|
|
|
|
|
.HasDefaultValue((byte)15);
|
|
|
|
|
|
|
|
|
|
b.Property<short>("TryCount")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("smallint")
|
|
|
|
|
.HasDefaultValue((short)0);
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("IsAbandoned", "NextTryTime");
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpBackgroundJobs", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.FeatureManagement.FeatureValue", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
@ -324,7 +382,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityClaimType", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
@ -371,7 +428,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityLinkUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<Guid?>("SourceTenantId")
|
|
|
|
|
@ -398,7 +454,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityRole", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
|
|
|
@ -475,7 +530,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentitySecurityLog", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Action")
|
|
|
|
|
@ -550,7 +604,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.IdentityUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
|
|
|
@ -834,7 +887,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.Identity.OrganizationUnit", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Code")
|
|
|
|
|
@ -1273,6 +1325,59 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
b.ToTable("OpenIddictTokens", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionDefinitionRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
|
|
|
.HasColumnType("nvarchar(max)")
|
|
|
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("GroupName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("IsEnabled")
|
|
|
|
|
.HasColumnType("bit");
|
|
|
|
|
|
|
|
|
|
b.Property<byte>("MultiTenancySide")
|
|
|
|
|
.HasColumnType("tinyint");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ParentName")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Providers")
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("StateCheckers")
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("GroupName");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpPermissions", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGrant", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
@ -1307,6 +1412,34 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
b.ToTable("AbpPermissionGrants", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.PermissionManagement.PermissionGroupDefinitionRecord", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(256)
|
|
|
|
|
.HasColumnType("nvarchar(256)");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ExtraProperties")
|
|
|
|
|
.HasColumnType("nvarchar(max)")
|
|
|
|
|
.HasColumnName("ExtraProperties");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Name")
|
|
|
|
|
.IsRequired()
|
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
.HasColumnType("nvarchar(128)");
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("Name")
|
|
|
|
|
.IsUnique();
|
|
|
|
|
|
|
|
|
|
b.ToTable("AbpPermissionGroups", (string)null);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.SettingManagement.Setting", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
@ -1343,7 +1476,6 @@ namespace MyCompanyName.MyProjectName.Migrations
|
|
|
|
|
modelBuilder.Entity("Volo.Abp.TenantManagement.Tenant", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<Guid>("Id")
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
|
.HasColumnType("uniqueidentifier");
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|