DocSpace-client/common/ASC.Core.Common/Migrations/PostgreSql/FeedDbContextPostgreSql/PostgreSqlFeedDbContextModelSnapshot.cs

167 lines
6.3 KiB
C#
Raw Normal View History

2021-10-12 10:25:56 +00:00
// <auto-generated />
2020-09-29 17:13:09 +00:00
using System;
using ASC.Core.Common.EF.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2021-10-12 10:25:56 +00:00
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2020-09-29 17:13:09 +00:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2021-10-12 10:25:56 +00:00
namespace ASC.Core.Common.Migrations.PostgreSql.FeedDbContextPostgreSql
2020-09-29 17:13:09 +00:00
{
2020-10-06 11:39:44 +00:00
[DbContext(typeof(PostgreSqlFeedDbContext))]
2021-10-12 10:25:56 +00:00
partial class PostgreSqlFeedDbContextModelSnapshot : ModelSnapshot
2020-09-29 17:13:09 +00:00
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2021-10-12 10:25:56 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 63)
.HasAnnotation("ProductVersion", "5.0.10")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2020-09-29 17:13:09 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedAggregate", b =>
{
b.Property<string>("Id")
2021-10-12 10:25:56 +00:00
.HasMaxLength(88)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(88)")
2021-10-12 10:25:56 +00:00
.HasColumnName("id");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("AggregateDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("aggregated_date");
2020-09-29 17:13:09 +00:00
b.Property<Guid>("Author")
2021-10-12 10:25:56 +00:00
.HasMaxLength(38)
2020-09-29 17:13:09 +00:00
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("author")
.IsFixedLength(true);
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("CreatedDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("created_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("GroupId")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(70)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(70)")
2021-10-12 10:25:56 +00:00
.HasColumnName("group_id")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("Json")
.IsRequired()
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
.HasColumnName("json");
2020-09-29 17:13:09 +00:00
b.Property<string>("Keywords")
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
.HasColumnName("keywords");
2020-09-29 17:13:09 +00:00
b.Property<Guid>("ModifiedBy")
2021-10-12 10:25:56 +00:00
.HasMaxLength(38)
2020-09-29 17:13:09 +00:00
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("modified_by")
.IsFixedLength(true);
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("ModifiedDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("modified_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("Module")
.IsRequired()
2021-10-12 10:25:56 +00:00
.HasMaxLength(50)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(50)")
2021-10-12 10:25:56 +00:00
.HasColumnName("module");
2020-09-29 17:13:09 +00:00
b.Property<string>("Product")
.IsRequired()
2021-10-12 10:25:56 +00:00
.HasMaxLength(50)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(50)")
2021-10-12 10:25:56 +00:00
.HasColumnName("product");
2020-09-29 17:13:09 +00:00
b.Property<int>("Tenant")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("tenant");
2020-09-29 17:13:09 +00:00
b.HasKey("Id");
b.HasIndex("Tenant", "AggregateDate")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("aggregated_date");
2020-09-29 17:13:09 +00:00
b.HasIndex("Tenant", "ModifiedDate")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("modified_date");
2020-09-29 17:13:09 +00:00
b.HasIndex("Tenant", "Product")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("product");
2020-09-29 17:13:09 +00:00
2021-10-12 10:25:56 +00:00
b.ToTable("feed_aggregate", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b =>
{
b.Property<string>("LastKey")
2021-10-12 10:25:56 +00:00
.HasMaxLength(128)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(128)")
2021-10-12 10:25:56 +00:00
.HasColumnName("last_key");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("LastDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("last_date");
2020-09-29 17:13:09 +00:00
b.HasKey("LastKey")
.HasName("feed_last_pkey");
2021-10-12 10:25:56 +00:00
b.ToTable("feed_last", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b =>
{
b.Property<Guid>("UserId")
2021-10-12 10:25:56 +00:00
.HasMaxLength(38)
2020-09-29 17:13:09 +00:00
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("user_id");
2020-09-29 17:13:09 +00:00
b.Property<int>("Tenant")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("tenant_id");
2020-09-29 17:13:09 +00:00
b.Property<string>("Module")
2021-10-12 10:25:56 +00:00
.HasMaxLength(50)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(50)")
2021-10-12 10:25:56 +00:00
.HasColumnName("module");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("TimeStamp")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("timestamp");
2020-09-29 17:13:09 +00:00
b.HasKey("UserId", "Tenant", "Module")
.HasName("feed_readed_pkey");
2021-10-12 10:25:56 +00:00
b.ToTable("feed_readed", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedUsers", b =>
{
b.Property<string>("FeedId")
2021-10-12 10:25:56 +00:00
.HasMaxLength(88)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(88)")
2021-10-12 10:25:56 +00:00
.HasColumnName("feed_id");
2020-09-29 17:13:09 +00:00
b.Property<Guid>("UserId")
2021-10-12 10:25:56 +00:00
.HasMaxLength(38)
2020-09-29 17:13:09 +00:00
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("user_id")
.IsFixedLength(true);
2020-09-29 17:13:09 +00:00
b.HasKey("FeedId", "UserId")
.HasName("feed_users_pkey");
b.HasIndex("UserId")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("user_id_feed_users");
2020-09-29 17:13:09 +00:00
2021-10-12 10:25:56 +00:00
b.ToTable("feed_users", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
#pragma warning restore 612, 618
}
}
}