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

130 lines
5.0 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
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 14:54:11 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.10");
2020-09-29 17:13:09 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyInfo", b =>
{
b.Property<int>("NotifyId")
2021-10-12 14:54:11 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("int")
2021-10-12 10:25:56 +00:00
.HasColumnName("notify_id");
2020-09-29 17:13:09 +00:00
b.Property<int>("Attempts")
2021-10-12 14:54:11 +00:00
.HasColumnType("int")
2021-10-12 10:25:56 +00:00
.HasColumnName("attempts");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("ModifyDate")
2021-10-12 14:54:11 +00:00
.HasColumnType("datetime")
2021-10-12 10:25:56 +00:00
.HasColumnName("modify_date");
2020-09-29 17:13:09 +00:00
b.Property<int>("Priority")
2021-10-12 14:54:11 +00:00
.HasColumnType("int")
2021-10-12 10:25:56 +00:00
.HasColumnName("priority");
2020-09-29 17:13:09 +00:00
b.Property<int>("State")
2021-10-12 14:54:11 +00:00
.HasColumnType("int")
2021-10-12 10:25:56 +00:00
.HasColumnName("state");
2020-09-29 17:13:09 +00:00
b.HasKey("NotifyId")
2021-10-12 14:54:11 +00:00
.HasName("PRIMARY");
2020-09-29 17:13:09 +00:00
b.HasIndex("State")
2021-10-12 10:25:56 +00:00
.HasDatabaseName("state");
2020-09-29 17:13:09 +00:00
2021-10-12 14:54:11 +00:00
b.ToTable("notify_info");
2020-09-29 17:13:09 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b =>
{
b.Property<int>("NotifyId")
.ValueGeneratedOnAdd()
2021-10-12 14:54:11 +00:00
.HasColumnType("int")
.HasColumnName("notify_id");
2020-09-29 17:13:09 +00:00
b.Property<string>("Attachments")
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
2021-10-12 14:54:11 +00:00
.HasColumnName("attachments")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2021-10-12 10:25:56 +00:00
b.Property<string>("AutoSubmitted")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(64)")
2021-10-12 10:25:56 +00:00
.HasColumnName("auto_submitted")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("Content")
2021-10-12 10:25:56 +00:00
.HasColumnType("text")
2021-10-12 14:54:11 +00:00
.HasColumnName("content")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("ContentType")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(64)")
2021-10-12 10:25:56 +00:00
.HasColumnName("content_type")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<DateTime>("CreationDate")
2021-10-12 14:54:11 +00:00
.HasColumnType("datetime")
2021-10-12 10:25:56 +00:00
.HasColumnName("creation_date");
2020-09-29 17:13:09 +00:00
b.Property<string>("Reciever")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(255)")
2021-10-12 10:25:56 +00:00
.HasColumnName("reciever")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("ReplyTo")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(1024)")
2021-10-12 10:25:56 +00:00
.HasColumnName("reply_to")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("Sender")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(255)")
2021-10-12 10:25:56 +00:00
.HasColumnName("sender")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("SenderType")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(64)")
2021-10-12 10:25:56 +00:00
.HasColumnName("sender_type")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<string>("Subject")
2021-10-12 14:54:11 +00:00
.HasColumnType("varchar(1024)")
2021-10-12 10:25:56 +00:00
.HasColumnName("subject")
2021-10-12 14:54:11 +00:00
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
2020-09-29 17:13:09 +00:00
b.Property<int>("TenantId")
2021-10-12 14:54:11 +00:00
.HasColumnType("int")
2021-10-12 10:25:56 +00:00
.HasColumnName("tenant_id");
2020-09-29 17:13:09 +00:00
b.HasKey("NotifyId")
2021-10-12 14:54:11 +00:00
.HasName("PRIMARY");
2020-09-29 17:13:09 +00:00
2021-10-12 14:54:11 +00:00
b.ToTable("notify_queue");
2020-09-29 17:13:09 +00:00
});
#pragma warning restore 612, 618
}
}
}