DocSpace-client/common/ASC.Core.Common/Migrations/PostgreSql/NotifyDbContextPostgreSql/PostgreSqlNotifyDbContextModelSnapshot.cs

135 lines
5.4 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.NotifyDbContextPostgreSql
2020-09-29 17:13:09 +00:00
{
2020-10-06 11:39:44 +00:00
[DbContext(typeof(PostgreSqlNotifyDbContext))]
2021-10-12 10:25:56 +00:00
partial class PostgreSqlNotifyDbContextModelSnapshot : ModelSnapshot
2020-09-29 17:13:09 +00:00
{
2021-10-12 10:25:56 +00:00
protected override void BuildModel(ModelBuilder modelBuilder)
2020-09-29 17:13:09 +00:00
{
#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.NotifyInfo", b =>
{
b.Property<int>("NotifyId")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("notify_id");
2020-09-29 17:13:09 +00:00
b.Property<int>("Attempts")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("attempts");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("ModifyDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("modify_date");
2020-09-29 17:13:09 +00:00
b.Property<int>("Priority")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("priority");
2020-09-29 17:13:09 +00:00
b.Property<int>("State")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("state");
2020-09-29 17:13:09 +00:00
b.HasKey("NotifyId")
.HasName("notify_info_pkey");
b.HasIndex("State")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("state");
2020-09-29 17:13:09 +00:00
2021-10-12 10:25:56 +00:00
b.ToTable("notify_info", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b =>
{
b.Property<int>("NotifyId")
.ValueGeneratedOnAdd()
.HasColumnType("integer")
2021-10-12 10:25:56 +00:00
.HasColumnName("notify_id")
2020-09-29 17:13:09 +00:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
b.Property<string>("Attachments")
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
.HasColumnName("attachments");
b.Property<string>("AutoSubmitted")
.ValueGeneratedOnAdd()
.HasMaxLength(64)
.HasColumnType("character varying(64)")
.HasColumnName("auto_submitted")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("Content")
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
.HasColumnName("content");
2020-09-29 17:13:09 +00:00
b.Property<string>("ContentType")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(64)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(64)")
2021-10-12 10:25:56 +00:00
.HasColumnName("content_type")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("CreationDate")
2021-10-12 10:25:56 +00:00
.HasColumnType("timestamp without time zone")
.HasColumnName("creation_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("Reciever")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(255)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(255)")
2021-10-12 10:25:56 +00:00
.HasColumnName("reciever")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("ReplyTo")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(1024)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(1024)")
2021-10-12 10:25:56 +00:00
.HasColumnName("reply_to")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("Sender")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(255)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(255)")
2021-10-12 10:25:56 +00:00
.HasColumnName("sender")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("SenderType")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(64)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(64)")
2021-10-12 10:25:56 +00:00
.HasColumnName("sender_type")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<string>("Subject")
.ValueGeneratedOnAdd()
2021-10-12 10:25:56 +00:00
.HasMaxLength(1024)
2020-09-29 17:13:09 +00:00
.HasColumnType("character varying(1024)")
2021-10-12 10:25:56 +00:00
.HasColumnName("subject")
.HasDefaultValueSql("NULL");
2020-09-29 17:13:09 +00:00
b.Property<int>("TenantId")
2021-10-12 10:25:56 +00:00
.HasColumnType("integer")
.HasColumnName("tenant_id");
2020-09-29 17:13:09 +00:00
b.HasKey("NotifyId")
.HasName("notify_queue_pkey");
2021-10-12 10:25:56 +00:00
b.ToTable("notify_queue", "onlyoffice");
2020-09-29 17:13:09 +00:00
});
#pragma warning restore 612, 618
}
}
}