DocSpace-buildtools/common/ASC.Core.Common/Migrations/PostgreSql/FeedDbContextPostgreSql/PostgreSqlFeedDbContextModelSnapshot.cs
2021-10-12 17:54:11 +03:00

177 lines
6.8 KiB
C#

// <auto-generated />
using System;
using ASC.Core.Common.EF.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace ASC.Core.Common.Migrations.PostgreSql.FeedDbContextPostgreSql
{
[DbContext(typeof(PostgreSqlFeedDbContext))]
partial class PostgreSqlFeedDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.10");
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedAggregate", b =>
{
b.Property<string>("Id")
.HasColumnType("varchar(88)")
.HasColumnName("id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("AggregateDate")
.HasColumnType("datetime")
.HasColumnName("aggregated_date");
b.Property<string>("Author")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("author")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("CreatedDate")
.HasColumnType("datetime")
.HasColumnName("created_date");
b.Property<string>("GroupId")
.HasColumnType("varchar(70)")
.HasColumnName("group_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Json")
.IsRequired()
.HasColumnType("mediumtext")
.HasColumnName("json")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Keywords")
.HasColumnType("text")
.HasColumnName("keywords")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("modified_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("ModifiedDate")
.HasColumnType("datetime")
.HasColumnName("modified_date");
b.Property<string>("Module")
.IsRequired()
.HasColumnType("varchar(50)")
.HasColumnName("module")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Product")
.IsRequired()
.HasColumnType("varchar(50)")
.HasColumnName("product")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("Tenant")
.HasColumnType("int")
.HasColumnName("tenant");
b.HasKey("Id");
b.HasIndex("Tenant", "AggregateDate")
.HasDatabaseName("aggregated_date");
b.HasIndex("Tenant", "ModifiedDate")
.HasDatabaseName("modified_date");
b.HasIndex("Tenant", "Product")
.HasDatabaseName("product");
b.ToTable("feed_aggregate");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b =>
{
b.Property<string>("LastKey")
.HasColumnType("varchar(128)")
.HasColumnName("last_key")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("LastDate")
.HasColumnType("datetime")
.HasColumnName("last_date");
b.HasKey("LastKey")
.HasName("PRIMARY");
b.ToTable("feed_last");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b =>
{
b.Property<int>("Tenant")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("UserId")
.HasColumnType("varchar(38)")
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Module")
.HasColumnType("varchar(50)")
.HasColumnName("module")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("TimeStamp")
.HasColumnType("datetime")
.HasColumnName("timestamp");
b.HasKey("Tenant", "UserId", "Module")
.HasName("PRIMARY");
b.ToTable("feed_readed");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedUsers", b =>
{
b.Property<string>("FeedId")
.HasColumnType("varchar(88)")
.HasColumnName("feed_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("UserId")
.HasColumnType("char(38)")
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.HasKey("FeedId", "UserId")
.HasName("PRIMARY");
b.HasIndex("UserId")
.HasDatabaseName("user_id");
b.ToTable("feed_users");
});
#pragma warning restore 612, 618
}
}
}