|
|
|
@ -17,7 +17,7 @@ namespace Yavsc.Migrations
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder
|
|
|
|
modelBuilder
|
|
|
|
.HasAnnotation("ProductVersion", "7.0.4")
|
|
|
|
.HasAnnotation("ProductVersion", "8.0.2")
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
@ -298,12 +298,6 @@ namespace Yavsc.Migrations
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
.IsConcurrencyToken()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateCreated")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DedicatedGoogleCalendar")
|
|
|
|
b.Property<string>("DedicatedGoogleCalendar")
|
|
|
|
.HasMaxLength(512)
|
|
|
|
.HasMaxLength(512)
|
|
|
|
.HasColumnType("character varying(512)");
|
|
|
|
.HasColumnType("character varying(512)");
|
|
|
|
@ -363,14 +357,6 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserCreated")
|
|
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserModified")
|
|
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("UserName")
|
|
|
|
b.Property<string>("UserName")
|
|
|
|
.HasMaxLength(256)
|
|
|
|
.HasMaxLength(256)
|
|
|
|
.HasColumnType("character varying(256)");
|
|
|
|
.HasColumnType("character varying(256)");
|
|
|
|
@ -394,30 +380,36 @@ namespace Yavsc.Migrations
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Auth.Client", b =>
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Auth.Client", b =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
b.Property<string>("Id")
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("AccessTokenLifetime")
|
|
|
|
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
b.Property<bool>("Active")
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
b.Property<string>("DisplayName")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasMaxLength(128)
|
|
|
|
|
|
|
|
.HasColumnType("character varying(128)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("LogoutRedirectUri")
|
|
|
|
b.Property<string>("LogoutRedirectUri")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(100)
|
|
|
|
.HasMaxLength(512)
|
|
|
|
.HasColumnType("character varying(100)");
|
|
|
|
.HasColumnType("character varying(512)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("RedirectUri")
|
|
|
|
b.Property<string>("RedirectUri")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(512)
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("character varying(512)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("RefreshTokenLifeTime")
|
|
|
|
b.Property<int>("RefreshTokenLifeTime")
|
|
|
|
.HasColumnType("integer");
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Secret")
|
|
|
|
b.Property<string>("Secret")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasMaxLength(512)
|
|
|
|
|
|
|
|
.HasColumnType("character varying(512)");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Type")
|
|
|
|
b.Property<int>("Type")
|
|
|
|
.HasColumnType("integer");
|
|
|
|
.HasColumnType("integer");
|
|
|
|
@ -486,6 +478,21 @@ namespace Yavsc.Migrations
|
|
|
|
b.ToTable("RefreshTokens");
|
|
|
|
b.ToTable("RefreshTokens");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Auth.Scope", b =>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
b.Property<string>("Id")
|
|
|
|
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
|
|
|
|
.IsRequired()
|
|
|
|
|
|
|
|
.HasMaxLength(1024)
|
|
|
|
|
|
|
|
.HasColumnType("character varying(1024)");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.HasKey("Id");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("Scopes");
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Yavsc.Models.BalanceImpact", b =>
|
|
|
|
modelBuilder.Entity("Yavsc.Models.BalanceImpact", b =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
b.Property<long>("Id")
|
|
|
|
b.Property<long>("Id")
|
|
|
|
@ -1131,6 +1138,9 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Accepted")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -1152,6 +1162,9 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Decided")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
b.Property<string>("Description")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -1160,7 +1173,6 @@ namespace Yavsc.Migrations
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<long?>("LocationId")
|
|
|
|
b.Property<long?>("LocationId")
|
|
|
|
.IsRequired()
|
|
|
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("PaymentId")
|
|
|
|
b.Property<string>("PaymentId")
|
|
|
|
@ -1177,12 +1189,6 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Rejected")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("RejectedAt")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("SelectedProfileUserId")
|
|
|
|
b.Property<string>("SelectedProfileUserId")
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
@ -1227,6 +1233,9 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Accepted")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -1244,6 +1253,9 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Decided")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
b.Property<string>("Description")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -1265,12 +1277,6 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Rejected")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("RejectedAt")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
b.Property<int>("Status")
|
|
|
|
.HasColumnType("integer");
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
@ -1431,7 +1437,6 @@ namespace Yavsc.Migrations
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<long?>("FeatureId")
|
|
|
|
b.Property<long?>("FeatureId")
|
|
|
|
.IsRequired()
|
|
|
|
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
.HasColumnType("bigint");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
b.Property<int>("Status")
|
|
|
|
@ -1587,7 +1592,7 @@ namespace Yavsc.Migrations
|
|
|
|
b.ToTable("Announce");
|
|
|
|
b.ToTable("Announce");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b =>
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
b.Property<string>("UserId")
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -1599,7 +1604,7 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
b.HasIndex("NotificationId");
|
|
|
|
b.HasIndex("NotificationId");
|
|
|
|
|
|
|
|
|
|
|
|
b.ToTable("DimissClicked");
|
|
|
|
b.ToTable("DismissClicked");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b =>
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.Notification", b =>
|
|
|
|
@ -2251,6 +2256,9 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Accepted")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -2268,6 +2276,9 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Decided")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
b.Property<string>("Description")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -2296,12 +2307,6 @@ namespace Yavsc.Migrations
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Rejected")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("RejectedAt")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
b.Property<int>("Status")
|
|
|
|
.HasColumnType("integer");
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
@ -2437,6 +2442,9 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Accepted")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
b.Property<string>("ActivityCode")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -2454,6 +2462,9 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
b.Property<DateTime>("DateModified")
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Decided")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<string>("Description")
|
|
|
|
b.Property<string>("Description")
|
|
|
|
.IsRequired()
|
|
|
|
.IsRequired()
|
|
|
|
.HasColumnType("text");
|
|
|
|
.HasColumnType("text");
|
|
|
|
@ -2480,12 +2491,6 @@ namespace Yavsc.Migrations
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
b.Property<decimal?>("Previsional")
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
.HasColumnType("numeric");
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<bool>("Rejected")
|
|
|
|
|
|
|
|
.HasColumnType("boolean");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<DateTime>("RejectedAt")
|
|
|
|
|
|
|
|
.HasColumnType("timestamp with time zone");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Property<int>("Status")
|
|
|
|
b.Property<int>("Status")
|
|
|
|
.HasColumnType("integer");
|
|
|
|
.HasColumnType("integer");
|
|
|
|
|
|
|
|
|
|
|
|
@ -2909,9 +2914,7 @@ namespace Yavsc.Migrations
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Yavsc.Models.Relationship.Location", "Location")
|
|
|
|
b.HasOne("Yavsc.Models.Relationship.Location", "Location")
|
|
|
|
.WithMany()
|
|
|
|
.WithMany()
|
|
|
|
.HasForeignKey("LocationId")
|
|
|
|
.HasForeignKey("LocationId");
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation")
|
|
|
|
b.HasOne("Yavsc.Models.Payment.PayPalPayment", "Regularisation")
|
|
|
|
.WithMany()
|
|
|
|
.WithMany()
|
|
|
|
@ -3046,9 +3049,7 @@ namespace Yavsc.Migrations
|
|
|
|
{
|
|
|
|
{
|
|
|
|
b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False")
|
|
|
|
b.HasOne("Yavsc.Models.IT.Evolution.Feature", "False")
|
|
|
|
.WithMany()
|
|
|
|
.WithMany()
|
|
|
|
.HasForeignKey("FeatureId")
|
|
|
|
.HasForeignKey("FeatureId");
|
|
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
|
|
|
|
|
|
.IsRequired();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
b.Navigation("False");
|
|
|
|
b.Navigation("False");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
@ -3086,7 +3087,7 @@ namespace Yavsc.Migrations
|
|
|
|
b.Navigation("Owner");
|
|
|
|
b.Navigation("Owner");
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.DimissClicked", b =>
|
|
|
|
modelBuilder.Entity("Yavsc.Models.Messaging.DismissClicked", b =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
b.HasOne("Yavsc.Models.Messaging.Notification", "Notified")
|
|
|
|
b.HasOne("Yavsc.Models.Messaging.Notification", "Notified")
|
|
|
|
.WithMany()
|
|
|
|
.WithMany()
|
|
|
|
|