DocSpace-client/common/ASC.Webhooks.Core/Migrations/WebhooksDbContextModelSnapshot.cs

92 lines
3.2 KiB
C#
Raw Normal View History

2021-08-19 09:11:26 +00:00
// <auto-generated />
using System;
2021-08-26 18:43:41 +00:00
using ASC.Webhooks.Core.Dao;
2021-08-19 09:11:26 +00:00
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2021-08-26 18:43:41 +00:00
namespace ASC.Webhooks.Core.Migrations
2021-08-19 09:11:26 +00:00
{
[DbContext(typeof(MySqlWebhooksDbContext))]
partial class WebhooksDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("Relational:MaxIdentifierLength", 64)
.HasAnnotation("ProductVersion", "5.0.7");
2021-08-26 18:43:41 +00:00
modelBuilder.Entity("ASC.Webhooks.Core.Dao.Models.WebhooksConfig", b =>
2021-08-19 09:11:26 +00:00
{
b.Property<int>("ConfigId")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("ConfigID");
b.Property<string>("SecretKey")
.ValueGeneratedOnAdd()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("SecretKey")
.HasDefaultValueSql("''");
b.Property<uint>("TenantId")
.HasColumnType("int unsigned");
b.Property<string>("Uri")
.ValueGeneratedOnAdd()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("URI")
.HasDefaultValueSql("''");
b.HasKey("ConfigId")
.HasName("PRIMARY");
b.ToTable("webhooks_config");
});
2021-08-26 18:43:41 +00:00
modelBuilder.Entity("ASC.Webhooks.Core.Dao.Models.WebhooksPayload", b =>
2021-08-19 09:11:26 +00:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("ID");
b.Property<int>("ConfigId")
.HasColumnType("int")
.HasColumnName("ConfigID");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime(6)");
b.Property<string>("Data")
.IsRequired()
.HasColumnType("json");
b.Property<string>("Event")
.HasMaxLength(100)
.HasColumnType("varchar(100)")
.HasColumnName("Event");
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("varchar(50)")
.HasColumnName("Status");
b.Property<uint>("TenantId")
.HasColumnType("int unsigned")
.HasColumnName("TenantID");
b.HasKey("Id")
.HasName("PRIMARY");
b.ToTable("webhooks_payload");
});
#pragma warning restore 612, 618
}
}
}