DocSpace-buildtools/common/ASC.Core.Common/Migrations/MySql/FeedDbContextMySql/MySqlFeedDbContextModelSnapshot.cs

177 lines
6.6 KiB
C#
Raw Normal View History

2020-10-06 11:39:44 +00:00
// <auto-generated />
using System;
using ASC.Core.Common.EF.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2021-03-09 17:56:57 +00:00
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2020-10-06 11:39:44 +00:00
namespace ASC.Core.Common.Migrations.MySql.FeedDbContextMySql
{
[DbContext(typeof(MySqlFeedDbContext))]
2021-03-09 17:56:57 +00:00
partial class MySqlFeedDbContextModelSnapshot : ModelSnapshot
2020-10-06 11:39:44 +00:00
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2021-03-09 17:56:57 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.8");
2020-10-06 11:39:44 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedAggregate", b =>
{
b.Property<string>("Id")
.HasColumnType("varchar(88)")
2021-03-09 17:56:57 +00:00
.HasColumnName("id")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<DateTime>("AggregateDate")
2021-03-09 17:56:57 +00:00
.HasColumnType("datetime")
.HasColumnName("aggregated_date");
2020-10-06 11:39:44 +00:00
b.Property<string>("Author")
.IsRequired()
.HasColumnType("char(38)")
2021-03-09 17:56:57 +00:00
.HasColumnName("author")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<DateTime>("CreatedDate")
2021-03-09 17:56:57 +00:00
.HasColumnType("datetime")
.HasColumnName("created_date");
2020-10-06 11:39:44 +00:00
b.Property<string>("GroupId")
.HasColumnType("varchar(70)")
2021-03-09 17:56:57 +00:00
.HasColumnName("group_id")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("Json")
.IsRequired()
.HasColumnType("mediumtext")
2021-03-09 17:56:57 +00:00
.HasColumnName("json")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("Keywords")
.HasColumnType("text")
2021-03-09 17:56:57 +00:00
.HasColumnName("keywords")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("char(38)")
2021-03-09 17:56:57 +00:00
.HasColumnName("modified_by")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<DateTime>("ModifiedDate")
2021-03-09 17:56:57 +00:00
.HasColumnType("datetime")
.HasColumnName("modified_date");
2020-10-06 11:39:44 +00:00
b.Property<string>("Module")
.IsRequired()
.HasColumnType("varchar(50)")
2021-03-09 17:56:57 +00:00
.HasColumnName("module")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("Product")
.IsRequired()
.HasColumnType("varchar(50)")
2021-03-09 17:56:57 +00:00
.HasColumnName("product")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<int>("Tenant")
2021-03-09 17:56:57 +00:00
.HasColumnType("int")
.HasColumnName("tenant");
2020-10-06 11:39:44 +00:00
b.HasKey("Id");
b.HasIndex("Tenant", "AggregateDate")
2021-03-09 17:56:57 +00:00
.HasDatabaseName("aggregated_date");
2020-10-06 11:39:44 +00:00
b.HasIndex("Tenant", "ModifiedDate")
2021-03-09 17:56:57 +00:00
.HasDatabaseName("modified_date");
2020-10-06 11:39:44 +00:00
b.HasIndex("Tenant", "Product")
2021-03-09 17:56:57 +00:00
.HasDatabaseName("product");
2020-10-06 11:39:44 +00:00
b.ToTable("feed_aggregate");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b =>
{
b.Property<string>("LastKey")
.HasColumnType("varchar(128)")
2021-03-09 17:56:57 +00:00
.HasColumnName("last_key")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<DateTime>("LastDate")
2021-03-09 17:56:57 +00:00
.HasColumnType("datetime")
.HasColumnName("last_date");
2020-10-06 11:39:44 +00:00
b.HasKey("LastKey")
.HasName("PRIMARY");
b.ToTable("feed_last");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b =>
{
b.Property<int>("Tenant")
2021-03-09 17:56:57 +00:00
.HasColumnType("int")
.HasColumnName("tenant_id");
2020-10-06 11:39:44 +00:00
b.Property<string>("UserId")
.HasColumnType("varchar(38)")
2021-03-09 17:56:57 +00:00
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("Module")
.HasColumnType("varchar(50)")
2021-03-09 17:56:57 +00:00
.HasColumnName("module")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<DateTime>("TimeStamp")
2021-03-09 17:56:57 +00:00
.HasColumnType("datetime")
.HasColumnName("timestamp");
2020-10-06 11:39:44 +00:00
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)")
2021-03-09 17:56:57 +00:00
.HasColumnName("feed_id")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.Property<string>("UserId")
.HasColumnType("char(38)")
2021-03-09 17:56:57 +00:00
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasCharSet("utf8");
2020-10-06 11:39:44 +00:00
b.HasKey("FeedId", "UserId")
.HasName("PRIMARY");
b.HasIndex("UserId")
2021-03-09 17:56:57 +00:00
.HasDatabaseName("user_id");
2020-10-06 11:39:44 +00:00
b.ToTable("feed_users");
});
#pragma warning restore 612, 618
}
}
}