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

169 lines
6.2 KiB
C#
Raw Normal View History

2021-10-12 10:25:56 +00:00
// <auto-generated />
using System;
using ASC.Feed.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2022-07-22 19:34:48 +00:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
#nullable disable
2020-09-29 17:13:09 +00:00
namespace ASC.Feed.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
2022-07-22 19:34:48 +00:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
.HasAnnotation("ProductVersion", "6.0.4")
2022-07-22 19:34:48 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
2020-09-29 17:13:09 +00:00
modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b =>
2020-09-29 17:13:09 +00:00
{
b.Property<string>("Id")
2022-07-22 19:34:48 +00:00
.HasMaxLength(88)
.HasColumnType("character varying(88)")
.HasColumnName("id");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("AggregateDate")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-12 10:25:56 +00:00
.HasColumnName("aggregated_date");
2020-09-29 17:13:09 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("Author")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("author")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("CreatedDate")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-12 10:25:56 +00:00
.HasColumnName("created_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("GroupId")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(70)
.HasColumnType("character varying(70)")
2021-10-12 10:25:56 +00:00
.HasColumnName("group_id")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("Json")
.IsRequired()
2022-07-22 19:34:48 +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")
2022-07-22 19:34:48 +00:00
.HasColumnName("keywords");
2020-09-29 17:13:09 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("ModifiedBy")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("modified_by")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("ModifiedDate")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-12 10:25:56 +00:00
.HasColumnName("modified_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("Module")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("module");
2020-09-29 17:13:09 +00:00
b.Property<string>("Product")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("product");
2020-09-29 17:13:09 +00:00
b.Property<int>("Tenant")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-12 10:25:56 +00:00
.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
2022-07-22 19:34:48 +00:00
b.ToTable("feed_aggregate", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Feed.Model.FeedLast", b =>
2020-09-29 17:13:09 +00:00
{
b.Property<string>("LastKey")
2022-07-22 19:34:48 +00:00
.HasMaxLength(128)
.HasColumnType("character varying(128)")
.HasColumnName("last_key");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("LastDate")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-12 10:25:56 +00:00
.HasColumnName("last_date");
2020-09-29 17:13:09 +00:00
b.HasKey("LastKey")
2022-07-22 19:34:48 +00:00
.HasName("feed_last_pkey");
2022-07-22 19:34:48 +00:00
b.ToTable("feed_last", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b =>
2020-09-29 17:13:09 +00:00
{
2022-07-22 19:34:48 +00:00
b.Property<Guid>("UserId")
.HasMaxLength(38)
.HasColumnType("uuid")
.HasColumnName("user_id");
2020-09-29 17:13:09 +00:00
b.Property<int>("Tenant")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-12 10:25:56 +00:00
.HasColumnName("tenant_id");
2020-09-29 17:13:09 +00:00
b.Property<string>("Module")
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("module");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("TimeStamp")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-12 10:25:56 +00:00
.HasColumnName("timestamp");
2020-09-29 17:13:09 +00:00
2022-07-22 19:34:48 +00:00
b.HasKey("UserId", "Tenant", "Module")
.HasName("feed_readed_pkey");
2020-09-29 17:13:09 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("feed_readed", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b =>
2020-09-29 17:13:09 +00:00
{
b.Property<string>("FeedId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(88)
.HasColumnType("character varying(88)")
.HasColumnName("feed_id");
2020-09-29 17:13:09 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("UserId")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-12 10:25:56 +00:00
.HasColumnName("user_id")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2020-09-29 17:13:09 +00:00
b.HasKey("FeedId", "UserId")
2022-07-22 19:34:48 +00:00
.HasName("feed_users_pkey");
2020-09-29 17:13:09 +00:00
b.HasIndex("UserId")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("user_id_feed_users");
2022-07-22 19:34:48 +00:00
b.ToTable("feed_users", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
#pragma warning restore 612, 618
}
}
}