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